Skip to content

Commit

Permalink
[feature/new-navigation] New navigation (#1162)
Browse files Browse the repository at this point in the history
* [milestone/11.10.1] Milestone 11.10.1 (#1131)

## Description
Contains various changes and improvements to the view navigation and hierarchy of version 12:
- [x] sidebar
- [x] remove legacy table view code and use new UI for OC10, too
- [x] support for status 425 items
- [x] show folder statistics and drive quota (if one is set) at the bottom
- [x] show correct UI for ocis-based servers on first login for branded clients  
- [x] add missing German localizations
- [x] basic sharing fixes
- [x] new location picker, import sheet and share extension
- [x] show new [AppStore UI](https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions) for managing AppStore subscriptions
- [x] browser-like navigation
- [x] tappable breadcrumb view

## Merges
This PR was started on a merge from [feature/new-search] #1142 and [feature/app-provider] #1151 to leverage work from previous PRs directly.

In addition, the following PRs and changes have been merged into this branch:
- [feature/disable-fileprovider] Disable access to File Provider via MDM #1158
- [feature/disallow-extensions] Add option to disallow extensions, show action for unviewable filetypes #1140
- [feature/ats-control] Add DISABLE_PLAIN_HTTP build flag #1136
- [feature/postbuild-settings] Postbuild Settings #1179
- merge `11.11.0` and `fastlane/enterprise-adhoc` changes from `master`

# Autogenerated, squashed changelog

* - Changed app version
- Added In-App release notes section

* changed app version to unused value

* updated Xcode version for release build

* [fix/share-sheet-biometrical-unlock] Biometrical Unlock in Share Sheet (#1129)

* #5256 workaround for fixing the biometrical unlock in the share sheet, when opening from Boxer app. View disappeared after the biometrical unlock succeeded. Probably because 'completeRequest' was sent from the biometrical unlock extension, which caused a dismiss in the share sheet extension.

* - added new app lock setting if biometrical unlock should be used in share sheet
- share unlock and last application background date via app and extensions

* change default value to YES for using biometrical unlock in share sheet

* - normalize code indentation

* - normalize code indentation for better comparison

* - Branding: add -appURLSchemesForBundleURLName: method to retrieve URL schemes from the app bundle
- UIViewController+HostBundleID: category to return the bundle ID of the app hosting/invoking a (share) extension
- ShareNavigationController: set OCAppIdentity.hostAppBundleIdentifier using UIViewController+HostBundleID
- AppLockSettings:
	- replace "use-biometrical-unlock-share-sheet" boolean with "share-sheet-biometrical-unlock-by-app" dictionary
	- implement new logic to turn off biometric authentication based on share sheet invoking app
- AppLockManager:
	- make LAContext() optional throughout methods
	- move invocation of openURL to central place
	- remove fixed URL opening of owncloud:// and replace it with the dynamically composed URL AppLockSettings.biometricalAuthenticationRedirectionTargetURL
- PasscodeViewController: rename cancelButtonHidden to cancelButtonAvailable because the latter is what it actually does
- ownCloud Share Extension/Info.plist: add missing OCAppComponentIdentifier key so that OCAppIdentity.componentIdentifier returns the correct value

* - fix code comment

* - fix finding #1 by @jesmrec in #1129

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

* QueryFileListTableViewController (#1134)

- add category to OCCoreConnectionStatus to quickly determine offline-like states
- fix bug #1130 where the folder contents wasn't shown when offline

* #5199 fix some automatic color values, if the branding color is bright. Before we only had a look if the branding color is white, but this does not work. Introduced a new welcome style for informal button, because the general informal button color does not work for the login screen in all cases (#1132)

Co-authored-by: Matthias Hühne <>

* - updated changelog files
- updated In-App release notes

* Calens changelog updated

* moved Calens changelog files to release folder

* Calens changelog updated

* added fastlane App Store release notes

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

* updated app version because of invalidate binary on App Store submit

* - add DISABLE_PLAIN_HTTP build flag
- re-add a reduced version of the BUILD_CUSTOMIZATION.md document to keep track of build flags and add documentation on DISABLE_PLAIN_HTTP to it

* - update SDK to include latest documentation changes

* - Action: add new action location "unviewableFileType" for actions to display for unviewable file types
- DisplayViewController:
	- add support for a primary unviewableFileType action
	- replace usage of UIControl.Event.touchUpInside with .primaryActionTriggered
- Scheme: add option for new "extensions.disallowed" MDM option
- update SDK for support for "extensions.disallowed"

* Changed app version to value 11.11.0

* [feature/theme-dark-web] New Dark Mode Themes (#1145)

* [fix/video-artwork] Metadata Image overlays Video Player (#1147)

* #5296 in some cases the video player does not show the video, because if a metadata image was available, an image view was overlaying over the video. Now the metadata image will only shown, if item is not a video file.

* added changelog entry

* Calens changelog updated

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

* Calens changelog updated

* - bump version to 229

* - respect files.privateLinks capabilities and do not offer to create private links when privateLinks are not supported (#1139)

* [fix/enable-markup-iOS16] Enabling Markup Mode on iOS 16 (#1152)

* #1141 fixes enabling markup mode on iOS 16

* added changelog entry

* Calens changelog updated

* In some cases the number of toolbar buttons are less than 4

* Calens changelog updated

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

* changed new dark theme button background color

* fixed cancel button style in passcode setup view

* - fixes AVPlayerViewController controls not being visible on iOS 16 (finding "iOS 3" in #1141 (comment)) (#1157)

* fixed some UIAlertController declarations, which were not themed in the UI and replaced it with subclass ThemedAlertController

* [fix/share-extension-passcode-lock-interval] Share Extension Passcode Lock Interval (#1156)

* [translation-sync] Translation Sync (#1150)

* Transifex translation updates

* [tx] updated from transifex
* updated to latest SDK commit

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

* - OCFileProviderSettings:
	- class to manage file provider setttings and host documentation
	- initially offers only an option to make the File Provider unbrowseable
- File Provider UI / DocumentActionViewController:
	- add support for OCFileProviderSettings.browseable
	- fix broken display of error messages
- File Provider Extension:
	- add support for OCFileProviderSettings.browseable
	- invoke File Provider UI to show an error message when the user tries to browse an account
	- return tailored error message when user tries to create a folder
	- return tailored error message when user tries to upload a file

* [milestone/11.11.0] Milestone 11.11.0 (#1148)

* Changed app version to value 11.11.0

* [feature/theme-dark-web] New Dark Mode Themes (#1145)

* [fix/video-artwork] Metadata Image overlays Video Player (#1147)

* #5296 in some cases the video player does not show the video, because if a metadata image was available, an image view was overlaying over the video. Now the metadata image will only shown, if item is not a video file.

* added changelog entry

* Calens changelog updated

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

* Calens changelog updated

* - respect files.privateLinks capabilities and do not offer to create private links when privateLinks are not supported (#1139)

* [fix/enable-markup-iOS16] Enabling Markup Mode on iOS 16 (#1152)

* #1141 fixes enabling markup mode on iOS 16

* added changelog entry

* Calens changelog updated

* In some cases the number of toolbar buttons are less than 4

* Calens changelog updated

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

* changed new dark theme button background color

* fixed cancel button style in passcode setup view

* - fixes AVPlayerViewController controls not being visible on iOS 16 (finding "iOS 3" in #1141 (comment)) (#1157)

* fixed some UIAlertController declarations, which were not themed in the UI and replaced it with subclass ThemedAlertController

* [fix/share-extension-passcode-lock-interval] Share Extension Passcode Lock Interval (#1156)

* [translation-sync] Translation Sync (#1150)

* Transifex translation updates

* [tx] updated from transifex
* updated to latest SDK commit

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

* - added missing changelog files
- added in-app release notes

* Calens changelog updated

* generated updated fastlane release notes

* moved changelog files to release folder

* Calens changelog updated

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

* - change "smart folders" naming to "search view"
- add missing strings to Localizable.strings

* - update SDK to fix issue with detached spaces' items turning up in search results

* Updated to current Xcode version

* - update KNOWN_ISSUES.md to reflect changes

* - ItemSearchSuggestionsViewController:
	- hide save search/template popup button unless saving is actually available in a scope
	- remove saved searches from the popup as they are now also available elsewhere
- SearchViewController: strip whitespace when deciding what content to show (suggestion / noItems / results)
- update SDK

* [fastlane/enterprise-adhoc] Fastlane Enterprise Ad-hoc Replacement (#1160)

* replaced enterprise with ad-hoc export method and values

* changed certificate name

Co-authored-by: Matthias Hühne <>

* Certificate Update

* - add SegmentView: composing items (SegmentViewItem) as views (SegmentViewItemView), applying background, round corners, colors, etc. (styling still work-in-progress)
- SavedSearchCell: make use of SegmentView for richer, token-based visualization of saved searches
- OCSavedSearch:
	- new property to indicate if .name has been defined by the user
	- convenience method to quickly create an array of SegmentViewItems from a OCSavedSearch
- CollectionViewController: automatically apply .tableBackgroundColor as background color
- SearchViewController: strip whitespace from search queries before determining which content to show
- GradientView: add support for direction
- UIView+EmbedAndLayout: convenience methods to embed views horizontally and apply custom insets and spacing
- ThemeView: add hook to setup subviews upon insertion into superview

* - update KNOWN_ISSUES evolution part with remaining idea on what can be done with SegmentView and how it would benefit search
- Theming support improvements
	- ThemeCollection: add tokenColors and tableRowButtonColors
	- SegmentViewItemView: add support for themeing
	- SegmentViewItem: simplify styles
	- SearchViewController: theme the search field
	- SavedSearchCell: add support for themeing

* - bump build/version to 230

* SDK update
- removes space type from presentable / spaces list
- adds new log.replace-newline option and makes it default

* Fix App Provider review findings from #1151:
- close button visibility on mixed/dark themes
- display error messages when errors occur
- add missing translations

* - update SDK for additional bugfix

* - ItemListCell: add support for server-side processing state
- fix bug that caused an empty spaces list when offline (via SDK)

* - OCItem+FileProviderItem: add support for OCItem.state, making non-local files that are processing remotely non-readable
- SDK update

* - bump build number to 231

* - add new Tool "LocaleDiff" to find superfluous and missing strings in an other translation
- add German translations for all missing strings in ownCloud/Resources/en.lproj/Localizable.strings

* - bump build number to 232

* - make Beta warning localizable and localize it in German

* - add additional strings files to LocaleDiff scheme
- add missing German ownCloudAppFramework locales

* - add missing string to Localizable.strings

* - update SDK to get improved error messages for downloads of files with status 425

* - update localizations

* - SDK update: fix duplicate/"ghost" activities visual issue
- ClientActivityViewController: fix Xcode 14 warnings
- PopupButtonController: add themeing support
- NSObject+ThemeApplication: add proper support for UISearchTextField, fixing #118 text color issue

* - ClientRootViewController: do not restore view hierarchy for drive-based accounts since that's not yet implemented and the wrong view controllers would be created
- ClientItemViewController:
	- use a UILabel as navigationItem.titleView to address UINavigationBar layout issues (fixing reports finding 3 in [censored] issue 118)
	- update title as the folder's name is being changed
	- update underlying emptyActions when the folder they target is moved
- update SDK for moved item detection fixes

* - bump build number to 233

* - SDK update to fix possible crash bug
- address open/public Swift compiler warnings

* - bump build number to 234

* - bump build number to 235

* Fix issues with ocis sharing:
- respect OCCapabilities.federatedSharingSupported
- GroupSharingTableViewController: fix delete share issue by calling the correct method

* - bump version to 236

* - fix Xcode 14 warnings

* - upgrade SDK
- adapt to OCShare.itemType type change
- replace UIImage(systemName:) code with one using OCSymbol
- fix more Xcode 14 warnings

* - update SDK to gain OCStatistic capabilities
- ClientItemViewController:
	- implement support for "folder removed" state
	- adjust message spacing
	- refactor navigation bar code
	- add footer to display statistics for the current location, feeding from OCQuery-provided OCStatistics
	- prepare to also include quota information in the footer
- update KNOWN_ISSUES.md

* - ItemListCell: align separator layout guide with icon
- ViewCell: add separatorLayoutGuideCustomizer to allow customization of separator layout guide for individual views
- ClientItemViewController: add support to display quota information (space remaining)
- UIView+EmbedAndLayout: add code to embed multiple views vertically, modify existing ConstraintSet type

* - update SDK to gain fixed "Personal" and "Shares" names

* - ios-sdk: OCSyncActionCopyMove: prevent copying and moving of items into themselves
- ViewCell: fix seperatorLayoutGuide constraint on reuse (could cause visual glitch of full-length separator line when there shouldn't have been one)
- update known issues

* - SDK update to gain Accept-Language header addition for in-app web app presentation
- ClientWebAppViewController: implement logic to immediately dismiss the view controller when tapping the close button, but keep the web view alive until the "close" event arrives from the webview - or 10 seconds have passed

* - Action: add new class setting for excluded activities
- OpenInAction: honor excluded activities, bring up UIActivityViewController instead of UIDocumentInteractionController even for a single item if activities are excluded
- ownCloud.xcscheme: add env var example for action.excludedSystemActivities to block copying to pasteboard

* - update SDK to bring over UUID-based Shares Jail detection

* - bump build number to 237

* - StaticLoginSetupViewController: add OCConnection.connect() / .disconnect() to enrich bookmark with metadata and user name during setup. Required to present the correct UI for space-based accounts.

* - bump build number to 238

* - fix "App Provider language always English" via ios-sdk update

* - bump version to 239

* - update SDK for specific error message when trying to open a file that's being processed via open-web or open

* - update SDK

* - ClientSidebarViewController: side bar view controller
- CollectionViewSection: add hideIfEmptyDataSource feature/property
- ClientContext: add ViewControllerPusher protocol and methods for unifying pushing of view controllers to navigation / into view
- OCDrive+Interactions, OCItem+Interactions, OCSavedSearch+Interactions: move to new ClientContext method for pushing

* - CollectionViewController:
	- add support for hierarchic collection views and hierarchic data sources
	- add shouldDeselect() method
	- use snapshot.reconfigureItems() instead of snapshot.reloadItems() for more efficient updates (reuses cell rather than recreating it from scratch)
- CollectionViewCellConfiguration:
	- add new sideBar StyleType
- UIView+EmbedAndLayout: add AnchorSet and extend API to utilize it
- many fixes

* Snapshot with sidebar basically working, before making deeper changes
- App Controllers
	- AppRootViewController: the root view controller of the entire app, manages sidebar and more
	- AppSidebarViewController: side bar view controller, managing the side bar / first view
- Account Connection/Consumer classes
	- AccountConnection: manages a connection for the UI and makes its resources and message available to one or more consumers
	- AccountConnectionPool: creates new and keeps track of AccountConnection instances
	- AccountConnectionRichStatus: helper class to provide a consistent, simple, rich status for the whole account (wip)
	- AccountConsumer: group everything that is linked to an OCCore, allowing simple and clean addition and removal of consumers, providing a layer of separation/abstraction from UI concerns
- Account Controller classes
	- AccountController: links AccountConnection to the UI, provides sidebar content for an account
	- AccountControllerSection: makes AccountController contents available as a CollectionViewSection
	- AccountControllerCell: provides a cell representation for an AccountController, providing an icon to disconnect ("eject") a connection
- DriveListCell: add an icon for the sidebar, representing the (special) kind of drive
- CollectionView:
	- CollectionSidebarViewController: extend ViewControllerNavigationPusher with sidebar view controller parameter
	- CollectionViewCellProvider+StandardImplementations: add cell provider for .sidebar style type
	- CollectionViewSection:
		- implement OCDataItem + OCDataItemVersioning protocol
		- improve support for handling dynamic updates in hierarchic layouts
	- CollectionViewController:
		- add support providing sections from an OCDataSource (just set .sectionsDataSource)
		- properly support per-section ClientContext (use section.clientContext if set)
- OCDataItem+InteractionProtocols: add new, optional method to DataItemSelectionInteraction to provide control over whether an item should be selectable
- OCLocation+Interactions: implement the DataItemSelectionInteraction
- general: move many classes from ownCloud.app to ownCloudApp.framework
- Temporary changes:
	- ClientRootViewController: semi-functional, intermediate version to validate side bar design, to be removed entirely
	- ClientTabBarController: see ClientRootViewController
	- SceneDelegate: move to AppRootViewController as root view controller

* - move from UIImage(systemName:) to OCSymbol.icon(forSymbolName:) in most places
- split AppSidebarViewController into framework (ClientSidebarViewController in ownCloudAppShared) and app (extension ClientSidebarViewController) parts and extend the implementation with settings and account creation toolbar items
- BookmarkInfoViewController: add hook that gets called when the user taps "Done" and dismisses the view controller
- BookmarkViewController: add extension with convenience method to set up and display the BookmarkViewController for editing and creating new bookmarks
- OCBookmarkManager:
	- OCBookmarkManager+Management: extensions in app and framework to set up and display the BookmarkInfoViewController or delete an account, including confirmation by the user
	- OCBookmarkManager+Locking: move app-local locking of bookmarks to the ownCloudAppShared framework and extend on the concept with new attemptLock() method
- AccountConnection:
	- add new .noCore status to differentiate it from .offline
	- make consumer optional for connect() and disconnect()
	- post AccountConnection.StatusChangedNotification notifications when .status changes
	- RichStatus: add property for labeling the interaction
- AccountController:
	- add saved searches to the items data source
	- AccountControllerCell: listen to AccountConnection.StatusChangedNotification to update colored status indicator, fix other status reporting glitches
- SavedSearchCell: add specific cell for .sideBar style
- Navigation Revocations
	- new toolkit to detect when presented content has disappeared and provide a handling path (consult the respective README.md for details)
	- NavigationRevocationEvent: struct for a rich expression of events like disconnects, drive removals and more
	- NavigationRevocationAction: listen to events and perform an action once they find a matching event, lifetime can be to other objects
	- NavigationRevocationManager: global management of NavigationRevocationAction with memory semantics to allow automatic removal after a NavigationRevocationAction has become obsolete
	- NavigationRevocationTrigger: provides triggers for events such as specific items being removed from a datasource, objects being deallocated and more, can send a global event and/or invoke an action directly
	- UIViewController+NavigationRevocation: provide a simple API to register a view controller for revocation to common events
	- ClientContext: add new NavigationRevocationHandler protocol and property to handle navigation revocations
	- CollectionSidebarViewController: add support for NavigationRevocationHandler
	- OCDrive/OCLocation/OCSavedSearch+Interactions: register view controllers for Navigation Recovation, using NavigationRevocationHandler
- ClientItemViewController:
	- show special drive header only for .project (so not for personal or Shares Jail) spaces
	- fix navigation title

* - bump build number to 240
- AppRootViewController:
	- add focusedBookmark tracking
	- add focusedBookmark specific notificationPresenter and cardMessagePresenter
	- port over message presentation
	- port over beta warning
	- port over review prompting
	- port over enforced passcode setup (as of yet untested)
- BookmarkViewController:
	- ensure editing uses the latest copy from OCBookmarkManager
	- present modally rather than .overFullscreen on iPad
- ClientActivityViewController: add initializer for AccountConnection and use AccountConnectionConsumer to hook into events
- ClientSessionManager: remove unused code, ensure delegates are only weakly referenced
- AccountConnection: complete MessageSelector support
- AccountConnectionConsumer: switch form NSObject to AnyObject, add new method to AccountConnectionMessageUpdates to track message counts
- AccountController: introduce SpecialItems type, property and data source
- AccountControllerCell: add support for message counting badge
- ActionCell: add sidebar support, add badgeCount accessory support
- CollectionSidebarAction:
	- new class, subclassing OCAction to provide specific functionality around Sidebars, f.ex. dynamic creation of view controllers upon selection, keeping track of and caching previously generated view controllers
	- also implements extensions to OCAction to wrap properties
- CollectionSidebarViewController: add new method sectionOfCurrentSelection to easily determine the section in which the currently selected item is located
- ClientSidebarViewController: add .focusedBookmark property (KVO capable)
- OCAction+Interactions: add support for supportsDrop

* - update KNOWN_ISSUES
- AppRootViewController: add support for beta warning, bookmark editing, message presentation, release notes and more
- AppDelegate: launch into AppRootViewController instead of ServerListTableViewController
- remove ServerListTableViewController from target
- ReleaseNotesDatasource: clean up code and make class-level methods what were instance methods
- rename "Search view" to "Saved search"
- AccountConnection: add AuthFailure struct and status and make Status a non-String enum
- AccountConnectionPool: add AccountConnectionAuthErrorConsumer to new connections by default
- refactor authentication error handling into
	- AccountAuthentication* classes
	- AccountConnectionAuthErrorConsumer (as helper for AccountConnection)
	- AccountConnectionErrorHandler (as helper for AccountController)
- AccountController:
	- keep references to important items
	- add support for saved searches
	- add support for OC10 root folder
	- clicking spaces shows a spaces grid (AccountControllerSpacesGridViewController)
- AccountControllerCell: adapt to Status enum changes
- ActionCell: add support for different types (coloring), accessories, badge count, button labels and more
- DriveGridCell: cell subclass to support AccountControllerSpacesGridViewController
- DriveListCell: add grid support
- CollectionViewController:
	- add performDataSourceUpdate() mechanism to avoid changes being made to the data sources while other changes are already made
- CollectionSidebarAction:
	- extend OCAction properties
	- implement class to show view controllers on selection
	- add support for children
- CollectionViewAction: actions to be performed on the collection view when specific items become available
- CollectionViewSection: add support for .grid() layout, fix crash bug
- ClientContext: add alertQueue, bookmarkEditingHandler, .presentationViewController property and present(viewController:animated:completion:) method
- ClientSidebarViewController: add support for default view controller
- ClientDefaultViewController: content shown when nothing is selected in the sidebar
- ClientItemViewController: add select all/deselect all support
- (re)start implementation of location picker (WIP)
- UIView+EmbedAndLayout: add new method for centering another view inside an existing view, with minimum/maxiumum/fixed size and minimum insets
- Theme: add support for split view content themeing, temporarily remove almost all themes until support for them arrives
- ThemeNavigationController: move from ThemeApplierTokens to implementing Themeable
- AppUserActivity: start (re)implementing support for NSUserActivity

* - bump build number to 241

* - update KNOWN_ISSUES
- move OCResourceText+ViewProvider and Down framework from app to ownCloudAppShared as it is needed for a rich spaces view in the location picker
- extract embedding behaviour from AppRootViewController into EmbeddingViewController
- implement ClientLocationPicker and ClientLocationPickerViewController
- rewrite Share Extension based on ClientLocationPicker and ComposedMessageView
- upgrade AutoUploadSecttingsSection and auto photo/video uploads to use ClientLocationPicker and OCLocations
- migrate or partially rewrite CopyAction, MoveAction, ImportFilesController to use ClientLocationPicker
- AccountConnectionPool: add method to disconnect all connections in the pool
- AccountController: add options to
	- change cell appearance
	- hide the account pill
	- (not) auto select the personal folder
- Action:
	- add method to provide a UIBarButtonItem
	- add new location .locationPickerBar for appearance in ClientLocationPicker
- WebApp: ensure apps are presented full screen on iPad, not in a popover
- DriveGridCell: always show title + subtitle to align titles, truncate both at 1 line
- ItemListCell: add support for appearance (ClientItemAppearance) for regular and disabled appearances
- CollectionViewController: add .hideNavigationBar property that does what it says on the tin
- ClientContext: expand validation system to allow passing a ClientContext to validation methods and permission handlers (allows to implement behaviour for f.ex. a specific view controller rather than all view controllers descending from it)
- ClientItemViewController: add .location and .viewControllerUUID properties
- Interactions for OCDrive, OCItem, OCLocation: set bookmarkUUID in locations that are used for newly created ClientItemViewControllers
- ComposedMessageView: add support for .buttons
- OCBookmarkManager+Management: make sure to use exact OCBookmark instance when removing a bookmark
- UINavigationItem+Extension: simplify workaround for iOS 16 navigation title truncation bug
- remove ClientDirectoryPickerViewController and ClientSpacesTableViewController
- bump build number to 241

* - BookmarkViewController/IssuesCardViewController/OCLicenseEnvironment: adapt to OCBookmark.certificateStore change
- xcscheme: add connection.associated-certificates-tracking-rule example that opts in all *.local certificates into certificate change tracking
- remove ClientTabBarController
- update known issues

* - update SDK
- update KNOWN_ISSUES.md
- remove EarlGrey and everything that depends on it
- AccountController:
	- SpecialItems -> ExtraItems to clarify features being distinct
	- collect "real" special items in three dictionaries rather than each in its own instance variable

* - remove legacy migration

* - DisplayHostViewController: update to use an OCDataSource subscription to track underlying items, not an OCQuery
- AccountController: add Quick Access, including Favorites and Available Offline
- OpenInWebAppAction: add keyboard shortcut (fixing finding in #1151)
- OCSavedSearch+Interactions: add new .customIconName and .useNameAsTitle properties and helper methods
- SavedSearchCell: add support for .customIconName and .useNameAsTitle
- CollectionViewController: add .insert(sections:at:) method
- ClientContext add .queryDatasource property
- SortedItemDataSource: helper data source to allow sorting of items from other data sources
- OCItemPolicy+Interactions: add context menu and swipe action support to remove policy
- remove unused UIImageView+Thumbnails.swift, mark others for removal

* - bump build number to 243

* - AccountController:
	- add support for showing/hiding account pill
	- add sharing items
	- add support for favorites support capability
- CollectionViewController:
	- separate usage of Wrapped IDs from hierarchic content
	- trigger data source updated when sections are hidden/shown
	- add setNeedsSourceUpdate() for more efficient updates
	- add workaround for UICollectionViewDiffableDataSource requesting cells from the wrong section when moved from there to another section
- CollectionViewSection: fix hideIfEmptyDataSource issue (previously did hide when not empty)
- ClientSharedWithMeViewController: new view controller to present pending, accepted and declined shares
- MoreViewHeader: add support for favorites support capability

* - OCShare+Interactions: add swipe + popup actions
- ClientSharedWithMeViewController: add title to list
- update SDK

* - NEW: UniversalItemListCell
	- provides a single cell implementation for two-line (title + detail) + thumbnail + accessories content
	- fine-grained encapsulation of content into UniversalItemListCell.Content objects for atomic, extensible content updates
	- fed through a content provider protocol (UniversalItemListCellContentProvider) that classes can adopt to asynchronously provide and update content via a completion handler
	- built-in accessory support for more, reveal, progress and messages
	- uses SegmentView for details line to allow rich/mixed content for different types
- UniversalItemListCellContentProvider implementation for OCItem, replacing ItemListCell
- UniversalItemListCellContentProvider implementation for OCShare
- InlineMessageCenter: make method names follow a single pattern
- ResourceItemIcon: add convenience method to return the best matching icon for a mime type
- SegmentView:
	- add new alpha property for items
	- various fixes (preventing unwanted animations and flickering due to tinting images + text, fix a retain loop)
- ThemeView: add missing call to didMoveToSuperview()

* - remove ItemListCell
- update KNOWN_ISSUES.md
- UnshareAction: add support for unsharing accepted "local" shares
- add missing localizations
- AccountConnection: inject shareJailQueryCustomizer into newly retrieved OCCore
- AccountController: no longer unfold Spaces by default
- ClientSharedByMeViewController: view controller to present shares shared to other users and links, including reveal and copy to clipboard
- fix navigation title UILabel becoming too large
- extend UniversalItemListCellContentProvider for OCShare with copy to clipboard, accept/decline and reveal accessories
- upgrade project to Xcode 14.2
- bump version to 245

* fastlane gym: changed workspace to project, because it no longer is using cocoapod

* - refactor and modularize URL scheme open URL handling code
- add handling for "owncloud://pb/" commands to allow control of OCClassSettingsFlatSourcePostBuild

* - include env var launch example for post-build.allowed-settings
- add error checking when clearing individual postbuild setting values

* - remove duplicate "Tap to relaunch." messages

* - Browser Navigation:
	- replaces UINavigationController and UISplitViewController
	- allows back/forward navigation and invoking the side bar
	- automatically switches between full width sidebar, side-by-side sidebar and sidebar-floating-on-top layouts depending on available width and content
- AppRootViewController: switch from UISplitViewController to BrowserNavigationViewController
- ClientContext: add additional property and push support for BrowserNavigationViewController
- EmbeddingViewController: add additional subclassing points for customization
- ClientLocationBarController: view controller displaying an OCLocation and allowing to jump to a parent location with a single tap
- ClientItemViewController: add bottom location bar if .location is set, using ClientLocationBarController
- SegmentView:
	- add support for scrolling
	- add support for limiting vertical usage
	- allow customization of "overflow" gradient color
	- add support for providing gesture recognizers for items
- ActionTapGestureRecognizer: subclass of UITapGestureRecognizer that allows providing a closure as action to perform
- UIView+EmbedAndLayout: embedHorizontally() gains limitHeight option that limits the height of the layout
- CollectionViewController: fill entire height with stack view, use a helper UIView to limit UICollectionView to safe area
- OCItem+Interactions: add revocations for view controllers pushed by reveal and open interactions
- UniversalItemListCell: work around _UITemporaryLayoutWidths auto-layout warning for accessory views
- Licensing
	- add OCLicenseQAProvider to allow enabling Pro Features for QA purposes
	- OCLicenseEMMProvider: fix provider ID
	- add toggle to "Advanced" settings allowing to unlock Pro Features for QA. Available only in beta builds.
- bump build number to 246

* Calens changelog updated

* - rename "Purchases" to "Purchases & Subscriptions" in Settings
- invoke AppStore.showManageSubscriptions() to allow direct subscription management where available, fallback to https://apps.apple.com/account/subscriptions

* - fix "Select All" not working in Multiselect
- adapt Multiselect to BrowserNavigationViewController

* - removal of legacy code

* - fix issue where OC10 accounts showed up empty in the File Provider

* - NavigationContent extension of UINavigationItem
- adapt SearchViewController, ClientItemViewController, ClientLocationPickerViewController and BrowserNavigationViewController to use NavigationContent instead of UINavigationItem directly
- fix background color and spacing for SearchViewController.scopeViewController to align with file list
- update KNOWN_ISSUES.md

* - bump build number to 247

* - address static analyzer findings
- address SwiftLint findings

* - adapt to OCLocation.parent nullability change
- unify/fix navigation titles and context.drive for ClientItemViewController
- add new issue to KNOWN_ISSUES.md
- make OCLocation breadcrumb generation general-purpose, so it can be used not just by ClientLocationBarController but also f.ex. dropdowns
- BrowserNavigationItem: add .canTrimViewController property
- update SDK

* Fixes for Xcode 14 fastlane builds and resigning
Fastfile:
- needs setting manual code signing, because of signing swift package failures
Resign Script:
- seems like not all provisioning profiles contains SHA-1 values but SHA-256 values. Changed that for checking.

* - AppDelegate / SceneDelegate cleanup

* - BrowserNavigationBookmark
	- new class to capture location information that can then be used to restore/create a view controller
	- supports arbitrary OCDataItems
	- used of state restoration, sidebar selection
	- usable for browser navigation history compacting & view controller restore (tbd)
	- can be attached to view controllers via new UIViewController.navigationBookmark property
- BrowserNavigationBookmark+AccountController: provide ID bridge to side bar
- BrowserNavigationViewController: add support for a delegate (used to sync selection in sidebar)
- BrowserNavigationHistory: fix bug in .currentItem implementation
- BrowserNavigationItem: add .navigationBookmark property
- DataItemBrowserNavigationBookmarkReStore protocol
	- allows storing and restoring view controllers individually on a per-OCDataItem basis
	- implementation for OCItem, OCLocation and OCSavedSearch
- OCDrive: support for DataItemSelectionInteraction now uses OCLocation's implementation under the hood
- AppStateActions
	- new, extensible and universal mechanism for building complex UI scenes with dependencies
	- used for state saving, state restoration, scene building and more
	- actions for opening a connection, navigation to the personal folder or a BrowserNavigationBookmark - or revealing an OCItem
	- high-level conceptual overview in accompanying README.md
- ClientContext: new .scene property
- CollectionViewController: implemented recordSelection() and SelectionOperation, leaving it commented out for future (re)consideration
- CollectionViewAction:
	- new .highlight and .unhighlightAll actions
	- add support for "select first matching item" to .select and .highlight
- AccountConnectionPool: new .activeConnections property to return active connections
- AccountConnection: fix busyStatus handling bug
- OCSavedSearch: allow override of uuid (needed for sidebar navigation item selection/state restoration)
- URL+Extensions: refactor to allow opening links via app scheme (f.ex. https://demo.owncloud.org/f/27 via owncloud://demo.owncloud.org/f/27)
- DisplayHostViewController: no longer require OCQuery or OCDataSource - creating an "internal" one if needed
- update CONFIGURATION.json
- update KNOWN_ISSUES.md
- update ios-sdk
- bump build number
- remove ServerListTableViewController, ServerListTableHeaderView, OpenItemUserActivity and more source files that are no longer in use

* - allow more customization when generating breadcrumbs from OCLocation, make segment composition available globally
- complete implementation of "Available Offline" view
	- provide rich view of OCItemPolicys with path and icon
	- allow revealing items marked available offline in their respective location
- provide "no items" views for:
	- Available Offline
	- Favorites
	- all search-based Quick Access views (PDF Documents, Documents, Images, Videos, Audios)
- unify header views using a new ComposedMessageView category
- update KNOWN_ISSUES.md

* - Collection Views
	- add support for supplementary items via CollectionViewSupplementaryItem and CollectionViewSupplementaryCellProvider
	- implement TitleSupplementaryCell for section titles, including pinning support
	- implement ViewSupplementaryCell for arbitrary views, including pinning support
	- allow specifying CollectionViewSupplementaryItem on a per-section level
- ClientItemViewController: adopt CollectionViewSupplementaryItem with ViewSupplementaryCell to show SortBar as pinned section header
- ClientSharedByMeViewController, ClientSharedWithMeViewController, Available Offline and more: adopt headers based on supplementary cells, removing the need to use wrapping data sources in many places (efficiency win!)
- remove legacy search scope code from SortBar
- remove legacy Push Presentation Controller code
- fix miscellaneous warnings through small code changes

* - new class DataSourceCondition:
	- allows triggering actions based on item count of datasources
	- allows logical combinations of several conditions
- CollectionViewController: add .coverView property and support for filled, centered and top layout
- CollectionViewSection: adopt DataSourceCondition to implement .hideIfEmptyDataSource
- AccountControllerSpacesGridViewController: add "No spaces" message if no spaces are shared with user
- ClientSharedByMeViewController and ClientSharedWithMeViewController: add respective "no items" messages
- AppRootViewController: no longer scroll highlighted sidebar items into center
- ComposedMessageView: theme image views with tintColor

* - DisplaySettings: provide query condition(s) implementing display settings filters (new queryConditionForDisplaySettings property)
- AccountSearchScope, DriveSearchScope, ContainerSearchScope: use DisplaySettings.queryConditionForDisplaySettings to limit search results to those that should be visible
- CollectionViewController: fix crash bug when sections with supplementary views are hidden

* - AccountController: ensure Saved Search sidebar item is only visible if the account has saved searches
- CollectionViewController.WrappedItem: add readable description for improved debugging
- CollectionViewSection: fix a crash bug if an item is inserted into a child data source whose parent item is hidden or not (yet) in the collection view's data source

* - add support for authenticated WebFinger and retrieval of server instances via SDK update
- currently does not implement a picker for retrieved instances but always uses the first one returned by the server

* - bump version to 249

* - update SDK to implement enterprise#5579, including sending a Referer header when requesting the IdP configuration
- bump build number to 250

* - ClientItemViewController: ensure navigationItem.title is set by .navigationTitle for proper back button labeling in UINavigationControllers
- ClientLocationPicker: fix destination of view controller pushes - make sure they get pushed to the picker, not the parent context's browser controller

* - ContainerSearchScope: ensure the folder within which the scope starts is not included in the results itself

* - AppProvider: lang parameter fix via SDK update (ensure ISO-639-1 (uses only 2 characters) by cutting off any differentiators (f.ex. "en-GB" becomes "en"))

* - update SDK to possible address finding (38) in feature/new-navigation

* -  ClientLocationPickerViewController: fix vertical cancelButton constraint

* - OCShare+Interactions: make unshare action available via context menu and popup, use OCCore.delete() for unsharing

* - DisplayExtensionContext: subclass to allow passing the ClientContext to actions invoked from the more menu in DisplayViewController
- DisplayHostViewController: use DisplayExtensionContext and create a ClientContext child with a different originatingViewController
- DisplayViewController: clarify naming of method invoked when the more button is pressed in the viewer

* - enlarge "reveal" and "more" accessory buttons

* - bump build number to 252
- tag v12alpha1

* - fixed fastlane build error
- updated needed Xcode version for fastlane builds

* added a class setting key to set the default bookmark name when creating a new bookmark "bookmark.default-name"

* - update SDK to include authenticated WebFinger fix
- BookmarkViewController: consistent spacing with tabs to improve code readability

* set new Xcode version 14.3 as requirement

---------

Co-authored-by: Matthias Hühne <[email protected]>
Co-authored-by: hosy <[email protected]>
Co-authored-by: Matthias Hühne <>
Co-authored-by: ownClouders <[email protected]>
Co-authored-by: felix-schwarz <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
  • Loading branch information
6 people authored May 22, 2023
1 parent cfa9100 commit 0bf74de
Show file tree
Hide file tree
Showing 368 changed files with 17,126 additions and 15,328 deletions.
1 change: 0 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ lang_map = cs_CZ: cs, de_DE: de-DE, en_GB: en-GB, nb_NO: nb-NO, nn_NO: nn-NO, pt
source_file = fastlane/screenshots/en/title.strings
source_lang = en
type = STRINGS

2 changes: 1 addition & 1 deletion .xcode-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13.4.1
14.3
292 changes: 173 additions & 119 deletions CHANGELOG.md

Large diffs are not rendered by default.

87 changes: 67 additions & 20 deletions KNOWN_ISSUES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Known issues in version 12.0 alpha 2
# Known issues

## WARNING

Expand All @@ -9,42 +9,87 @@ It should only be used with dedicated test servers, test data - and test devices
- in the new browsing experience, some features are not yet available:
- a grid view
- breadcrumb title
- item / folder / usage info at the bottom of lists
- spaces do not yet show a member count or provide access to a list of members
- subscription of spaces can't be turned on/off yet
- the root of spaces-based accounts is not yet shown as hierarchic sidebar
- support for sharing is widely untested and/or unavailable in the alpha
- inactivated state of spaces is not yet represented in the UI
- Copy & Paste allows copying a folder into a subfolder of its own / itself, leading to an infinite cycle
- handling of detached drives with user data in them (see OCVault.detachedDrives)
- sync actions that are actually complete are not always cleared from the Status tab until a logout/login
- dropping an item into its source/origin folder (same view controller) triggers a MOVE that fails
- [x] clicking a file in favorite view doesn't open the viewer (due to lack of context.query - the viewer clases need to be updated to use data sources rather than queries)
- support for OC10 sharing is incomplete:
- lack of actions for accepted shares
- federated shares are not yet included in "Shared with me" view
- spaces support for Shortcuts

Missing:
- [x] quick access
- [x] proper iPhone support
- [ ] static login/branded login UI
- [x] state restoration
- [ ] full inline progress reporting when account databases are updated on first login
- [ ] progress reporting in active connections
- [x] migration from the Legacy app clarified: the feature was removed
- [x] iPadOS: opening an account in a new window
- [x] by context menu (openAccountInWindow)
- [x] by drag and drop (see ServerListTableViewController: UITableViewDragDelegate)
- [x] account auto connect (also account.auto-connect in ServerListTableViewController) -> no longer necessary, handled by state restoration
- [x] opening private links (display(itemWithID…:…))
- [x] account issue handling
- [x] functional share extension
- [ ] full themeing/branding support
- [ ] reinstate Key Commands

Jesus:
- [ ] Presentation view after installing is missing
- [x] The icon to hide/show the sidebar is missing in portrait mode. -> resolved by BrowserNavigation replacement of UINavigationController
- [x] Adding an oCIS account with existing custom spaces makes the app freezes and then crashes
- [x] If an space is browsed and new space image is added in the web client, app crashes
- [x] "Open in new window" option does not work. It does nothing after clicking
- [x] I miss the option to "Select All" and "Deselect All" in multiselection
- [x] "Copy" and "Move" operations show empty folder picker. No way to consolidate.
- [ ] "Cut"/"Paste" only working in space scope
- [ ] Upper bar (time, hour, battery level, and so on) is black under dark themes, not visible (fixable?)

Matthias:
- [x] Selecting an OC10 account's root folder twice results in an empty list -> not reproducible in latest builds

Michael:
- [x] Account deletion by swipe doesn't work
- [x] Crash searching for accounts to share with
- [x] Certificate warning when an account refers to a mix of hostnames
- [ ] UI rendering picking an account for photo uploads on iPhone: prompt full length, button super-compressed.

## File Provider
- dragging an entire space on top of another starts a full copy of the space, which eventually fails halfway through

## SDK
- local storage consumed by spaces that are then deleted or inactivated is not reclaimed
- pre-population of accounts using infinite PROPFIND is not supported

# Evolution roadmap
- collection views
- support sidebars / hierarchies, including expanded state, with dynamic updates from data sources

- location picker replaces folder picker
- supports picking
- accounts
- spaces
- folders
- returns an OCLocation
- [ ] collection views
- [x] support sidebars / hierarchies, including expanded state, with dynamic updates from data sources
- [x] ItemListCell: replace manual composition of info line below name with SegmentView
- [x] allows to show different content there, f.ex. Space and Folder in search
- [ ] sticky sort / multiselect bar in file lists

- [x] location picker replaces folder picker
- [x] supports picking
- [x] accounts
- [x] spaces
- [x] folders
- [x] returns an OCLocation
- allow passing "quick locations" to present on top in a group
- track and re-offer last-picked / recent locations (via account's KVS)
- quick access to personal and other spaces
- integrate favorites as group
- [x] use for preferences and share extension

- improved bookmark setup / editing
- browsing UI for ALL certificates stored in a bookmark's store, not just the primary certificate

- account list
- allow grouping accounts (i.e. Home / Work)
- replace simple list with modern CollectionViewController-based UI
- [x] replace simple list with modern CollectionViewController-based UI

- available offline
- allow creating available offline item policies from smart searches - or directly from the search UI

- make sync smarter, f.ex.:
- a file that is updated locally multiple times only should be uploaded once, not once for every update
Expand All @@ -69,4 +114,6 @@ It should only be used with dedicated test servers, test data - and test devices
- other errors
- report to user, drop silently, retry (how often/long?)?

- more expressive "Empty folder" message display, based on new .message item type
- [x] more expressive "Empty folder" message display, based on new .message item type

- show spinner while recreating a scene via "Open in new window"
17 changes: 0 additions & 17 deletions Podfile

This file was deleted.

16 changes: 0 additions & 16 deletions Podfile.lock

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/11.11.0_2022-09-26/1138
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Respect privateLinks capability

Respect files.privateLinks capability and do not offer to create private links when privateLinks are not supported.

https://github.com/owncloud/ios-app/issues/1138
7 changes: 7 additions & 0 deletions changelog/11.11.0_2022-09-26/1141
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Enabling Markup Mode, Showing Video Controls on iOS 16, Updating Theme

Enabling markup mode was broken on iOS 16 because of rearranged navigation bar and toolbar items.
Video player controls were not showing on iOS 16.
Furthermore when a new theme was chosen, this causes that the UITabBar and UIToolbar does not updates colours.

https://github.com/owncloud/ios-app/issues/1141
5 changes: 5 additions & 0 deletions changelog/11.11.0_2022-09-26/1146
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Change: New Dark Mode Themes

Adds a new dark mode theme which is mostly equal to the web UI dark mode theme. Furthermore it adds a black dark mode theme.

https://github.com/owncloud/ios-app/issues/1146
5 changes: 5 additions & 0 deletions changelog/11.11.0_2022-09-26/1156
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Share Extension Passcode Lock Interval

The passcode lock interval was not taken into use in the share extension.

https://github.com/owncloud/ios-app/issues/1156
5 changes: 5 additions & 0 deletions changelog/11.11.0_2022-09-26/5296
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Video Metadata Image

If a video file includes a metadata image, the video file was not visible, because the metadata image was overlaying.

https://github.com/owncloud/enterprise/issues/5296
38 changes: 38 additions & 0 deletions doc/BUILD_CUSTOMIZATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Build Flags

## Description

Build Flags can be used to control the inclusion or exclusion of certain functionality or features at compile time.

## Usage in Branding

A **space-separated** list of flags can be specified in the `Branding.plist` with the key `build.flags`, f.ex.:

```xml
<key>build.flags</key>
<string>DISABLE_BACKGROUND_LOCATION</string>
```

## Flags

The following options can be used as `build.flags`:

### `DISABLE_BACKGROUND_LOCATION`

Removes the following from the app:
- the option for location-triggered background uploads from Settings
- the location description keys from the app's `Info.plist`

Not used by default.

### `DISABLE_APPSTORE_LICENSING`

Removes the following from the app:
- App Store integration for OCLicense
- App Store related view controllers and settings section

### `DISABLE_PLAIN_HTTP`

Removes the following from the app:
- the `NSAppTransportSecurity` dictionary from the app's `Info.plist`
- including the `NSAllowsArbitraryLoads` key that's needed to allow plain/unsecured HTTP connections
Loading

0 comments on commit 0bf74de

Please sign in to comment.