-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <fs-git@iospirit.com>
- Loading branch information
1 parent
3aa2fec
commit 069c5ce
Showing
14 changed files
with
338 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
ownCloudAppFramework/UIKit Extensions/UIViewController+HostBundleID.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// UIViewController+HostBundleID.h | ||
// ownCloud | ||
// | ||
// Created by Felix Schwarz on 12.07.22. | ||
// Copyright © 2022 ownCloud GmbH. All rights reserved. | ||
// | ||
|
||
/* | ||
* Copyright (C) 2022, ownCloud GmbH. | ||
* | ||
* This code is covered by the GNU Public License Version 3. | ||
* | ||
* For distribution utilizing Apple mechanisms please see https://owncloud.org/contribute/iOS-license-exception/ | ||
* You should have received a copy of this license along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.en.html>. | ||
* | ||
*/ | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface UIViewController (HostBundleID) | ||
|
||
@property(nullable,readonly) NSString *oc_hostAppBundleIdentifier; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.