Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/branding] Branding / Static Login support #637

Merged
merged 115 commits into from
Jul 15, 2020
Merged

Conversation

hosy
Copy link
Collaborator

@hosy hosy commented Mar 3, 2020

Description

This pull request seeks to implement an elegant login interface ready for branding and MDM.

Related Issue

#2 #120

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

QA

Test plan: https://github.com/owncloud/QA/blob/master/Mobile/iOS-app/Version%2011.4.0/Branding.md

Bugs & improvements

How the feature works

Types

There are three object types of interest here:

  • Theme Style: contains everything needed to generate a customized ThemeCollection, which defines the look of the UI
  • Static Login Profile: contains everything needed to create a particular, new bookmark. Several profiles could f.ex. target different servers or cater to the needs of different departments.
  • Static Login Bundle: contains global settings like name and logo of the organization and acts as a container for one of more Static Login Profiles.

Customizable Properties

Theme Style

Property Type Meaning
identifier String Identifier uniquely identifying the style.
lightColor Color The light color to use in the generation of the theme colors.
darkColor Color The dark color to use in the generation of the theme colors.
themeStyle String The style to generate from the colors: dark (new app), light (new app), contrast (old iOS app)
customizedColorsByPath String:String dictionary Key-value dictionary with colors to customize after automatic computation. F.ex. tableRowColors.labelColor = #ff0000 to make labels in table rows red.

Static Login Profile

Property Type Meaning
identifier String Identifier uniquely identifying the static login profile.
name String Name of the login profile during setup.
prompt String Custom message to prompt the user to enter the account credentials. Presented above login/password fields for Basic Auth or above "Continue" button for OAuth2
customLogoName String Name of the custom logo file to use for this bookmark. Placed in front of name in the profile picker and in front of bookmarks in the server list.
bookmarkName String The name that should be used for the bookmark that's generated from this profile.
url String The URL of the server targeted by this profile.
allowedAuthenticationMethods String array The identifiers of the authentication methods allowed for this profile. Allows to f.ex. force OAuth2, or to use Basic Auth even if OAuth2 is available.
allowedCertificateFingerprints String array Array of fingerprint hex strings of the certificate(s) that the app may connect to in the context of this bookmark. Connections that use certificates not contained in this array will be aborted.
allowedPublicKeyFingerprints String array Like allowedCertificateFingerprints, but targeting just the public key contained in the certificates rather than the certificate as a whole.
maxBookmarkCount Number The maximum number of bookmarks a user can generate from this profile. 0 if no limits apply.
themeStyleIdentifier String Identifier of the Theme Style to use for the UI when a bookmark generated from this profile is chosen by the user.

Static Login Bundle

Property Type Meaning
organizationName String Name of the organization to use throughout the app. Including on top of the whole static login flow.
organizationLogoName String Name of the custom logo file to use throughout the app. Including on top of the whole static login flow.
organizationBackgroundName String Name of the custom image file to use as background for the static login interface.
organizationBackgroundName String Name of the custom image file to use as background for the static login interface.
loginThemeStyleIdentifier String Identifier of the Theme Style to use for the static login UI.
pickerTitle String Custom title to be shown on top of the profile picker.
pickerMessage String Custom message to be shown on top of the profile picker.
profiles Static Login Profile array An array of static login profiles contained in this bundle. If only one if provided, no profile picker is shown.

Screenshots:

If more than one Static Login Profile have been provided, the user can choose:
bildschirmfoto 2018-11-27 um 00 30 44

Basic Auth interface:
bildschirmfoto 2018-11-27 um 00 30 50

OAuth2 interface:
bildschirmfoto 2018-11-27 um 00 30 56

After setup completed:
bildschirmfoto 2018-11-27 um 16 27 12

Account list (start screen when at least one account has been set up):
bildschirmfoto 2018-11-27 um 16 27 58

Themes can be chosen on a per-profile basis, to give the user a strong visual hint at the type of the account:
bildschirmfoto 2018-11-27 um 16 03 54
bildschirmfoto 2018-11-27 um 16 03 48

felix-schwarz and others added 30 commits November 27, 2018 00:23
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section
… when a connection is closed by the user

- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting
- using splash image in welcome view
…If the key is not set in plist, the default value will be used.
@jesmrec
Copy link
Contributor

jesmrec commented Jun 23, 2020

@hosy i checked the latest commit, in which you include the InterfaceStyle and keyboardAppearance styles, that are correctly reflected in the app. 👍

Are those the only two ones to take in account? are the other styles (statusBarStyle, BarStyle, activityIndicatorViewStyle, backgroundBlurEffectStyle and searchBarActivityIndicatorViewStyle) relevant or reflectable in any way?

@hosy
Copy link
Collaborator Author

hosy commented Jun 23, 2020

@jesmrec
statusBarStyle can be checked in the Pin-Code view (not used everywhere at the moment), maybe add an issue to discuss, if it should be added to all other views
activityIndicatorViewStyle are available in some views e.g.:

  • Serverlist, when selecting a server
  • Share File, when searching a user
    backgroundBlurEffectStyle can be seen in Create Folder or Rename Item

the values for BarStyle, searchBarActivityIndicatorViewStyle are currently not used, but available in Theme class. Could be used at a later point.

@jesmrec
Copy link
Contributor

jesmrec commented Jun 24, 2020

Ok, then

  • BarStyle -> NA

  • searchBarActivityIndicatorViewStyle -> NA

  • backgroundBlurEffectStyle -> OK, works fine

  • statusBarStyle: it is related with passcode, but i do not see any difference between the styles:

statusBarStyle=lightContent statusBarStyle=darkContent(iOS>=13)
Screen Shot 2020-06-24 at 09 06 03 Screen Shot 2020-06-24 at 09 07 40
  • activityIndicatorViewStyle: i tested the 5 posible values, and i do not see differences in the sharing view when searching user:
activityIndicatorViewStyle =whiteLarge activityIndicatorViewStyle=gray activityIndicatorViewStyle=large
Screen Shot 2020-06-24 at 09 13 00 Screen Shot 2020-06-24 at 09 14 56 Screen Shot 2020-06-24 at 09 17 16

@hosy
Copy link
Collaborator Author

hosy commented Jun 24, 2020

@jesmrec

statusBarStyle

The color of the status bar items is black or white and only visible, if the background is not white:
Bildschirmfoto 2020-06-24 um 12 16 43

activityIndicatorViewStyle

It also depends on the background, but can be seen here:

Grey White Large
Simulator Screen Shot - iPhone 11 Pro - 2020-06-24 at 12 26 40 Simulator Screen Shot - iPhone 11 Pro - 2020-06-24 at 12 26 17 Simulator Screen Shot - iPhone 11 Pro - 2020-06-24 at 12 27 19

@jesmrec
Copy link
Contributor

jesmrec commented Jun 24, 2020

Thanks @hosy for your help. From my point of view, this one is approved. Don't forger to revert the owncloud.online theme before merging, and, as discussed, not merging till everything in the current milestone does.

thanks all the team for the big effort to move this forward!

@jesmrec jesmrec added the Approved by QA Approved by QA label Jun 24, 2020
hosy added 3 commits July 14, 2020 14:30
# Conflicts:
#	fastlane/Fastfile
#	ownCloud.xcodeproj/project.pbxproj
#	ownCloud/AppDelegate.swift
#	ownCloud/Client/Actions/Action.swift
#	ownCloud/Client/ClientActivityViewController.swift
#	ownCloud/Client/ClientQueryViewController.swift
#	ownCloud/Client/ClientRootViewController.swift
#	ownCloud/Client/PhotoAlbumTableViewController.swift
#	ownCloud/Client/Viewer/DisplayViewController.swift
#	ownCloud/Client/Viewer/PDF/PDFViewerViewController.swift
#	ownCloud/Client/Viewer/QuickLook/PreviewViewController.swift
#	ownCloud/FileLists/QueryFileListTableViewController.swift
#	ownCloud/Media Uploads/MediaUploadQueue.swift
#	ownCloud/Resources/en.lproj/Localizable.strings
#	ownCloud/SDK Extensions/OCBookmark+Extension.swift
#	ownCloud/SceneDelegate.swift
#	ownCloud/Server List/ServerListBookmarkCell.swift
#	ownCloud/Server List/ServerListTableViewController.swift
#	ownCloud/Settings/MediaUploadSettingsSection.swift
#	ownCloud/Settings/SettingsViewController.swift
#	ownCloud/Tasks/InstantMediaUploadTaskExtension.swift
#	ownCloud/Theming/ThemeCollection.swift
#	ownCloud/Theming/UI/ThemeButton.swift
#	ownCloud/Theming/UI/ThemeTableViewCell.swift
#	ownCloud/Tools/VendorServices.swift
#	ownCloud/UI Elements/StaticTableViewRow.swift
#	ownCloudAppShared/SDK Extensions/OCItem+Extension.swift
…e file Branding.plist will be kept, even when the build is the regular iOS app build.
@jesmrec
Copy link
Contributor

jesmrec commented Jul 14, 2020

After re-stablishing the original look of the app, i see some differences.

  1. App icon is still green
Branding branch (adcebd) Milestone 1.4 branch
Screenshot 2020-07-14 at 17 13 37 Screenshot 2020-07-14 at 17 14 12
  1. App icon in welcome is missing
Branding branch (adcebd) Milestone 1.4 branch
Screen Shot 2020-07-14 at 16 51 49 Screen Shot 2020-07-14 at 17 03 45
  1. Different color in the bookmark cloud icon. Before white, now blue
Branding branch (adcebd) Milestone 1.4 branch
Screen Shot 2020-07-14 at 16 52 42 Screen Shot 2020-07-14 at 17 07 01
  1. Hints in searching bars (list of files, shares...) in classic theme. Before grey, now white. In light theme, before grey, now black.
Branding branch (adcebd) Milestone 1.4 branch
Screen Shot 2020-07-14 at 16 53 52 Screen Shot 2020-07-14 at 17 10 27
  1. Bottom navigation bar. Selected tab is not highlighted in different color, and non-selected color is different (before grey, now white):
Branding branch (adcebd) Milestone 1.4 branch
Screenshot 2020-07-14 at 17 16 07 Screenshot 2020-07-14 at 17 16 35
  1. In case of light theme, grey background and white icons. Bad mixture:

Screenshot 2020-07-14 at 17 20 39

…colors and icons like in the existing regular iOS app

- updated to correct images
- renamed image files
@hosy
Copy link
Collaborator Author

hosy commented Jul 15, 2020

@jesmrec thank you for your testing! All findings are fixed now. Please check again.

@jesmrec
Copy link
Contributor

jesmrec commented Jul 15, 2020

Everything fixed. This is OK from my side. Thanks!

@hosy hosy merged commit d6a49c4 into milestone/1.4 Jul 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/branding branch July 15, 2020 09:06
hosy added a commit that referenced this pull request Aug 20, 2020
* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option to share as Markdown/HTML

* - Update SDK
…
hosy added a commit that referenced this pull request Sep 30, 2020
* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option to share as Markdown/HTML

* - Update…
hosy added a commit that referenced this pull request Oct 8, 2020
…ovider (#809)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option…
hosy added a commit that referenced this pull request Oct 14, 2020
…gin view (#807)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide opti…
hosy added a commit that referenced this pull request Oct 28, 2020
* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option to share as Markdown/HTML

…
hosy added a commit that referenced this pull request Nov 6, 2020
* fixed missing localization values

* - Update to latest develop SDK to fix LogIntro issue

* - fix remaining issue where LogIntro could be missing after deleting log files (via SDK update)

* - update SDK to log message + LogIntro when changing log levels

* - update version number to 11.4.2

* [fix/fp-silent-auth-fail] Notify on authentication failure in File Provider (#809)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and pro…
hosy added a commit that referenced this pull request Feb 2, 2021
* Refactored passcode setting UI

* Added class setting allowing passcode enforcement

* Default setting for passcode enforcement - false

* Forcing user to setup passcode if corresponding class setting is set

* Removed options which are removed from the app

* Updated MDM documentaion section

* Added logging and passcode settings

* Updated description of log-privacy-mask setting

* Added defaults and XML example for logging stuff

* Some corrections in ‘Configurable Settings’ section

* Updated to SDK on branch

Includes configurable Etag sync interval

* Updated documentation: E-Tag sync time interval setting

* Added support for extension deactivation using MDM

* Updated documentation to latest changes

* Fixed small spelling mistakes

* Added item policy settings to documentation

* Changed “New in ownCloud” to include app name from .plist instead of hardcoding it

* Added possibility to use keys Info.plist in ReleaseNotes.plist

- ${key} can be included in title / subtile (e.g. CFBundleDisplayName)
- Allows to customize release notes for branded apps

* Changed footer text for branded apps to not ask for AppStore review

* Hiding IAP settings section in case of branded app

* Disable review prompt by default if the app is branded

* Fixed build issues with SDK update

* Fixed some merge issues after merging branding_fixes which included 11.4.1 latest

* Not allowing user to deactivate passcode if it is enforced via MDM

* Fixed build issues regarding method access level in shortcut intents

* Added an explanatory message for passcode enforcement

* fixed missing localization values

* - Update to latest develop SDK to fix LogIntro issue

* - fix remaining issue where LogIntro could be missing after deleting log files (via SDK update)

* - update SDK to log message + LogIntro when changing log levels

* - update version number to 11.4.2

* [fix/fp-silent-auth-fail] Notify on authentication failure in File Provider (#809)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item i…
hosy added a commit that referenced this pull request Feb 10, 2021
* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option to share as Markdown/HTML

* - Update SDK

* - ClientActivityViewController: add HTTP pipeline diagnostic nodes for sync record
- DiagnosticViewController:
	- change color of action rows, so they can be told apart from regular entries
	- improve automatic single row / multiple row layout
- SDK update

* - generalize diagnostic info gathering and presentation for OCActivities in ClientActivityViewController
	- new DiagnosticNodeGenerator protocol provides
		- information on availability of diagnostics
		- a method to fetch a diagnostic group node that serves as root node for presentation
- implement flat and hierarchical presentation styles for diagnostic info

* - add DiagnosticManager to manage diagnostic settings and serve as central hub for possibly other diagnostic functionality in the future
- make OCSyncRecordActivity : DiagnosticNodeGenerator available if DiagnosticManager.enabled is on
- add user-facing switch "Diagnostics enabled" to Settings > Advanced Settings
- revert change of VendorServices.isBetaBuild to false as it no longer relates to this branch

* - add "Diagnostic Overview" to "Manage" area for bookmarks, showing counts of files, folders, total and removed items

* - ClientActivityViewController: allow access to diagnostic info whenever DiagnosticNodeGenerator indicates availability
- OCScanJobActivity+DiagnosticNodeGenerator: generate diagnostic nodes from scan job internals

* - fixed "Diagnostic Overview" spelling

* - allow access to account statistics at any time
- fix AppIcon EMM paths in JSON file

* - Diagnostic Overview changes in server list: only available if option in Settings is on
- remove markdown diagnostic debug dump
- revert VendorServices.isBetaBuild to false

* - Update SDK to develop (now containing feature/diagnostics changes)

* added release note for diagnostic feature

* fixed unreachable items on bottom by setting the content offset

* using newest SDK with diagnostic changes (root folder counter, localization)

* using newest SDK with localized strings

* - added user feedback, if a diagnostic action was performed
- added localization

Co-authored-by: Matthias Hühne <[email protected]>

* new build number

* removed localization for de-DE (Germany), because there is now only one german translation available (German "Sie", no longer "Du")

* new build number

* fixed removing german info.plist file

* - design: add info-icon drawing and asset
- OCLicense: new mechanism for OCLicenseProviders to provide messages for the presentation of all or particular OCLicenseFeatures by
	- adding methods to OCLicenseProvider and OCLicenseManager (for summary)
	- adding a new notification that OCLicenseProviders can use to notify about changes to the message
- added new StaticTableViewRow message element with plain, warning, alert, confirmation and custom styling, icon tinting and flexible layout support
- add support for displaying the iapMessage to LicenseOffersViewController and LicenseInAppProductListViewController
- OCLicenseEnterpriseProvider: provide message that feature(s) unlocked when one enterprise account exists, including the name of the feature/product as well as the enterprise accounts

* - remove Enterprise from OCLicenseEnterpriseProvider message
- add localizations for message

* - improve OCLicenseEnterpriseProvider wording

* - change OCLicenseEnterpriseProvider iap message to list servers rather than accout nnames

* - adapt localizations for changed OCLicenseEnterpriseProvider iapMessage

* - include OCBookmark diagnostics
- fix finding (1) in #716 (permanent "Contents from Cache" after re-authentication)
- update SDK

* - add core.cookie-support-enabled debug option
- include Cookie in log.log-only-tags debug option
- update SDK

* added localization files to share extension

* updated sdk: localized string for wrong refresh token error message

* [fix/appstore-prompt] Fix sandbox App Store credentials prompt (#681)

* - add additional logging to App Store classes

* - OCLicenseAppStoreProvider: make transaction observer the first thing that's performed during initialization
- OCLicenseManager+Setup: add new class settings to disable App Store and Enterprise licensing
- Xcode project: add new env toggles to easily disable App Store or Enterprise licending license providers

* fixed localized strings in app framework for licensing messages

* fixed launch screen copying

* - Temporarily disable processSession check via SDK update

* Translation sync (#646)

* [fix/sharing-search] Fixed min length for searching sharing users (#455)

* #454 used correct comparator for sharingSearchMinLength and set a new default value, if capability does not exists

* added a constant for defaultSharingSearchMinLength value

* [tx] updated from transifex

* - Update ios-sdk to address finding (1) in ios-app #446

* Preventing updating UI in DisplayViewController while item is being changed

- Not calling present(item:) while meta data of OCItem is being updated
- Elliminated an assumption in MediaDisplayViewController that render renderSpecificView() can be called only once.
- Making sure that AVPlayer is not re-created upon changes in OCItem but that rather AVPlayerItem is replaced.

* Fixed a small warning

* Tried to improve gallery logic concerning items modification

- Watch out if the modification does still includes the item with local ID of the currently visible item.
- Take care of failed move but watching out for reappearing items

* Added a setting allowing to decide user if media files shall be streamed

* - Add debug output to Display*ViewController
- Fix SwiftLint warnings

* Fixed handling of deleted / moved item in the gallery

* Another small fix for handling of failed item move

* Version Bump to 132

* Added LSSupportsOpeningDocumentsInPlace key to Info.plist

* Fixed Info.plist and added LSHandlerRank property

* Fix for #455 issue: no search request triggered

* show always the account selection sheet and added a note, that only one file can be imported at once

* use securtiy scoped file operation for importing a file

* Fix for the PR #447 (keep gallery alive) (#465)

* Keeping track of individual OCItems in DisplayViewController instances

But loading the list of items in the gallery only once and not reacting to any changes (moving, deleting)

* Removed query stop call in DisplayHostViewController

Since this query is not created there but just passed from the parent view.

* Removing more button if the currently viewed file got moved or deleted

* Fixed updating UI after renaming current item

* Fixed a warning

* Fixed issues in the gallery

* - Minor fixes

* [feature/bundle-import] Add support for certain bundle formats to the share sheet (#471)

* - Add support for import of bundle-based document formats through transparent zipping
	- moved previous FileProvider functionality into ownCloudApp.framework
	- new method OCCore.importItemNamed() ensures correct handling of bundle-based document formats
	- fixes finding (4) in #445
- Changed LSSupportsOpeningDocumentsInPlace to NO address two issues:
	- the app is now listed as "Copy to ownCloud" (previously "Open in ownCloud", which was technically not correct)
	- previously, documents using "Open to ownCloud" would no longer open in f.ex. Pages, but in the ownCloud app when selected in the Files app

* - Refactored ImportFilesController around using NSFileCoordinator, fixing finding (1) in #471

* changed path for moved Info.plist for target ownCloudAppFramework

* Version Bump to 133

* [feature/sort direction] Allow sorting asc/desc for all sort methods (#474)

* #470 added change sort direction asc/desc for all sort methods

* - removed comments
- changed translation keys

* fixes sort comparator for sort method "shared"

* use correct images for sort direction asc and desc

* updated choosing sort method from a tableView/Popover instead of a UIAlertViewController

* set maximum width for popover and set arrow direction

* Added show sort direction in UISegmentControl

* - make sure arrows of popovers appear in same color as the popover contents
- fix issue where direction was toggled during setup of SortBar (setting of initial value from user defaults), so logging in, logging out and logging in would change the sort direction
- reset sort direction to ascendant when switching sort methods
- SortMethodTableViewController
	- remove extraneous instance lets
	- enforce row height used for table view height calculation
	- change table view height calculation to account for the last divider (which could look a bit off if present)

* tap on segment control was fired twice, because there was a missing check, if selected segment changed

* fixed changing width on selecting an other segment

* fixed jumping width of sortSegmentControl items by setting the same width for all items by calculating the longest width before

* [fix/index-bar] Make Index Bar available in general file list (#469)

* #413 show index bar in general file list
- Index bar is only visible, if sorting is "Sort by name"
- Index bar is only visible, if more than one different letters are available
- Index bar is only visible, if more items are available as visible

* - adopt to new sort methods
- reverse index list, if sort direction is descendant

* Version Bump to 134

* Version Bump to 135

* Version Bump to 136

* Change behaviour of default expiration date (#476)

* Enabling expiration date switch if default expiration date is configured

Checking files_sharing.public.expire_date.expire_date.days server capability. If it is set then it is used as default date and the switch is enabled even if the expiration date is not enforced.

* Fixed QA issue (1)

* Fixed QA finding (2): limiting the date range if expiration date is enforced

* Permission increasing UX in reshares (#467)

* Not showing permissions which can’t be elevated

Affecting items shared with the current users which are being reshared

* Fixed an issue with wrong permissions displayed when creating public link

- Checking if permissions can be elevated for the public link
- Only viable options are displayed

* Fixed a trailing whitespace warning

* Fixed another compiler warning

* Inhereting permissions from the share when creating public link

* Fixed QA finding (4)

* Fixed QA finding (1)

* Fixed QA finding (2)

* Version Bump to 137

* [feature/itempolicy] Item Policy / Available Offline support (#456)

* Available Offline Support
- new MakeAvailableOfflineAction and MakeUnavailableOfflineAction actions
- new Available Offline Library section
	- easy access to all files available offline via Available Offline
	- new ItemPolicyTableViewController and ItemPolicyCell prepared for reuse for presenting other item policies
- Design: added SVG/TVG/PNG icons and cloud symbols for make available offline / make unavailable offline

ClientItemCell changes
- new ClientItemResolvingCell can resolve item from LocalID or path, new superclass of ShareClientItemCell and ItemPolicyCell
- string to use as content for title and detail are now provided via titleLabelString(for:) and detailLabelString(for:), updated via updateLabels(with:), making customization easier
- support for new available offline badge

ProgressSummarizer changes
- changed ProgressSummary from a struct to a class, addressing issue #451 ("Waiting for server response..." message sometimes not disappearing)

* - Adopt OCClaim to ensure files aren't deleted while they are being used in
	- DisplayViewController
	- DownloadItemsHUDViewController
	- FileListTableViewController
	- File Provider
- Add new Storage Settings to allow control over how long unused local copies are kept around
- DisplayViewController now uses OCClaims to ensure files aren't deleted while they are being viewed
- ClientItemCell uses new SDK APIs to
	- show "available offline" badges for folders
	- to indicate if an item has been made available offline directly (solid icon) or indirectly (dimmed icon)
	- keep the cloud status icon updated following changes
- Change "+" icon to "•••" icon in file list, rename plusButton to folderAction everywhere
- Action.provideAlertAction() now applies padding to images if necessary so their text aligns at the same horizontal offset
- Fix typo in BookmarkInfoViewController and change wording from "Delete Offline Copies" to "Delete Local Copies" for consistency
- Update swiftlint.yml to silence ownCloudScreenshotsTests warnings

* - Update ios-sdk

* - Make changes requested in code review, adding missing localizable strings and removing extraneous code

* - Update SDK

* - Add downloadTriggerIdentifier and availableOfflinePolicyCoverage as properties that trigger the update of an item's visual representation (addressing finding 6 in #456)
- Update make available offline action to use new convertExistingLocalDownloads option (addressing finding 2 in #456)
- Update SDK (addressing finding 5 in #456)

* Items in moved Available Offline folders should no longer be cleared locally and re-downloaded, following under the hood …
hosy added a commit that referenced this pull request Mar 16, 2021
* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne <[email protected]>

* Reverted streaming enabled setting (#769)

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - new build number
- show release notes for a new build number, instead of a new version number
- fixed release notes wording

* updated emm app icon

* added missing release note for item counter

* update fastlane file with share extension bundle ids and provisioning profiles

* fixed overlapping tab bar over table view

* [feature/diagnostic] Diagnostic information (#762)

* - VendorServices: re-enable beta build
- ClientActivityViewController: add swipe action to show diagnostic information on a sync entry
- DiagnosticViewController: display diagnostic information as native table, provide option to share as M…
hosy added a commit that referenced this pull request May 12, 2021
* - updated version and build number
- enabled beta warning

* - add support for direct theming of progress colors also for light and dark mode

* using URL keyboard for configure up a branded server URL

* localized missing string in sharing receipient search field

* [fix/auto-page-scrolling] Auto Enable Page Scrolling in Detail View (#920)

* [feature/align-bookmark-names] Align bookmark names with Android and web (#922)

* [feature/prevent-sleep-detail-view] Presentation Mode (#893)

* [feature/french-localization] French Localization (#927)

* #4450 added french localization with latest translated strings from transifex

* Calens changelog updated

* Calens changelog updated

Co-authored-by: hosy <[email protected]>

* [feature/fileprovider-passcode-UI] File Provider Passcode UI  (#881)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error at runtime

Co-authored-by: Matthias Hühne…
hosy added a commit that referenced this pull request Jul 22, 2021
* Naming improvements based on latest SDK:
- uploads use new OCCoreOptionAutomaticConflictResolutionNameStyle option to automatically resolve naming conflicts during upload
- Duplicate action uses the new OCCore name suggestion API to
	- determine naming conflicts and resolve them automatically
	- match the name style of the file to duplicate, f.ex.
		- duplicating "File copy.jpg" will create "File copy 2.jpg"
		- duplicating "File (1).jpg" will create "File (2).jpg"
		- duplicating "File Kopie 2.jpg" will create "File Kopie 3.jpg"
- folder creation uses the new OCCore name suggestion API to
	- detect naming conflicts beforehand
	- pre-fill the new folder name name with an unused name directly

* #393 added an activity indicator which will be shown, if offline copies will be deleted to give the user a UI feedback

* - Change SDK branch to master

* #76 user can import files using the iOS share sheet. all file types are accepted.

* - using new SDK with fixes for requesting core
- minor code fixes

* - Log device, version and locale information at the beginning of every log file using new SDK protocol
- Show SDK commit hash in Settings

* fixed crash, changed bookmark name to shortname

* changed UIAlertViewController for account selection to CardViewController style for testing

* fixed icon badge creation for fastlane lane In-House Enterprise IPA generation

* install librsvg for fastlane via sh

* moved import file code to own class

* added option to automatically resolve name conflicts, if file name already exists

* Changed app version to 1.1.0

* enabled beta build and warning

* Keep the gallery alive after doing some action over an item (#447)

* Rename updates the currently visible file in the gallery

* Keeping gallery alive fix

- Don’t pop to the root view controller on destructive action by default
- Only pop to the root if all items have been deleted
- Select next item upon deletion of the current ones
- Update UIPageViewController data source if number of items changes due e.g. to duplication or deletion

* Small fixes

* Fixed review findings

* Media player implemented using AVKit (#429)

* Media player implemented using AVKit

* Added possibility to stream audio / video

* Improved error handling

* Fixed review finding

* Added background audio, airplay and PiP mode

* Propagating safe area to the main view of AVPlayerViewController

* Another fix for safe area considering layout of AVPlayerViewController

* Updated to latest develop version of SDK

* Display error message in case file couldn’t be preview e.g. due to file corruption (#427)

* Fixed UI test for creating folder, need to return a fixed name, because suggestion is not working in tests

* added a description header and changed typo

* - fixed showing the directory picker controller, after the card view was dismissed
- use the current development SDK

* Version Bump to 126

* - create local copy of import file, if needed
- fixed create folder action
- delete local copy, if needed
- code review changes

* - improved duplicate item deletion behaviour
	- add additional safeguard so duplicate files are only deleted if they were actually duplicated (previously non-duplicate files could be removed if duplication or folder creation failed)
	- remove temporary container folder, too
- add 2 second delay before returning the core to give the core an opportunity to schedule the upload on a NSURLSession

* Version Bump to 127

* changed back signing identity

* Version Bump to 128

* added required CFBundleTypeName key

* Version Bump to 129

* updated changelog

* use formSheet presentation style for the iPad when showing the document picker

* Fix for images not being displayed in the gallery

* Version Bump to 130

* Version Bump to 131

* [fix/sharing-search] Fixed min length for searching sharing users (#455)

* #454 used correct comparator for sharingSearchMinLength and set a new default value, if capability does not exists

* added a constant for defaultSharingSearchMinLength value

* - Update ios-sdk to address finding (1) in ios-app #446

* Preventing updating UI in DisplayViewController while item is being changed

- Not calling present(item:) while meta data of OCItem is being updated
- Elliminated an assumption in MediaDisplayViewController that render renderSpecificView() can be called only once.
- Making sure that AVPlayer is not re-created upon changes in OCItem but that rather AVPlayerItem is replaced.

* Fixed a small warning

* Tried to improve gallery logic concerning items modification

- Watch out if the modification does still includes the item with local ID of the currently visible item.
- Take care of failed move but watching out for reappearing items

* Added a setting allowing to decide user if media files shall be streamed

* - Add debug output to Display*ViewController
- Fix SwiftLint warnings

* Fixed handling of deleted / moved item in the gallery

* Another small fix for handling of failed item move

* Version Bump to 132

* Added LSSupportsOpeningDocumentsInPlace key to Info.plist

* Fixed Info.plist and added LSHandlerRank property

* Fix for #455 issue: no search request triggered

* show always the account selection sheet and added a note, that only one file can be imported at once

* use securtiy scoped file operation for importing a file

* Fix for the PR #447 (keep gallery alive) (#465)

* Keeping track of individual OCItems in DisplayViewController instances

But loading the list of items in the gallery only once and not reacting to any changes (moving, deleting)

* Removed query stop call in DisplayHostViewController

Since this query is not created there but just passed from the parent view.

* Removing more button if the currently viewed file got moved or deleted

* Fixed updating UI after renaming current item

* Fixed a warning

* Fixed issues in the gallery

* - Minor fixes

* [feature/bundle-import] Add support for certain bundle formats to the share sheet (#471)

* - Add support for import of bundle-based document formats through transparent zipping
	- moved previous FileProvider functionality into ownCloudApp.framework
	- new method OCCore.importItemNamed() ensures correct handling of bundle-based document formats
	- fixes finding (4) in #445
- Changed LSSupportsOpeningDocumentsInPlace to NO address two issues:
	- the app is now listed as "Copy to ownCloud" (previously "Open in ownCloud", which was technically not correct)
	- previously, documents using "Open to ownCloud" would no longer open in f.ex. Pages, but in the ownCloud app when selected in the Files app

* - Refactored ImportFilesController around using NSFileCoordinator, fixing finding (1) in #471

* changed path for moved Info.plist for target ownCloudAppFramework

* Version Bump to 133

* [feature/sort direction] Allow sorting asc/desc for all sort methods (#474)

* #470 added change sort direction asc/desc for all sort methods

* - removed comments
- changed translation keys

* fixes sort comparator for sort method "shared"

* use correct images for sort direction asc and desc

* updated choosing sort method from a tableView/Popover instead of a UIAlertViewController

* set maximum width for popover and set arrow direction

* Added show sort direction in UISegmentControl

* - make sure arrows of popovers appear in same color as the popover contents
- fix issue where direction was toggled during setup of SortBar (setting of initial value from user defaults), so logging in, logging out and logging in would change the sort direction
- reset sort direction to ascendant when switching sort methods
- SortMethodTableViewController
	- remove extraneous instance lets
	- enforce row height used for table view height calculation
	- change table view height calculation to account for the last divider (which could look a bit off if present)

* tap on segment control was fired twice, because there was a missing check, if selected segment changed

* fixed changing width on selecting an other segment

* fixed jumping width of sortSegmentControl items by setting the same width for all items by calculating the longest width before

* [fix/index-bar] Make Index Bar available in general file list (#469)

* #413 show index bar in general file list
- Index bar is only visible, if sorting is "Sort by name"
- Index bar is only visible, if more than one different letters are available
- Index bar is only visible, if more items are available as visible

* - adopt to new sort methods
- reverse index list, if sort direction is descendant

* Version Bump to 134

* Version Bump to 135

* Version Bump to 136

* Change behaviour of default expiration date (#476)

* Enabling expiration date switch if default expiration date is configured

Checking files_sharing.public.expire_date.expire_date.days server capability. If it is set then it is used as default date and the switch is enabled even if the expiration date is not enforced.

* Fixed QA issue (1)

* Fixed QA finding (2): limiting the date range if expiration date is enforced

* Implement UIKeyCommands to access all actions and navigate through table views via hardware key shortcuts

* Permission increasing UX in reshares (#467)

* Not showing permissions which can’t be elevated

Affecting items shared with the current users which are being reshared

* Fixed an issue with wrong permissions displayed when creating public link

- Checking if permissions can be elevated for the public link
- Only viable options are displayed

* Fixed a trailing whitespace warning

* Fixed another compiler warning

* Inhereting permissions from the share when creating public link

* Fixed QA finding (4)

* Fixed QA finding (1)

* Fixed QA finding (2)

* fixed table selection in StaticTableView with key command

* Version Bump to 137

* - moved KeyCommands extension into own file
- added new commands

* [feature/itempolicy] Item Policy / Available Offline support (#456)

* Available Offline Support
- new MakeAvailableOfflineAction and MakeUnavailableOfflineAction actions
- new Available Offline Library section
	- easy access to all files available offline via Available Offline
	- new ItemPolicyTableViewController and ItemPolicyCell prepared for reuse for presenting other item policies
- Design: added SVG/TVG/PNG icons and cloud symbols for make available offline / make unavailable offline

ClientItemCell changes
- new ClientItemResolvingCell can resolve item from LocalID or path, new superclass of ShareClientItemCell and ItemPolicyCell
- string to use as content for title and detail are now provided via titleLabelString(for:) and detailLabelString(for:), updated via updateLabels(with:), making customization easier
- support for new available offline badge

ProgressSummarizer changes
- changed ProgressSummary from a struct to a class, addressing issue #451 ("Waiting for server response..." message sometimes not disappearing)

* - Adopt OCClaim to ensure files aren't deleted while they are being used in
	- DisplayViewController
	- DownloadItemsHUDViewController
	- FileListTableViewController
	- File Provider
- Add new Storage Settings to allow control over how long unused local copies are kept around
- DisplayViewController now uses OCClaims to ensure files aren't deleted while they are being viewed
- ClientItemCell uses new SDK APIs to
	- show "available offline" badges for folders
	- to indicate if an item has been made available offline directly (solid icon) or indirectly (dimmed icon)
	- keep the cloud status icon updated following changes
- Change "+" icon to "•••" icon in file list, rename plusButton to folderAction everywhere
- Action.provideAlertAction() now applies padding to images if necessary so their text aligns at the same horizontal offset
- Fix typo in BookmarkInfoViewController and change wording from "Delete Offline Copies" to "Delete Local Copies" for consistency
- Update swiftlint.yml to silence ownCloudScreenshotsTests warnings

* - Update ios-sdk

* - Make changes requested in code review, adding missing localizable strings and removing extraneous code

* - Update SDK

* - Add downloadTriggerIdentifier and availableOfflinePolicyCoverage as properties that trigger the update of an item's visual representation (addressing finding 6 in #456)
- Update make available offline action to use new convertExistingLocalDownloads option (addressing finding 2 in #456)
- Update SDK (addressing finding 5 in #456)

* Items in moved Available Offline folders should no longer be cleared locally and re-downloaded, following under the hood improvements in the ios-sdk

* - Add initial support for cookies via SDK update

* - Temporarily disable some UI tests broken due to lack of database running

* - Fix issue (11) in #456 by updating the lastUsed date of already downloaded items when they are viewed

* - Added slider type to StaticTableViewRow
- changed storage settings to allow picking a timeframe via slider rather than a list of time frames

* - Change text from "Remove" to "Make unavailable offline" in Quick Access > Available Offline list (addressing issue (9))

* - Update BookmarkInfoViewController to provide users with the choice to also remove local copies of items marked as Available Offline, issuing a warning and giving the users a way to cancel, addressing issue (12) in #456.

* - Update ios-sdk
- Take advantage of the new key-value store and OCCoreSkipAvailableOfflineKey to make sure available offline files are not immediately downloaded again after clearing the vault from local copies of available offline files.
- Logging into an account removes any previously set OCCoreSkipAvailableOfflineKey from the key value store
- Move Bookmark locking to an OCBookmarkManager category (next stop: use the new key-value store and bake support for locking bookmarks directly into the SDK)

* - Add missing localization

* Update SDK with latest fixes

* - Fix SettingsTests bugs

* - Apply additional fixes to UI tests and disable the remaining failing ones

* - Wait for connection initialization to complete before requesting sharing info
- Use latest SDK with cookie filtering

* - Turn off Request/Response log tags only filter in project file

* - Disable cookie support

* - Address (13) via SDK update

* link against newest development SDK

* Fixes for UI testing:
- use new SDK version that returns errors if the SQLite DB has not been opened
- MockOCCore.state now returns .running to avoid queueing of PROPFINDs

* - Fix unit tests

* - UI testing: make MockOCCore.state no longer return .running due to side effects
- fixed conflicting constraints in two places

* - force-delete bookmarks in UI tests if timeout has passed, log error but don't assert in that case
- handle case where a swipe on table cells in DeleteBookmarkTests triggers deletion outright

* - Further hardening of SettingsTests against timing differences local vs. CI

* - make SettingsTest.testCheckMoreItems() more robust

* Version Bump to 138

* [feature/reorder buttons] Reorder Navigation Bar Actions (#478)

* Available Offline Support
- new MakeAvailableOfflineAction and MakeUnavailableOfflineAction actions
- new Available Offline Library section
	- easy access to all files available offline via Available Offline
	- new ItemPolicyTableViewController and ItemPolicyCell prepared for reuse for presenting other item policies
- Design: added SVG/TVG/PNG icons and cloud symbols for make available offline / make unavailable offline

ClientItemCell changes
- new ClientItemResolvingCell can resolve item from LocalID or path, new superclass of ShareClientItemCell and ItemPolicyCell
- string to use as content for title and detail are now provided via titleLabelString(for:) and detailLabelString(for:), updated via updateLabels(with:), making customization easier
- support for new available offline badge

ProgressSummarizer changes
- changed ProgressSummary from a struct to a class, addressing issue #451 ("Waiting for server response..." message sometimes not disappearing)

* - Adopt OCClaim to ensure files aren't deleted while they are being used in
	- DisplayViewController
	- DownloadItemsHUDViewController
	- FileListTableViewController
	- File Provider
- Add new Storage Settings to allow control over how long unused local copies are kept around
- DisplayViewController now uses OCClaims to ensure files aren't deleted while they are being viewed
- ClientItemCell uses new SDK APIs to
	- show "available offline" badges for folders
	- to indicate if an item has been made available offline directly (solid icon) or indirectly (dimmed icon)
	- keep the cloud status icon updated following changes
- Change "+" icon to "•••" icon in file list, rename plusButton to folderAction everywhere
- Action.provideAlertAction() now applies padding to images if necessary so their text aligns at the same horizontal offset
- Fix typo in BookmarkInfoViewController and change wording from "Delete Offline Copies" to "Delete Local Copies" for consistency
- Update swiftlint.yml to silence ownCloudScreenshotsTests warnings

* - Update ios-sdk

* - Make changes requested in code review, adding missing localizable strings and removing extraneous code

* #477 reorganize navigation bar with create and more button and moved select button to sort menu

* added safeAreaLayoutGuide.rightAnchor

* - Update SDK

* changed "Select" image

* - Add downloadTriggerIdentifier and availableOfflinePolicyCoverage as properties that trigger the update of an item's visual representation (addressing finding 6 in #456)
- Update make available offline action to use new convertExistingLocalDownloads option (addressing finding 2 in #456)
- Update SDK (addressing finding 5 in #456)

* Items in moved Available Offline folders should no longer be cleared locally and re-downloaded, following under the hood improvements in the ios-sdk

* - Temporarily disable some UI tests broken due to lack of database running

* - Fix issue (11) in #456 by updating the lastUsed date of already downloaded items when they are viewed

* - Added slider type to StaticTableViewRow
- changed storage settings to allow picking a timeframe via slider rather than a list of time frames

* - Change text from "Remove" to "Make unavailable offline" in Quick Access > Available Offline list (addressing issue (9))

* - Update BookmarkInfoViewController to provide users with the choice to also remove local copies of items marked as Available Offline, issuing a warning and giving the users a way to cancel, addressing issue (12) in #456.

* addresses:
- missing multiselection UI in toolbar
- missing select all / deselect all button in navigation bar

* set if selectButton should be shown

* disable temporary some tests due to bitrise failures

* using correct SDK after merge

* fixed changed selectButton variable name after merge

* - added missing commands
- added photo album, photo selection
- fixed deselecting row

* fixed folder actions commands

* added sharing and links key commands

* - added key commands for LibrarySharing
- added localization

* - added missing key commands
- fixed keep selection, if FileList was reloaded
- fixed localization
- implemented copy and paste commands
- implemented new selection commands (letters, top, bottom, page)

* added commands for bookmark selection

* Determine, if the internal pasteboard is the current item and use it

* - implemented "Cut"-Command, "Favorite"-Command
- implemented Next, Previous Command for image gallery and PDF viewer
- fixed Sort-Type Command Key, because of system conflicts
- changed command key for adding a new account

* - refactored code to own actions
- cleanup code
- use extensions for key commands

* - fixed code review findings
- moving pasteboard actions copy, import and cut to separate PR

* Added new actions for Pasteboard: Copy, Cut, Import

* - updated version and build number
- enabled beta warning

* - add support for direct theming of progress colors also for light and dark mode

* using URL keyboard for configure up a branded server URL

* localized missing string in sharing receipient search field

* [fix/auto-page-scrolling] Auto Enable Page Scrolling in Detail View (#920)

* [feature/align-bookmark-names] Align bookmark names with Android and web (#922)

* [feature/prevent-sleep-detail-view] Presentation Mode (#893)

* [feature/french-localization] French Localization (#927)

* #4450 added french localization with latest translated strings from transifex

* Calens changelog updated

* Calens changelog updated

Co-authored-by: hosy <[email protected]>

* [feature/fileprovider-passcode-UI] File Provider Passcode UI  (#881)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedb…
hosy added a commit that referenced this pull request Jul 22, 2021
…tings (#940)

* - updated version and build number
- enabled beta warning

* - add support for direct theming of progress colors also for light and dark mode

* using URL keyboard for configure up a branded server URL

* localized missing string in sharing receipient search field

* [fix/auto-page-scrolling] Auto Enable Page Scrolling in Detail View (#920)

* [feature/align-bookmark-names] Align bookmark names with Android and web (#922)

* [feature/prevent-sleep-detail-view] Presentation Mode (#893)

* [feature/french-localization] French Localization (#927)

* #4450 added french localization with latest translated strings from transifex

* Calens changelog updated

* Calens changelog updated

Co-authored-by: hosy <[email protected]>

* [feature/fileprovider-passcode-UI] File Provider Passcode UI  (#881)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme settings for branded apps

* using correct branding file name

* added tint color for alert view labels

* Branded App Name fixes

* Using correct app name, if branded

* Change spp name in extension targets for branded apps

* - using newest SDK for custom User-Agent
- setting CFBundleName by fastlane
- fixed badge text bug, caused by pango version
- updated Gems

* Added a vendor setting, if an account can be added, in UI (can b

* - changed AppName to use organizationNamer of Bundle in Branding.plist
- added maxBookmarkCount
- cleanup
- bug fixing

* - only show Feedback only for unbranded clients
- Fastlane: use new plist value from bundle dictionary as appName
- use correct logo image, without tint color
- set custom logo in Branding.plist

* added feedback mail

* adding a Done button to the settings view, if the Settings-View was presented modally

* Add image for the branded login

* - PushTransition:
	- allow customization of the recovery at the transition end with a new PushTransitionRecovery block option
- PushTransitionDelegate:
	- support handing through a PushTransitionRecovery block to PushTransition
- ServerListTableViewController:
	- replace all remaining present() calls with showModal() calls
	- add .pushFromViewController property to customize presentation with PushTransition
- StaticLoginServerListViewController:
	 - override showModal() to change the modalPresentationStyle of presented view controllers from .fullScreen to .overFullScreen
- StaticLoginViewController:
	- fix transition of .contentViewController if the same value is set again
	- add example of how the PushTransitionRecovery block could be used to fix the issue of disappearing views after transition (was an intermediate solution, preserved for the case it's needed again in the future)

* Updated with branding changes for better branding support and using the ownCloud.online theme

* fixed merge problems with new version

* - fixed title color in release notes
- fixed header/footer height, if nil (seen in release notes view controller)

* changed online creation of badge file for icon creation to local creation

* added own fastlane action to read APP_SHORT_VERSION and APP_VERSION from Xcode project file and set it as badge icon values

* changed variable names to match values

* removed build number, because of missing space

* - added missing localization strings
- fixed problem, when footer or header view was not nil
- fixed theme for activity view

* - fixed login problem on iOS 12
- fixed crash on logout
(both SingleAccount)

* change the folder color

* - remove duplicated files, accidentally moved new line
- update to latest/develop SDK version

* - remove unused LibraryFilesTableViewController.swift
- re-add missing empty line to UploadMediaAction.swift

* - Remove duplicate file ownCloudAppFramework/Info.plist

* - Remove unused file

* - remove redundant code, fix header comments

* - remove code that'll be never executed in StaticLoginViewController
- fixed force-cast warning in StaticLoginBundle
- switched ThemeProvider to use URLs rather than file base name
- ThemeStyle.registerDefaultStyles() registers default styles if no brandingURL can be determined
- removed repeated code from VendorServices and bundled it up in .brandingURL, .brandingURLFor(name:) and .brandingProperties
- removed duplicate entry for/duplicate compilation of UIView+Extension.swift

* - Fix merge errors in project file

* - Fix file headers
- Small simplification / code de-duplication

* - Use enums instead of plain numbers for sections and rows

* - make sure Branding.plist/Profiles/[n]/allowedAuthenticationMethods is honored
- add error message when no allowed authentication method is available from the server

* - Solved code review findings
- Added missing styles key in Branding.plist
- Using styles from Branding.plist for theming

* - ServerListTableViewController: make UIActivityIndicatorView indicating the app is connecting use the correct style so it has better visibility
- StaticLoginProfile, StaticLoginBundle and StaticLoginSetupViewController: added support for .promptForPasswordAuth and .promptForTokenAuth (with .prompt fallback)

* fixed QA findings:
- do not show cancel button, if canAddAccount is enabled and no account was configured
- set a working demo url
- use feedbackMail, when configured
- removed logo and background name from branding.plist, these values are not configurable
- moved organization name entry one level higher
- removed app name key
- removed translucence from toolbar

* Fixed QA finding:
Connecting to insecure http connection or after presenting a connection issue is now working

* moved branded images, changed names

* removed unneeded code and values

* fixed QA finding 11 crash, when Help and Privacy values was not provided

* fixed QA finding 14:
- do not show Cancel button, if no account was added
- show Welcome title instead of profile name for token based authentication

* fixed QA finding 17:
- show an alert message, when no profile URL was provided, instead of crashing
- fixed localization

* fixed QA finding 16, 3:
- using ServerListBookmarkCell for showing account infos in list with more informations
- moved "Add Account" to toolbar button

* fixed QA finding 9:
- fixed crash on delete account
- show welcome screen, when all accounts was deleted

* fixed QA finding 10:
always show toolbar, to have permanent access to app settings

* fixed QA finding 13, skip profile selection, when only one profile is available

* fixed QA finding 21, removed duplicated "Settings" in single account view

* added documentation for theme color values

* fixed reading and setting statusBar values from Branding.plist

* isBranded is only true, if Profiles was defined in Branding.plist. The file Branding.plist will be kept, even when the build is the regular iOS app build.

* - fixed findings, when app was not build as branded app to match the colors and icons like in the existing regular iOS app
- updated to correct images
- renamed image files

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: wuenschedesign <[email protected]>
Co-authored-by: Christian Scherm <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* - Update SDK to provide additional improvements to the fix for owncloud/ios-app#732 and owncloud/enterprise#4053

* fixed localization string

* fixed fastlane getting custom app name

* fixed branding the color of the text field cursor

* new app version for TestFlight build

* first release notes draft for version 11.4

* Fix for NSOperationQueue issue in iOS13.6

Media upload got broken on iOS13.6, since NSOperationQueue has spawned too many export / upload operations simultaneously leading to thread starvation.

* Added PLCrashReporter to log crashes (#738)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

Co-authored-by: Michael Neuwert <[email protected]>

* added rounded corners to server list in branding UI

* enabled beta build and warning

* renamed and moved brandable image files

* added image to app target

* fixed crash when deleting a bookmark

* Add PLCrashReported to FileProvider extension (#765)

* Integrated PLCrashReporter

* Modified text file mentioning licenses of 3rd party components

* Moved import statement to the top

* Fixed indentation issues

* Added crash reporting to file provider

* Changed a way PLCrashReporter is initialized

Initialize it as soon as FileProvider extension is loaded into memory

* Moved crash reporter initialization to -[FileProviderExtension init]

* - Add "CRASH_REPORTER" tag to File Provider crash report logging

* Made sure crash reporter is initialized once

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* #747 added missing UTI conversion for MindNode and iThoughts file extensions. Furthermore there is a fallback for pdf extension, because we have a tester who reported that PDF files are greyed out in FileProvidfer (#754)

* #745 before this fix, not only available offline files were shown, all locally available files was shown (#768)

* - added missing release notes infos for release 11.4
- changed storing and reading base64 encoded images for iOS 12

* - added "Share Sheet" to release notes
- fixed some wording

* [feature/selection-counter-label] File List: Selected items counter label (#771)

* New label to show how many items are selected in the file list

* removed the "Select items" title, if no item is selected, because it can confuse the user

* clear label, if no item is selected

* - moved number of selected items to navigation title
- addressed #613: showing number of folder items in footer label

* - update title when selection did end
- empty title view before, when setting the title

* fixed localization

* - fixed empty item list label
- fixed single item label

* using short strings for better readability

* [feature/migration] Migration from the app with same Bundle ID (#660)

* First version of account migration

- Only basic auth supported
- No UI
- No settings are migrated
- Legacy data not yet deleted

* Some minor changes

* Migration with the same bundle ID implemented

- Still the UI is just a draft
- OAuth2 token refresh isn’t really working and requires complete re-authentication

* Updated fastlane file to create dynamic builds, which means you can pass in bundle ids, keychain group and provisioning profile for the generated file. Now it is possible to build an owncloud.online iOS app beside the enterprise app.
Also updated to the new version number 11.4.

* Fixed some swift lint warnings

* Adjusted expiration date handling

* Fixed an issue with OAuth2 re-authentication if no valid auth data was found

* Forgot to comment in copying of auth data to bookmark

* Showing succes in iOS13 and higher

* Minor changes

- Adapted to latest master oC SDK
- Changed appearance of checkmarks in the migration view

* - Resolve TODO / remove duplicated OCItemTracker code

* - Update SDK to include additional auth data update logging
- remove unneeded calls to OCBookmarkManager.saveBookmarks()
- fix Migration.legacyDataFound getter warning

* - Update SDK

* Added more logs to migration mechanism

* - Update SDK

* Invalidating oauth token upon migration

This should trigger a re-fresh since in the legacy app we didn’t store expiration date. Worst case user will have to re-login.

* Added icons for iOS releases prior to 13.x

- Exported some SF Symbols to PDF
- Displaying migration step success or failure with an icon

* Added icons for different migration activity types

* Some UI refinements

- Tweaked layou size and color of some elements in MigrationActivityCell
- Localized relevant strings
- Fixed swift lint warnings

* Fixed year in the licensing comment: 2019 vs 2020

* Presenting an error  on failed database opening attempt

If during migration legacy app’s database can’t be opened, error will be presented to the user

* Fixed a review finding

When retrieving credentials from the keychain stored by the legacy app, error is returned by ‘SecItemCopyMatching’, in the migration UI the account migration will be shown as failed instead of potentially showing nothing.

* Added a UI to approve / reject connection issues

* Skipping invalid user records

Found a case in which legacy app has stored multiple rows for the same user ID

* Fixed: displayUserName vs userName

* Changed presentation style of migration view controller

To avoid accidental dismissal before the migration is finished

* Added biometrical identification setting migration

Touch ID, Face ID depending on the hardware support

* SDK update

* Fixed merge issues

* Test commit with debug logs enabled

* Added more logs and fixed small issues

* Fixed an issue with InstantUpload settings hanging

There was an issue with InstantUpload folder creation leading to DispatchGroup.leave() not being called and thus hanging in wait() forever.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/extended-share-sheet-reorg] Share Sheet Extension (re-organized) (#752)

* - remove UIApplication.shared dependency
	- new UserInterfaceContext class, providing access to what UIApplication (and extensions thereof) were previously accessed
	- apps and extensions can implement an UserInterfaceContext extension implementing the UserInterfaceContextProvider protocol to provide access to supported UI elements
	- allowed removal of UIApplication+Extension
- moving major parts from ownCloud to ownCloudAppShared (major refactoring)
	- declare relevant methods and properties open or public
	- adapt all relevant XIBs
- cleanups
	- move "feedback" settings from MoreSettingsSection to VendorServices ("app") and update CONFIGURATION.md accordingly
	- move all intents from ownCloudAppShared to the intents app extension
	- merge AppLockHelper method into AppLockManager as a class-level property (AppLockManager.isPassCodeEnabled)
	- make UIDevice.current.isIpad a property (rather than a method)
	- fix indentations in many areas

* - moving Action base class to ownCloudAppShared
- moving FileListTableViewController to ownCloudAppShared, decouple big dependencies like the more view and open item handling so it can remain in the app itself

* - fix AppIcon-emm icon set
- QueryListTableViewController:
	- factor out multi selection
	- move to ownCloudAppShared
- adapt and move rest of app and framework code where needed

* - factor out inline message support for ClientQueryViewController
- move ClientQueryViewController to ownCloudAppShared
- move ClientDirectoryPickerViewController to ownCloudAppShared

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared
- start integration of feature/extended-share-sheet additions

Co-authored-by: Matthias Hühne <[email protected]>

* - transfer Fastfile changes from feature/extended-share-sheet
- transfer ImportFilesController removal from feature/extended-share-sheet
- transfer Localizable.strings changes from feature/extended-share-sheet

Co-authored-by: Matthias Hühne <[email protected]>

* - move NamingViewController and CreateFolderAction to ownCloudAppShared
- move TVG resources to ownCloudAppShared

* - remove unnecessary type dependencies in UserInterfaceContext
- new AppExtensionNavigationController to simplify Theme support and automated theme switching in App Extensions
- refactor ShareNavigationController as a AppExtensionNavigationController subclass

* - fix issue where OCCore is returned prematurely and multiple times

* - fix format error in ar localization
- add Localizable.strings to ownCloudAppShared, but also prepare for breaking out the relevant strings via .slocalized method
- optimize access to the ownCloudAppShared bundle

* Share Sheet Review:
- rename DisplayName from "ownCloud Share Extension" to "Share to ownCloud"
- change account selection wording to not include a reference to "file" (due to singular, plural).
- ClientDirectoryPickerViewController + AppLockManager
	- remove ShareViewController-specific code and instead add a new cancelAction property that takes a block to execute if the Cancel button is pressed
- ShareViewController
	- add NSErrorDomain.ShareViewErrorDomain instead of direct string use
	- remove ownCloud logo from account list (-> not brandable)
	- adapt code to use .cancelAction properties in ClientDirectoryPickerViewController + AppLockManager
	- update code to only use weak references to OCCore (previously kept a zombie instance around, causing issues)
	- use a DispatchGroup instead of the attachment index to track when import has finished
	- only signal request completion to the extensionContext once the OCCore has finished controlled shut down
	- fix error message in importFile if a nil value is returned for import progress

* - Update SDK

* - Updated to Xcode 11.6

* - fixed server list bookmark icon
- set the display name of the extension to the title
- set the display name in fastlane script for building a branded app
- fixed delete button colors in passcode viewcontroller

* fixed x-alignment for the progress view

* - Update SDK to solve false negative certificate validation

* Changed deployment target to 12.0, same as app target. Needed, that the share extension appears in the share sheet.

* - fixed presenting sort bar on iOS 12
- only add section, when no account or more than one account is configured

* - FileProvider Extension
	- added new special item path and id to retrieve a special, internal service
	- add support for providing service sources
- FileProviderServiceSource
	- provides XPC service for accessing / controlling the File Provider from a different process
	- supported methods are placed in the OCFileProviderServicesHost protocol
- ownCloudApp.framework
	- extensions for OCBookmark and OCVault to dynamically compose name and URL of the internal File Provider service
	- OCCore extension to connect to the File Provider, make calls and close the connection with only a few lines of code
- ownCloudAppShared.framework
	- AppExtensionNavigationController: add support to run a block when the navigation control is disappearing (typically indicating dismissal of the extension)
- ShareViewController
	- change importFile() to send files to the File Provider for upload
	- keeps track of requested OCCores and properly returns them to OCCoreManager
	- simplify presentation of directory picker if there's only one account

* reorganized UI, especially for iOS 12, but also cleaner usage of ClientDirectoryViewController implementation
- solved iOS 12 UI problems

* fixed: push transition delegate was not called, because of wrong permissions

* fixed file provider access in share sheet importFile function

* changes from milestone/1.4 branch

* new build number

* fixed code signing issues for share extension

* fixed release profile for share extension

* bring back the ImportFilesController, which is needed for Inter-App files import

* fixed importing files with original file name

* support for multiple file import in ShareViewController, which is needed for receiving files via AirDrop

* - ImportFilesController:
	- use a DispatchGroup to return the requested OCCore only after all uploads have been scheduled
	- code simplification for better readability
- ShareViewController:
	- dismiss view controller before returning core, to avoid dangling strong references from KVO of Core in ClientQueryViewController
	- factor out code for upload via File Provider
- OCCore+FPServices: provide dedicated error handler parameter for handling XPC connection errors
- ClientDirectoryPickerViewController: remove direct usage of extensionContext (duplicate effort, too specific)
- ClientQueryViewController: make it clearer that `core` should only be weakly held by quotaObservation
- OCCore+UploadByFileProvider:
	- factored out code for upload via File Provider
	- automatic management of temporary copies (creating them automatically if needed)
- SDK update

* - changes in document types
- hardcoded file provider display name

* save plain text as RTF file

* Saving shared plain-text as txt file

* if item is an url, the content will be downloaded and saved

* fixed crash when deleting a bookmark

* - OCFileProviderServiceSession: dedicated class to access FP services
	- queues work to avoid parallel access to the same remote OCCore
	- automatic XPC connection management to avoid concurrent connections and save time for bringing up and down a new XPC connection for every request
	- can be used without an OCCore on the client side
- refactor OCCore+FPServices to use OCFileProviderServiceSession under the hood

* - Add localizable strings
- file import via File Provider: refactor to remove dependency on OCCore
- OCFileProviderServiceSession
	- allow direct usage via simplified APIs
	- add incrementSessionUsage/decrementSessionUsage to keep the session alive beyond the last action
- ShareViewController:
	- add error handling
	- serialize uploads for meaningful ability to cancel and lower resource usage
- FullProgressViewController: new view controller to display progress information modally, while providing a Cancel option
- project: add relevant frameworks to share sheet target to avoid linker error a…
hosy added a commit that referenced this pull request Jul 29, 2021
* - set new version number/build number
- enabled beta build

* Configuration documentation updated

* fixing toolbar color value for branded clients (was overridden before)

* [feature/six-digits-passcode] 6 Digits Passcode (#1000)

* [feature/filename-webui-layout] Web UI Filename Layout (#1001)

* #968 Adopt the filename layout to the new WebUI:
- bold file name 17px
- nomal file extension 15px

* added changelog entry

* Calens changelog updated

* changed from bold to semibold

* fixed CR findings:
- renamed methods
- using UIFont.preferredFont instead of fixed font size points

* Calens changelog updated

Co-authored-by: hosy <[email protected]>

* fixed segmented control tint color theming

* [feature/pasteboard] Pasteboard Actions (#514)

* Naming improvements based on latest SDK:
- uploads use new OCCoreOptionAutomaticConflictResolutionNameStyle option to automatically resolve naming conflicts during upload
- Duplicate action uses the new OCCore name suggestion API to
	- determine naming conflicts and resolve them automatically
	- match the name style of the file to duplicate, f.ex.
		- duplicating "File copy.jpg" will create "File copy 2.jpg"
		- duplicating "File (1).jpg" will create "File (2).jpg"
		- duplicating "File Kopie 2.jpg" will create "File Kopie 3.jpg"
- folder creation uses the new OCCore name suggestion API to
	- detect naming conflicts beforehand
	- pre-fill the new folder name name with an unused name directly

* #393 added an activity indicator which will be shown, if offline copies will be deleted to give the user a UI feedback

* - Change SDK branch to master

* #76 user can import files using the iOS share sheet. all file types are accepted.

* - using new SDK with fixes for requesting core
- minor code fixes

* - Log device, version and locale information at the beginning of every log file using new SDK protocol
- Show SDK commit hash in Settings

* fixed crash, changed bookmark name to shortname

* changed UIAlertViewController for account selection to CardViewController style for testing

* fixed icon badge creation for fastlane lane In-House Enterprise IPA generation

* install librsvg for fastlane via sh

* moved import file code to own class

* added option to automatically resolve name conflicts, if file name already exists

* Changed app version to 1.1.0

* enabled beta build and warning

* Keep the gallery alive after doing some action over an item (#447)

* Rename updates the currently visible file in the gallery

* Keeping gallery alive fix

- Don’t pop to the root view controller on destructive action by default
- Only pop to the root if all items have been deleted
- Select next item upon deletion of the current ones
- Update UIPageViewController data source if number of items changes due e.g. to duplication or deletion

* Small fixes

* Fixed review findings

* Media player implemented using AVKit (#429)

* Media player implemented using AVKit

* Added possibility to stream audio / video

* Improved error handling

* Fixed review finding

* Added background audio, airplay and PiP mode

* Propagating safe area to the main view of AVPlayerViewController

* Another fix for safe area considering layout of AVPlayerViewController

* Updated to latest develop version of SDK

* Display error message in case file couldn’t be preview e.g. due to file corruption (#427)

* Fixed UI test for creating folder, need to return a fixed name, because suggestion is not working in tests

* added a description header and changed typo

* - fixed showing the directory picker controller, after the card view was dismissed
- use the current development SDK

* Version Bump to 126

* - create local copy of import file, if needed
- fixed create folder action
- delete local copy, if needed
- code review changes

* - improved duplicate item deletion behaviour
	- add additional safeguard so duplicate files are only deleted if they were actually duplicated (previously non-duplicate files could be removed if duplication or folder creation failed)
	- remove temporary container folder, too
- add 2 second delay before returning the core to give the core an opportunity to schedule the upload on a NSURLSession

* Version Bump to 127

* changed back signing identity

* Version Bump to 128

* added required CFBundleTypeName key

* Version Bump to 129

* updated changelog

* use formSheet presentation style for the iPad when showing the document picker

* Fix for images not being displayed in the gallery

* Version Bump to 130

* Version Bump to 131

* [fix/sharing-search] Fixed min length for searching sharing users (#455)

* #454 used correct comparator for sharingSearchMinLength and set a new default value, if capability does not exists

* added a constant for defaultSharingSearchMinLength value

* - Update ios-sdk to address finding (1) in ios-app #446

* Preventing updating UI in DisplayViewController while item is being changed

- Not calling present(item:) while meta data of OCItem is being updated
- Elliminated an assumption in MediaDisplayViewController that render renderSpecificView() can be called only once.
- Making sure that AVPlayer is not re-created upon changes in OCItem but that rather AVPlayerItem is replaced.

* Fixed a small warning

* Tried to improve gallery logic concerning items modification

- Watch out if the modification does still includes the item with local ID of the currently visible item.
- Take care of failed move but watching out for reappearing items

* Added a setting allowing to decide user if media files shall be streamed

* - Add debug output to Display*ViewController
- Fix SwiftLint warnings

* Fixed handling of deleted / moved item in the gallery

* Another small fix for handling of failed item move

* Version Bump to 132

* Added LSSupportsOpeningDocumentsInPlace key to Info.plist

* Fixed Info.plist and added LSHandlerRank property

* Fix for #455 issue: no search request triggered

* show always the account selection sheet and added a note, that only one file can be imported at once

* use securtiy scoped file operation for importing a file

* Fix for the PR #447 (keep gallery alive) (#465)

* Keeping track of individual OCItems in DisplayViewController instances

But loading the list of items in the gallery only once and not reacting to any changes (moving, deleting)

* Removed query stop call in DisplayHostViewController

Since this query is not created there but just passed from the parent view.

* Removing more button if the currently viewed file got moved or deleted

* Fixed updating UI after renaming current item

* Fixed a warning

* Fixed issues in the gallery

* - Minor fixes

* [feature/bundle-import] Add support for certain bundle formats to the share sheet (#471)

* - Add support for import of bundle-based document formats through transparent zipping
	- moved previous FileProvider functionality into ownCloudApp.framework
	- new method OCCore.importItemNamed() ensures correct handling of bundle-based document formats
	- fixes finding (4) in #445
- Changed LSSupportsOpeningDocumentsInPlace to NO address two issues:
	- the app is now listed as "Copy to ownCloud" (previously "Open in ownCloud", which was technically not correct)
	- previously, documents using "Open to ownCloud" would no longer open in f.ex. Pages, but in the ownCloud app when selected in the Files app

* - Refactored ImportFilesController around using NSFileCoordinator, fixing finding (1) in #471

* changed path for moved Info.plist for target ownCloudAppFramework

* Version Bump to 133

* [feature/sort direction] Allow sorting asc/desc for all sort methods (#474)

* #470 added change sort direction asc/desc for all sort methods

* - removed comments
- changed translation keys

* fixes sort comparator for sort method "shared"

* use correct images for sort direction asc and desc

* updated choosing sort method from a tableView/Popover instead of a UIAlertViewController

* set maximum width for popover and set arrow direction

* Added show sort direction in UISegmentControl

* - make sure arrows of popovers appear in same color as the popover contents
- fix issue where direction was toggled during setup of SortBar (setting of initial value from user defaults), so logging in, logging out and logging in would change the sort direction
- reset sort direction to ascendant when switching sort methods
- SortMethodTableViewController
	- remove extraneous instance lets
	- enforce row height used for table view height calculation
	- change table view height calculation to account for the last divider (which could look a bit off if present)

* tap on segment control was fired twice, because there was a missing check, if selected segment changed

* fixed changing width on selecting an other segment

* fixed jumping width of sortSegmentControl items by setting the same width for all items by calculating the longest width before

* [fix/index-bar] Make Index Bar available in general file list (#469)

* #413 show index bar in general file list
- Index bar is only visible, if sorting is "Sort by name"
- Index bar is only visible, if more than one different letters are available
- Index bar is only visible, if more items are available as visible

* - adopt to new sort methods
- reverse index list, if sort direction is descendant

* Version Bump to 134

* Version Bump to 135

* Version Bump to 136

* Change behaviour of default expiration date (#476)

* Enabling expiration date switch if default expiration date is configured

Checking files_sharing.public.expire_date.expire_date.days server capability. If it is set then it is used as default date and the switch is enabled even if the expiration date is not enforced.

* Fixed QA issue (1)

* Fixed QA finding (2): limiting the date range if expiration date is enforced

* Implement UIKeyCommands to access all actions and navigate through table views via hardware key shortcuts

* Permission increasing UX in reshares (#467)

* Not showing permissions which can’t be elevated

Affecting items shared with the current users which are being reshared

* Fixed an issue with wrong permissions displayed when creating public link

- Checking if permissions can be elevated for the public link
- Only viable options are displayed

* Fixed a trailing whitespace warning

* Fixed another compiler warning

* Inhereting permissions from the share when creating public link

* Fixed QA finding (4)

* Fixed QA finding (1)

* Fixed QA finding (2)

* fixed table selection in StaticTableView with key command

* Version Bump to 137

* - moved KeyCommands extension into own file
- added new commands

* [feature/itempolicy] Item Policy / Available Offline support (#456)

* Available Offline Support
- new MakeAvailableOfflineAction and MakeUnavailableOfflineAction actions
- new Available Offline Library section
	- easy access to all files available offline via Available Offline
	- new ItemPolicyTableViewController and ItemPolicyCell prepared for reuse for presenting other item policies
- Design: added SVG/TVG/PNG icons and cloud symbols for make available offline / make unavailable offline

ClientItemCell changes
- new ClientItemResolvingCell can resolve item from LocalID or path, new superclass of ShareClientItemCell and ItemPolicyCell
- string to use as content for title and detail are now provided via titleLabelString(for:) and detailLabelString(for:), updated via updateLabels(with:), making customization easier
- support for new available offline badge

ProgressSummarizer changes
- changed ProgressSummary from a struct to a class, addressing issue #451 ("Waiting for server response..." message sometimes not disappearing)

* - Adopt OCClaim to ensure files aren't deleted while they are being used in
	- DisplayViewController
	- DownloadItemsHUDViewController
	- FileListTableViewController
	- File Provider
- Add new Storage Settings to allow control over how long unused local copies are kept around
- DisplayViewController now uses OCClaims to ensure files aren't deleted while they are being viewed
- ClientItemCell uses new SDK APIs to
	- show "available offline" badges for folders
	- to indicate if an item has been made available offline directly (solid icon) or indirectly (dimmed icon)
	- keep the cloud status icon updated following changes
- Change "+" icon to "•••" icon in file list, rename plusButton to folderAction everywhere
- Action.provideAlertAction() now applies padding to images if necessary so their text aligns at the same horizontal offset
- Fix typo in BookmarkInfoViewController and change wording from "Delete Offline Copies" to "Delete Local Copies" for consistency
- Update swiftlint.yml to silence ownCloudScreenshotsTests warnings

* - Update ios-sdk

* - Make changes requested in code review, adding missing localizable strings and removing extraneous code

* - Update SDK

* - Add downloadTriggerIdentifier and availableOfflinePolicyCoverage as properties that trigger the update of an item's visual representation (addressing finding 6 in #456)
- Update make available offline action to use new convertExistingLocalDownloads option (addressing finding 2 in #456)
- Update SDK (addressing finding 5 in #456)

* Items in moved Available Offline folders should no longer be cleared locally and re-downloaded, following under the hood improvements in the ios-sdk

* - Add initial support for cookies via SDK update

* - Temporarily disable some UI tests broken due to lack of database running

* - Fix issue (11) in #456 by updating the lastUsed date of already downloaded items when they are viewed

* - Added slider type to StaticTableViewRow
- changed storage settings to allow picking a timeframe via slider rather than a list of time frames

* - Change text from "Remove" to "Make unavailable offline" in Quick Access > Available Offline list (addressing issue (9))

* - Update BookmarkInfoViewController to provide users with the choice to also remove local copies of items marked as Available Offline, issuing a warning and giving the users a way to cancel, addressing issue (12) in #456.

* - Update ios-sdk
- Take advantage of the new key-value store and OCCoreSkipAvailableOfflineKey to make sure available offline files are not immediately downloaded again after clearing the vault from local copies of available offline files.
- Logging into an account removes any previously set OCCoreSkipAvailableOfflineKey from the key value store
- Move Bookmark locking to an OCBookmarkManager category (next stop: use the new key-value store and bake support for locking bookmarks directly into the SDK)

* - Add missing localization

* Update SDK with latest fixes

* - Fix SettingsTests bugs

* - Apply additional fixes to UI tests and disable the remaining failing ones

* - Wait for connection initialization to complete before requesting sharing info
- Use latest SDK with cookie filtering

* - Turn off Request/Response log tags only filter in project file

* - Disable cookie support

* - Address (13) via SDK update

* link against newest development SDK

* Fixes for UI testing:
- use new SDK version that returns errors if the SQLite DB has not been opened
- MockOCCore.state now returns .running to avoid queueing of PROPFINDs

* - Fix unit tests

* - UI testing: make MockOCCore.state no longer return .running due to side effects
- fixed conflicting constraints in two places

* - force-delete bookmarks in UI tests if timeout has passed, log error but don't assert in that case
- handle case where a swipe on table cells in DeleteBookmarkTests triggers deletion outright

* - Further hardening of SettingsTests against timing differences local vs. CI

* - make SettingsTest.testCheckMoreItems() more robust

* Version Bump to 138

* [feature/reorder buttons] Reorder Navigation Bar Actions (#478)

* Available Offline Support
- new MakeAvailableOfflineAction and MakeUnavailableOfflineAction actions
- new Available Offline Library section
	- easy access to all files available offline via Available Offline
	- new ItemPolicyTableViewController and ItemPolicyCell prepared for reuse for presenting other item policies
- Design: added SVG/TVG/PNG icons and cloud symbols for make available offline / make unavailable offline

ClientItemCell changes
- new ClientItemResolvingCell can resolve item from LocalID or path, new superclass of ShareClientItemCell and ItemPolicyCell
- string to use as content for title and detail are now provided via titleLabelString(for:) and detailLabelString(for:), updated via updateLabels(with:), making customization easier
- support for new available offline badge

ProgressSummarizer changes
- changed ProgressSummary from a struct to a class, addressing issue #451 ("Waiting for server response..." message sometimes not disappearing)

* - Adopt OCClaim to ensure files aren't deleted while they are being used in
	- DisplayViewController
	- DownloadItemsHUDViewController
	- FileListTableViewController
	- File Provider
- Add new Storage Settings to allow control over how long unused local copies are kept around
- DisplayViewController now uses OCClaims to ensure files aren't deleted while they are being viewed
- ClientItemCell uses new SDK APIs to
	- show "available offline" badges for folders
	- to indicate if an item has been made available offline directly (solid icon) or indirectly (dimmed icon)
	- keep the cloud status icon updated following changes
- Change "+" icon to "•••" icon in file list, rename plusButton to folderAction everywhere
- Action.provideAlertAction() now applies padding to images if necessary so their text aligns at the same horizontal offset
- Fix typo in BookmarkInfoViewController and change wording from "Delete Offline Copies" to "Delete Local Copies" for consistency
- Update swiftlint.yml to silence ownCloudScreenshotsTests warnings

* - Update ios-sdk

* - Make changes requested in code review, adding missing localizable strings and removing extraneous code

* #477 reorganize navigation bar with create and more button and moved select button to sort menu

* added safeAreaLayoutGuide.rightAnchor

* - Update SDK

* changed "Select" image

* - Add downloadTriggerIdentifier and availableOfflinePolicyCoverage as properties that trigger the update of an item's visual representation (addressing finding 6 in #456)
- Update make available offline action to use new convertExistingLocalDownloads option (addressing finding 2 in #456)
- Update SDK (addressing finding 5 in #456)

* Items in moved Available Offline folders should no longer be cleared locally and re-downloaded, following under the hood improvements in the ios-sdk

* - Temporarily disable some UI tests broken due to lack of database running

* - Fix issue (11) in #456 by updating the lastUsed date of already downloaded items when they are viewed

* - Added slider type to StaticTableViewRow
- changed storage settings to allow picking a timeframe via slider rather than a list of time frames

* - Change text from "Remove" to "Make unavailable offline" in Quick Access > Available Offline list (addressing issue (9))

* - Update BookmarkInfoViewController to provide users with the choice to also remove local copies of items marked as Available Offline, issuing a warning and giving the users a way to cancel, addressing issue (12) in #456.

* addresses:
- missing multiselection UI in toolbar
- missing select all / deselect all button in navigation bar

* set if selectButton should be shown

* disable temporary some tests due to bitrise failures

* using correct SDK after merge

* fixed changed selectButton variable name after merge

* - added missing commands
- added photo album, photo selection
- fixed deselecting row

* fixed folder actions commands

* added sharing and links key commands

* - added key commands for LibrarySharing
- added localization

* - added missing key commands
- fixed keep selection, if FileList was reloaded
- fixed localization
- implemented copy and paste commands
- implemented new selection commands (letters, top, bottom, page)

* added commands for bookmark selection

* Determine, if the internal pasteboard is the current item and use it

* - implemented "Cut"-Command, "Favorite"-Command
- implemented Next, Previous Command for image gallery and PDF viewer
- fixed Sort-Type Command Key, because of system conflicts
- changed command key for adding a new account

* - refactored code to own actions
- cleanup code
- use extensions for key commands

* - fixed code review findings
- moving pasteboard actions copy, import and cut to separate PR

* Added new actions for Pasteboard: Copy, Cut, Import

* - updated version and build number
- enabled beta warning

* - add support for direct theming of progress colors also for light and dark mode

* using URL keyboard for configure up a branded server URL

* localized missing string in sharing receipient search field

* [fix/auto-page-scrolling] Auto Enable Page Scrolling in Detail View (#920)

* [feature/align-bookmark-names] Align bookmark names with Android and web (#922)

* [feature/prevent-sleep-detail-view] Presentation Mode (#893)

* [feature/french-localization] French Localization (#927)

* #4450 added french localization with latest translated strings from transifex

* Calens changelog updated

* Calens changelog updated

Co-authored-by: hosy <[email protected]>

* [feature/fileprovider-passcode-UI] File Provider Passcode UI  (#881)

* [feature/drag-drop-setting] Setting to disable dragging files inside the app (#643)

* #581 Added new setting to disable dragging files inside the app

* addressed CR findings and changed the title and the default value

* changed variable name for prevent dragging files and folders

* - update SDK
	- adapt BookmarkViewController to latest OCBookmarkManager usage patterns
- improve Illustrator ".ai" support
	- override for failing iOS MIMEType -> UTI conversion in FileProvider (-> fix grayed out items in Files app)
	- add "application/illustrator" mime type to PDFViewerViewController to allow viewing Illustrator files in-app
- improved sorting
	- replace "type" with "kind" to match Files app and change method:
		- sort by type (folder / file)
		- if identical: sort by suffix (with fallback to MIMEType if no suffix is available)
		- if identical: use "_various" for comparison

* Using creationDate instead of modificationDate (#668)

Change shall avoid upload of duplicated photos since e.g. modificationDate can change if the photo was edited.

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* Update documentation to reflect changes in instant photo upload (#677)

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.Document task scheduling

This relates to https://github.com/owncloud/ios-app/pull/484 and
https://github.com/owncloud/docs/issues/1900.

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Update docs/modules/ROOT/pages/ios_task_scheduling.adoc

Co-Authored-By: Phil Davis <[email protected]>

* Changed documentation to reflect changes in instant photo upload

Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>
Co-authored-by: Phil Davis <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>

* [feature/improve-public-link-creation] Improve creation of public link (#673)

* #671 Improve creation of public link
- enable dragging public link
- added clear button on public link name
- copy link to clipboard, after link was created

* - added in-app notifications to the app
- show a notification if a public or private link was copied to the clipboard

* implemented own notification banner class to show in-app notifications without a need of local notification permissions

* resolved crash

* - implemented own animator class
- renamed class
- added completion handler on dismissal
- added shadow

* [fix/audio-stop-playing] Stop playing Audio when item loosing focus (#686)

* #683 fix stop playing audio, when scrollview was swiped to next item, play again, when come back to the audio item

* moved code to given delegate methods

* [fix/round-shape-button] Fix round shape for pin code buttons (#689)

* #654 bring back the round shape to the button, after changes in super class

* added a new enum type to set corner radius with enum values

* [feature/folders-first] Option to show folders at the top (#680)

* - add "Show folders at the top" option in Settings
- fix DisplaySettings change propagation within the same process (relevant when using multiple scenes on iPadOS)
- restructure SortMethod and add support to show folders at the top for all sort methods

* - Update CONFIGURATION.md to include new and previously undocumented configuration options

* [feature/resign-script] Resign Script  (#690)

* Resign script with instructions how to resign an IPA file with an other certificate and provisioning profiles

* Using correct markdown format

* changed formatting for better readability

* Updated readme file

* changed new lines

* changed formatting

* changed formatting

* changed wording

* - changed folder structure
- added a parameter check for the signing method

* - show available certificate identities in usage
- check provisioning profiles fingerprint if matches with signing identity fingerprint

* [iOS] Open private link in app (#609)

* Adapted to latest SDK changes in develop branch

* Implemented support for private links

- Support for opening links using custom URL scheme owncloud://
- Support for associated domains added
- Test associated domain configured

* Some small fix for presenting linked item

* Fixed an issue with universal links not being opened if the app was terminated in iOS13

* Triggering item download if necessary when core connection status changes to online

* Added a comment requested in code review

* Fixed build issues

* Iterating through multiple bookmarks possibly related to same URL

* Fixed review finding

* Fixed various swift Lint findings

* Fixed minor swift lint warnings

* - Licensing: add finishTransaction call for SKPaymentTransactionStateRestored transactions

* Fixes an issue with private link not being opened

This would happen in case user has kept opened a card with actions (via 3 dots button)

* Removed dead code and ensured that no item is opened at next launch if user returns to server list

* Handling going back in state restoration

* Added error message in case link can’t be resolved

* Swiflit trailing space warnings fixed

* - Update SDK to resolve issues

* Made download dependant on state of the connection

More reliable download mechanism for file previews:
- Trigger download only if network connectivity is available
- React to connection state changes

* Fixed an issue with owncloud:// schemed links not opened

* Trying to trigger download when network becomes available

* Fixed swift lint warning

* Avoiding multiple update of display view state

* Updated to the latest SDK

* Fixed an issue with DispatchGroup.leave() sometimes not being called

* Adapted for a new connection status .connecting

* Some swift lint warnings fixed

* Some refactoring in the DisplayViewController

* Tried to make DisplayViewController more maintenance friendly

- Code restructuring
- Handling of connection status
- Re-worked view state handling
- Tried to unwind some deeply nested hard to understand if conditions

* Included a fix in the SDK which brings back missing parent OCItems

* Showing “Connecting…” before OCCore switches connection status to online

* Several small changes

* Improved private link handling

- Refactored to avoid unnecessary code duplication
- Improved error messages
- Showing progress HUD while link is being resolved since it might take time espeially with multiple configured bookmarks and so on

* Updated to the develop/latest SDK revision

* Changed how error message is chosen if the item for private link is not found

* Using OCCoreConnectionStatusSignal instead of OCCore.connectionStatus

* Fixed “Connecting…” visual glitch and added spinner shown while connecting

* Fixed opening of app registered scheme on iOS13

As well as eventually a bug concerning file imports in case the app was not launched

* Added a delay for iOS 12.x for the private link resolution

So when the root view controller is instantiated it might already start some operations like opening a root of bookmark etc. Otherwise it would probably require some complex coordination managed centrally. On iOS 13 such hack would be unnecessary since there UIApplicationDelegate callbacks are not used anymore.

* Improvement for QA finding

If the bookmark to which private link has pointed is not configured,  wrong error message has been shown

* Fixed an issue with incorrect error message being shown

In case item was removed

* Fixed an issue with file previews

- Not downloading by default if file can’t be previewed
- Downloading and opening files which can be previewed by QLPreviewController

* Fixed an issue with renderSpecificView() called at inapropriate time

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* new version and build number

* - Update SDK to add latest SDK HTTP request/response logging improvements

* Fixed some issues with VoiceOver / accessibility labels (#701)

* Set accessibility properties on the actions menu drag handle

* Fixed accessibility label for the favorite / unfavorite button

* Fixed wrong order of accesibility labels for star button (favorite)

* Added accesibility label for button activating multiple item selection

* Added proper accessibility labels to the toolbar items

* added mouse pointer hover effect to drag view

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to add preliminary/experimental TUS support

* show view controllers as formSheet, because fullscreen is to large for this small view on the iPad

* Take Photo or Video and Upload (#707)

* First draft of take photo and upload feature

* Don’t allow image editing when taking new pic

* Next iteration of “Take photo or video”

- Preserving image meta-data
- Conversion HEIC -> JPEG depending on media upload settings
- Conversion MOV -> MP4
- Localized action name

* Fixed media naming and added some error logs

* Some cosmetic code changes

* Changed keyboard shortcut to Cmd+Shift+3

* Added logs to camera upload action

* Added progress hud in case photo / video export would take longer

* Added more logs

* Added a check for HEIC support

Warning added to the log in case HEIC is not supported

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - update SDK to include JSON logging options
- add Xcode scheme env var templates to simplify testing

* [feature/contextual-menu] Contextual Menu for File List Items (#718)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* Fix docs build errors (#666)

Co-authored-by: Matthias Hühne <[email protected]>

* #717 Implemented a contextual menu for the file list which includes the same items as the more menu card

* - UIMenu title removed
- use table row label color as image tint color (UIMenu background color is wrong in simulator and dark mode)

* solved tint color problems for UIAction icon

* fixed wording and localization

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>
Co-authored-by: Matthew Setter <[email protected]>

* Fix for the resign script (#721)

- Do not embed entitlements into library binaries when signing frameworks. Otherwise leading to validation issue with AppStore Connect.
- Set NSExtensionFileProviderDocumentGroup to appropriate app group. This was missing

Co-authored-by: Michael Neuwert <[email protected]>

* Another fix for resigning script

Delete tmp.plist after it is no longer being used, otherwise leads to ITMS-90048 Bundle is invalid.

* Support changing the format of uploaded image file names (#687)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Fixes issue (1) found in QA testing

Fixed duplicated .MP4 extension when uploading videos

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* Fixed 1.4 branch

* - update SDK to include tus creation-with-upload support
- add additional env parameters for logging, auth methods

* - update SDK to fix infinite loops when hitting a redirect or certificate issue, eliminating redundant issues, respecting and remembering choices to either retry or put the connection offline

* [fix/various] Various fixes (#713)

* - FileProvider: extend hardcoded MIME/Suffix -> UTI maps so files of these types are properly displayed in the Files app

* - add new ItemContainer protocol allowing the retrieval of an item from another object
- UIImageView+Thumbnails
	- fix item version comparison for thumbnails requested from the SDK (using ItemContainer)
	- add item version comparison for thumbnails generated locally via QLThumbnailGenerator (using ItemContainer)

* - Update SDK

* - sharing items will be shown as subsection in contextual menu
- only show sharing items, if sharing is enabled and core is online

* changed image for rename menu item to pencil on > iOS 13

* Fixes for markup and PDF viewer (#730)

* Activate editing mode in viewDidAppear()

Sort of a hack but there is apparently no other way of achieving this

* Display more button in the PDF viewer. Preserving already configured UIBarButtonItem instances when adding more button.

* Re-rendering content if it has got modified locally

E.g. user could open markup editor and scribble on picture or PDF. Without this fix, he would need to go back to the file list and re-open document to see the changes.

* Fix for auto-tapping markup button

Co-authored-by: Michael Neuwert <[email protected]>

* fixes malformed file

* fixed code signing:
- use entitlements from app binary instead of provisioning profile
- set app values from provisioning profile to entitlements file
- only set NSExtensionFileProviderDocumentGroup for File Provider extension

* Include new dialog to encourage users to add a new app review in App Store  (#728)

* Added all bits and pieces for app review request

* Fix for a review task not being run

* Changed the way review prompt is presented

* Fixed review findings

* Corrected sign of time interval properties

* Another sign for time interval corrected

* Corrected the way review is requested

Co-authored-by: Michael Neuwert <[email protected]>

* [feature/auth-migration] Authentication Method Migration (#682)

* - OCBookmark+Extension
	- clean up OCBookmarkUserInfoKeys and move them to their own extension
	- add new OCBookmark.scanForAuthenticationMethodsRequired to mark bookmarks as needing a scan for available auth methods before editing
- BookmarkViewController
	- add support for OCBookmark.scanForAuthenticationMethodsRequired
- ClientRootViewController
	- add scan for available authentication methods once when encountering an authorization error
	- rename "Ignore" to "Continue offline"
	- extend ClientRootViewControllerAuthenticationDelegate to include preferredAuthenticationMethods
	- prepare for inline authentication data (username + password - or -  tokens) gathering in the next step

* - Client: add support for handling auth failures inline, without dropping out of the connection:
	- ClientAuthenticationUpdater
		- offers high-level abstraction
		- ties together token-/web-based auth UI and password-based auth UI (ClientAuthenticationUpdaterViewController)
	- ClientAuthenticationUpdaterViewController
		- view controller specialized in requesting a password from the user

* - Update SDK

* - ClientRootViewController: add support for OCCoreConnectionStatus.connecting

* - Update SDK

* - ClientAuthenticationUpdater: add check for .preferredAuthenticationMethodIdentifiers to .canUpdateInline
- ClientRootViewController: add support for plain HTTP bookmarks to authentication method scan
- add additional logging

Co-authored-by: Matthias Hühne <[email protected]>

* iOS13 gesture based multiple selection (#734)

* iOS13 gesture based multiple selection

- In file list view (2 finger pan)
- In photo selection grid view (1 finger or 2 finger pan)

* Disable gesture based multi-selection if prevent dragging optin is active

* changed option title and added a subtitle with a short description

* using better wording

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* [feature/emm] EMM version support (#706)

* Add EMM support:
- new OCLicenseEMMProvider
	- unlocks all pro features if the main bundle ID (as found in the app's or app extension's Info.plist) ends with either "-emm" or ".emm"
	- OCLicenseEMMProvider.isEMMVersion provides information on whether the app is an EMM version
- Licensing Setup: if the app is an EMM version, no App Store IAP provider is set up/added
- Settings: for EMM versions, don't show the "Pro Features" or "Purchases" entries

* - added new fastlane lane to build a emm version of the iOS app
- using the new fastlane file from migration bundle-id branch

* init fastlane deliver action to get the current metadata from the app store to prepare for different apps uploads (regular iOS app and EMM version)

* new fastlane action to parse the release notes plist file

* - new fastlane lane too upload regular and emm iOS build to the AppStore, before release note, screenshots can be created automatically
- new fastlane action to generate the release notes from the ReleaseNotes.plist
- added new options for fastlane lane

* show suffix "EMM" on settings, support mail, when the app was a EMM build

* - fixed signing issues
- changed copyright date
- removed app name metadata template, because of conflicts when using different apps
- updated release notes

* - added app icon for emm version
- exchange app icon with emm version before building
- added a description.txt metadata file for emm app version

* - added app icon for emm app (AppStore Connect upload)
- moving description and app icon for metadata upload
- uncomment code after testing

* new app icon for emm version

* fixed app icon dimensions

* using function from OCLicenseEMMProvider

* enable binary upload on deliver action for emm build

* using newest SDK, to prevent using UIWebView

* updated app version number

Co-authored-by: Matthias Hühne <[email protected]>

* Removed test configuration of associated domains

* Instant Uploads part II + more (#714)

* Improved various aspects of media uploads

- Changed a way how assets are exported which photo uploads significantly faster
- Refactored PHAsset+Upload.swift extensions which is now way more readable.
- Improved naming of assets
- Changed default naming of uploaded assets to the scheme legacy app was using
- Added an option allowing to preserve “original” asset names as used by iOS photo library
- Prepared code for future enhancments (exporting additional assets like RAW images and live photo video clips

* Localization of strings and other tiny changes

* Made a mechanism deriving original media asset name more reliable

* Fixed requesting image data

* Using PHAsset.creationDate as lastModifiedDate when uploading media asset

The timestamp is then set into corresponding property in the WebDAV request allowing to have proper file creation date when uploaded to oC server instance.

* Picking edited version of the photo when uploading by default

* Moved files around to have a cleaner structure in Xcode

* Using PHAssetResourceManager for export whenever possible

* Fixed small issues

* Corrected some comments

* Some small refactoring changes

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* Moved media upload settings into separate view

- New view for media upload settings
- Split settings into sections: Export, Auto Upload
- Changed appearance of the Upload Path setting
- Code refactoring changes

* Fixed swift lint warning

* Added cellular switch for media uploads

* Separate configuration for video auto-upload

Added posibility to select different account / path for video auto-uploads

* Fixed small issue in video upload

* Improved the UX for photo album view in upload

- Improved the way thumbnails are requested
- While view is active thumbnails for albums are cached
- Added activity indicator which is shown while albums are being fetched from photo library

* Uploading media from iCloud

- Showing cloud based photo albums in the selection UI
- Ability do upload media which is not available locally

* Improved vide exporting code

* Showing camera roll first in list of albums

* Refactored the method for asset fetching into separate extension

* Media upload queue refactoring

- More modular design and more maintainable code
- Started using OperationQueue for individual imports and created dedicated Operation subclass

* Forgot to add license header

* Small tweaks in media upload queue

- Changed import queue QoS to utility
- Added another cancellation point for MediaUploadOperation

* Configured main thread checker not to stop on first hit

* Background media uploads

- Improved and extended settings UI
- Using both BackgroundTasks and background location to enable background media uploads
- Local notifications informing about background uploads

* Fixed few issues concerning auto-upload settings

* Fixed some issues and added cellular switch for videos

- Some code refactoring in PHAsset export code
- Calling the upload completion handler when placeholder item is created allowing MediaUploadQueue to proceed

* Fixed an issue with photoLibraryChangeDetected flag reset at inappropriate time

* Improved wording in background upload settings

* Refactored local notifications in separate category

* Fixed swift lint warnings

* Cleaned up code

* Improved task scheduling code

* Re-added AVAsset extension

* Don’t show auto-upload settings if no accounts are configured

* Small improvements

- Wording for background location on iOS13 changed
- Added cell identifiers for easier creation of UI tests

* Fix of UI test was necessary since settings have moved

* Additional test for auto-upload settings added

* Fixed remaining failing UI tests

* Implemented CLLocationManagerDelegate error callback

* Re-applied a fix lost during merging

* Changed a way location tracking is initiated

- Start when app is going into background
- Stop when app is foreground
- Switch from significant location to visit monitoring

* Fixed review findings

* Removed a WiFi requirement from pending media upload task

* Removed some unused code

* Added more logs

* - add experimental option to force-enable background NSURLSession usage in the app
- in code, change all instances of the usage of the term "master" to "main"

* Removed an option allowing background NSURLSession

* Change the way background upload settings behave

* Removed background upload settings

Commented out and added a TODO

* Fixed some swift lint warnings

* Fixed review finding

* Only show bookmark / path if instant upload is enabled

Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Felix Schwarz <[email protected]>

* [feature/cellular-switch] Cellular transfer options (#709)

* Correct some typos (#620)

Fix small errors in typos

Co-authored-by: Matthias Hühne <[email protected]>

* Add support for cellular transfer settings
- rename StorageSettingsSection to DataSettingsSection to extend scope
- add row and cellular transfer summary to DataSettingsSection
- add new CellularSettingsViewController to present and allow control over cellular settings

* - Update SDK with cellular switch improvements

* - Update SDK to adjust concurrency budgets for sync action so that wifi-only up-/downloads can't block cellular up-/downloads entirely

* - Update SDK with new prefixed-HTTP/single-line logging options
- Add new scheme options to selectively turn off single-line and prefixed HTTP logging

* - Update SDK to include logging improvements

* add extra check in release checklist, to avoid missing translations in some languages (#640)

Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK

* - in code, change all instances of the usage of the term "master" to "main"
- update SDK

* - removal of iOS 11 support (including SFAuthenticationSession) and updating to iOS 12+ APIs, adaption of docs where needed
- migration from MobileCoreServices to CoreServices
- drop deprecated serialization APIs in AppLockManager and FileProvider
- Cellular Options
	- display a message if cellular transfers have been disabled via MDM
	- adopt updated SDK to include cellular option improvements

* - Update message in Cellular Settings and dynamically show/hide it depending on whether the main switch is enabled or not

Co-authored-by: Carlos Damken <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Jesús Recio <[email protected]>

* [feature/app-version-clipboard] App Version Infos to Clipboard (#741)

* #740 moved app version infos from footer to a row to perform a copy action to the clipboard with app version infos

* - fixed localization
- removed unneeded completion block

* removed target ownCloud File Provider UI, because this was never used
Deletion of this target solves a problem when building with fastlane (code signing error)

* [fix/missing-file-list-actions] Implements missing actions in Quick Access file list (#743)

* #733 some actions like contextual menu, multiple selection and swipe actions was missing in the generic file list class. Moved missing code to super class or super-super class.

* moved table view row swipe actions to parent class

* [feature/message-queue] Message Queue to allow flexible handling of issues and messages (#662)

* - ClientRootViewController: do not add dot to the end of the short connection status description if it already has one
- UIImageView+Thumbnails: fix retain loop, leading to leaking an OCCore - and all possible issues relating to that

* - Update to latest SDK

* - Update SDK and adapt ProgressSummarizer for new event type

* - Fix core-stop-blocking share reload query retain loop via SDK update

* - add permission checks to CreateFolderAction, DeleteAction, DocumentEditingAction, MoveAction, RenameAction, ScanAction and UploadBaseAction, so they are unavailable if permissions aren't sufficient for their usage
- add alert to inform the user that no actions are available in cases where no actions are available for a folder and the user presses the folder action "+" button

* - Update SDK

* fixed QA finding (1) #623

* Fix for QA issue (2)

Media upload settings shall not allow selection of the upload folder which lacks required Permissions

* #623 QA finding (6) allow Markup it at least one permission is available and restrict save actions to available permissions

* - address issue (1) using ActionContext.query.rootItem

* OCCore+Extension.swift:
- remove items from OCShareQueries where they are not used by the core to avoid warnings in the log
- add option for partial matches to sharesSharedWithMe() via allowPartialMatch option

PublicLinkTableViewController.swift:
- take advantage of allowPartialMatch option
- determine share nested the deepest to determine permissions (fixes finding 84) in #632

* - Update SDK

* - avoid using ":", "/" and "\" in localized time stamp of auto-created file names for document scanning, using "-" instead
- update SDK

* - DisplayViewController
	- make sure content is updated as new versions become available (fixing #630)
- FileProvider
	- make use of new SDK OCClaimLockTypeRead to encourage automatic file updates for opened files
- SDK update

* - Update SDK

* - Update SDK

* - DisplayViewController:
	- update for local changes, tracking the last modified date of the local file
	- source:didSet: remove duplicate/out-of-sync checks

* - EditDocumentViewController: fixing tabs, refresh when source file changes
- DisplayViewController: clarify code, add debug output
- OCItem+Extension: new OCItem.contentDifferent(than:core:) to determine whether the content of an item has likely changed based on two OCItem, based on identifiers and size, adapt OCItem.displaysDifferent(than:in:) to use the new method.

* - Change method to refresh QLPreviewController to .reloadData() as it works more reliable

* - Update SDK

* - Initial support for message queue

* - wrote down UI integration ideas

* - ownCloudApp framework
	- NotificationManager: provides necessary infrastructure for local notifications
	- NotificationMessagePresenter: an OCMessagePresenter using local notifications
- File Provider
	- temporarily drop all early-error-catching code to allow debugging messages
- Client
	- ClientActivityViewController: added support for display of OCMessages
	- ClientRootViewController:
		- added notificationPresenter and issueMessagePresenter
		- added presentAlertAsCard(viewController:withHandle:dismissable:) to present view controllers using the alertQueue
	- rewrite MessageCell to use the new AlertView instead
- Messages
	- AlertView and AlertViewController provide alert views suitable for showing as a card or inline in a table
	- CardIssueMessagePresenter: an OCMessagePresenter presenting messages as a card
	- SyncIssueMessagePresenter: an OCMessagePresenter bridging messages to the legacy OCIssue interface
- ServerListTableViewController: provide option for auto resolution using a particular error
- Fixes
	- MediaUploadQueue: fix deadlock and make sure the tracking doesn't stop prematurely (also resulting in a deadlock)
	- ProgressSummarizer: fix dangling pointer warning

* - Update SDK to incorporate ocis OIDC change

* Various fixes:
- SwiftLint: add implicit_getter to disabled_rules as it is broken and produces false positive warnings
- MediaUploadQueue: fix deadlock and avoid premature end of tracking (resulting in a hung/dysfunctional app)
- ProgressSummarizer: fix warning
- FileProviderExtension: adopt new lock type API

* - Update SDK to include OCAuthenticationMethodOpenIDConnect changes for ocis

* - WebViewDisplayViewController: add support for content updates, clean up code
- PreviewViewController: add support for content updates, clean up code

* - ImageDisplayViewController: add support for image file updates
- MediaDisplayViewController: fix indentation
- PDFViewerViewController: add support for file updates, fix indentation

* - CardIssueMessagePresenter: option to only show one message at once

* - Update SDK for latest improvements

* - AppDelegate: register notification categories at launch
- ClientRootViewController: add and remove presenters at core start/stop
- RoundedLabel: clean up and add styling support via Style struct and switch all usages of RoundedLabel over to new syntax
- ServerListTableViewController
	- track message count on a per-bookmark basis
	- update app icon badge count
	- broadcast change notifications
- ServerListBookmarkCell: add message count badge
- DisplayHostViewController & QueryFileListTableViewController: stop observation of OCQuery.state before stopping OCQueries
- MessageSelector: make filtering optional to allow for usage without filtering
- NotificationManager
	- add support to create and register notification categories based on registered OCSyncIssueTemplates
	- add support for routing and handling notification responses via ComposeNotificationIdentifier() and NotificationResponseHandler category
- NotificationMessagePresenter: implement NotificationResponseHandler category to feed back notification responses to OCMessageQueue

* - ClientRootViewController: rename card message presenter var
- ClientSessionManager: new class to keep track of active client sessions and route messages for presentation. All ClientRootViewController instances should henceforth be created through it
- CardIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- ServerListTableViewController
	- add support for ClientSessionManager delegation
	- add support for presenting messages after successful login
- SyncIssueMessagePresenter: add bookmark UUID to .identifier and adapt to new presentation completionHandler
- NotificationMessagePresenter
	- add bookmark UUID to .identifier and adapt to new presentation completionHandler
	- implement endPresentationOfMessage to remove notifications for removed messages
	- add support for taps on notifications

* - SDK update
- ClientSessionManager: change showMessage(notification:) and ClientSessionManagerDelegate from binary to based on priorities
- AlertView and AlertViewController: add optional header view and label
- CardIssueMessagePresenter: show bookmark .shortName as header for messages not belonging to the presenter's bookmark
- SceneDelegate and ThemeWindow: tracking which window is visible and in foreground
- ServerListTableViewController > ClientSessionManagerDelegate:
	- take foreground status into account when computing the presentation priority
	- add support for presenting messages from other accounts, based on foreground status and availability of "unused" scenes

* - Update SDK

* Add support for grouping messages:
- new MessageGroup class to store messages in groups
- MessageGroupCell replaces MessageCell
	- improve performance
	- add alternative layout for groups with more than one message:
		- switch to apply a choice to more than one message; badge count if switch is on
		- button to show all messages
- extend MessageSelector with support for maintaining MessageGroups
- MessageTableViewController to show messages as a list of individual messages

* - Update SDK

* - Update SDK

* - remove SyncIssueMessagePresenter as it is not used
- show messages only if they haven't already been resolved (previously shown until removed from the queue)
- update code to use OCMessage properties rather than OCMessage.syncIssue, replacing OCSyncIssue dependant code whereever possible
- add MessageQueueExample.swift to show how to use OCMessageQueue from within the app
- fix bug where messages without categoryIdentifier would be grouped together

* FileProvider changes:
- re-instate local error handling for creation of folders in the File Provider
- add support for class settings to disable local error handling for test purposes

* - bring up an alert if a new folder is attampted to be created in a location where another item with the same name already exists
- add support for providing a title to the namecheck/validation result in NamingViewController

* - OCMessage+Extension: convenience method to simplify presentation of OCMessages in the app
- move MessageSelector from ClientActivityViewController to ClientRootViewController for joint access from different parts of the app
- MessageSelector: add option to also collect and update a Set of OCSyncRecordIDs found in active messages
- ClientActivityCell + ClientActivityViewController: add support to show tappable warning sign instead of progress indicator if a message for the activity's sync record ID has been found
- ClientItemCell + FileListTableViewcontroller/ClientQueryViewController: add support to show tappable warning sign instead of progress indicator or more button if a message for the item's active sync record IDs has been found

* - Remove unused code from SDk

* - display "All done" message in Status tab when there are no messages or activities going on

* - Fix review findings

* - more nuanced status message in case of pending issues

* - Adding key command support to AlertViewController

* - remove duplicate/reunify diverged code in "ownCloudAppShared/SDK Extensions/OCItem+Extension.swift" and "ownCloud/SDK Extensions/OCItem+Extension.swift"
	- move app-specific code to OCItem+AppExtension.swift
	- update ownCloudAppShared/SDK Extensions/OCItem+Extension.swift with all changes
- optimize speed of:
	- OCItem+Extension.isShareRootItem() by checking only the parent item and cache the result for the duration of the runloop iteration
	- OCItem+Extension.shareRootItem(from:) by wrapping all SQLite lookups into a single transaction, avoiding unnecessary idle/wait time

* - Update SDK to add Cancel option for uploads

* - Add initial call to (re)set app icon count in case the app got deleted with messages but kept the count upon reinstall

* - Address finding (5) in #662 via SDK update ("ugly" authentication error message)

* - Extensions / Categories:
	- move OCBookmark.userName, .displayName and .shortName to ownCloudApp.framework so it becomes available to the NotificationMessagePresenter
- NotificationManager:
	- extend NotificationManager to provide equivalents for relevant methods of UNUserNotificationCenter
	- change all usages of UNUserNotificationCenter to NotificationManager
- NotificationMessagePresenter:
	- add account information to notifications
	- only add account information if the user has more than one account in the app
- Update SDK

* - Update SDK to address (6)

* - fix finding (6) glitch where message/warning icons wouldn't disappear when resuming a download or upload

* - Update SDK

* - Update SDK

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: Michael Neuwert <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>

* - Update SDK to develop (now containing all changes from feature/message-queue)

* - Fix static analyzer warnings

* - Update SDK to fix owncloud/enterprise#4053 and owncloud/ios-app#732

* - Update SDK

* [feature/branding] Branding / Static Login support (#637)

* - New Static Login
	- StaticLoginBundle: container for all Static Login parameters
	- StaticLoginProfile: individual parameters for a Static Login
	- StaticLoginViewController: WIP implementation for a Static Login UI
- Theme extensions
	- UIButton support
	- ThemeStyleIdentifier typealias for more expressive APIs
- Static Table View
	- added support for headerView and footerView of section

* - Add closeHandler-support to ClientRootViewController to run a block when a connection is closed by the user
- Fix crash in OCItem+Extension.lastModifiedInReadableFormat by adding a missing check
- Make sure ProgressHUDViewController.dismiss() always calls the completion block
- ServerListTableViewController enhancements:
    - hasToolbar-property to turn the toolbar on/off
    - make initialization with XIB optional
    - add showModal(), didUpdateServerList() and openBookmark() hooks for subclasses
- Add StaticLoginServerListViewController (ServerListTableViewController subclass)
- Add "Done" button to SettingsViewController if it is used as the rootViewController
- Add loginThemeStyleID to StaticLoginBundle
- Make StaticLoginSetupViewController feature-complete
- Add new ThemeView that can be used as container for ThemeAppliers that get removed automatically when the view is freed
- Relocate FullWidthHeaderView and make it a ThemeView subview
- Extend StaticTableViewSection.addButtonFooter() to support cancel-only versions
- Add toolbar to StaticLoginViewController
- Fix copyright notice formatting

* New Iconset for iOS: Filetype Icons

* Documentation for the app color scheme

* markdown definition for color theme values

* added links to type definitons

* added color definition

* added global colors

* added color values for dark scheme

* added light and classic color scheme

* Preparing branding support with themes and colors from plist file

* - using theme styles from plist file
- using splash image in welcome view

* set tint color for server list icon

* Add example images

* Change the color of the bookmark-logo

* Change colors to match example-theme

* use different icons

* All colors are not customizable by setting the color in Theme.plist. If the key is not set in plist, the default value will be used.

* fixed resolving theme color pair

* Added appiconset and changes branding colors

* Color adjustments and edited bookmark-logo

* Add Surf logos and colors

* setting new theme generic colors and reading them from keypath, if existing

* Add Surf logos and colors

* Add first SURF branding

* removed iOS 13 code

* Merge branch 'master' into Design

* fixed broken project file

* fixed broken plist file after merge

* Cleanup after cherry-pick from Design branch

* Add colors from SURF

* Add changes to Fastfile from tag 1.1.0

* Comment out Themes tests

* removed bookmark icon tint color

* Add new bookmark-icon.png

* Change the name to SURFdrive

* changed app name in build settings instead of target name

* customize search bar

* Add new bookmark icon and polish color settings

* Add new bookmark icon and polish color settings

* Change the name to SURFdrive, again

* - searchbar customization
- theming delete button in pass code view

* - Fix Swift and SwiftLint warnings
- Remove unused UploadsSettingsSection (was replaced by MediaUploadSettings)

* - adopted Fastfile to set the app name
- added app name to Themes.plist
- removed unneeded theme

* set correct path in Fastfile

* removed output name, because Bitrise expects other ipa name

* using branded image for quick access tab

* setting the placeholder color for UISearchBar text field in iOS 13

* check if app is branded, disable help and feedback, if branded app

* - support for branded urls (help, privacy)
- changed plist name

* hide Theme sett…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved by QA Approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants