Skip to content

LocalAuthentication macOS xcode14.0 beta2

Israel Soto edited this page Sep 6, 2022 · 3 revisions

#LocalAuthentication.framework https://github.com/xamarin/xamarin-macios/pull/15873

diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2022-05-31 15:04:21.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2022-06-17 11:26:50.000000000 -0400
@@ -29,7 +29,7 @@
     ///             either at login window or in the preference sheets or even in application by the means of
     ///             LAPolicyDeviceOwnerAuthentication. The system unlock is preferred user experience because
     ///             we generaly don't want users to enter their account password at application's request.
-    LAPolicyDeviceOwnerAuthenticationWithBiometrics API_AVAILABLE(ios(8.0), macos(10.12.2), watchos(3.0), tvos(10.0)) = kLAPolicyDeviceOwnerAuthenticationWithBiometrics,
+    LAPolicyDeviceOwnerAuthenticationWithBiometrics API_AVAILABLE(ios(8.0), macos(10.12.2)) API_UNAVAILABLE(watchos, tvos) = kLAPolicyDeviceOwnerAuthenticationWithBiometrics,
 
     /// Device owner will be authenticated by biometry or user password.
     ///
@@ -39,7 +39,7 @@
     ///             Touch ID authentication dialog behaves similarly as the one used by
     ///             LAPolicyDeviceOwnerAuthenticationWithBiometrics. However, the "Use Password.." button does
     ///             not end the authentication. Instead, it switches the authentication mechanism to user password.
-    LAPolicyDeviceOwnerAuthentication API_AVAILABLE(ios(9.0), macos(10.11), watchos(3.0), tvos(10.0)) = kLAPolicyDeviceOwnerAuthentication,
+    LAPolicyDeviceOwnerAuthentication API_AVAILABLE(ios(9.0), macos(10.11), watchos(3.0)) API_UNAVAILABLE(tvos) = kLAPolicyDeviceOwnerAuthentication,
     
     /// Device owner will be authenticated by Watch.
     ///
@@ -64,7 +64,7 @@
     /// Device owner will be authenticated by device passcode. The authentication will also succeed if the wrist detection is enabled,
     /// correct passcode was entered in the past and the watch has been on the wrist ever since.
     LAPolicyDeviceOwnerAuthenticationWithWristDetection API_AVAILABLE(watchos(9.0)) API_UNAVAILABLE(macos, ios, tvos) = kLAPolicyDeviceOwnerAuthenticationWithWristDetection,
-} API_AVAILABLE(ios(8.0), macos(10.10), watchos(3.0), tvos(10.0));
+} API_AVAILABLE(ios(8.0), macos(10.10), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// The maximum value for LAContext touchIDAuthenticationAllowableReuseDuration property.
 extern const NSTimeInterval LATouchIDAuthenticationMaximumAllowableReuseDuration API_AVAILABLE(macos(10.12), ios(9.0)) API_UNAVAILABLE(watchos, tvos);
@@ -74,7 +74,7 @@
 /// @discussion This context can be used for evaluating policies.
 ///
 /// @see LAPolicy
-API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0))
+API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos)
 @interface LAContext : NSObject
 
 /// Determines if a particular policy can be evaluated.
@@ -99,7 +99,7 @@
 /// @return YES if the policy can be evaluated, NO otherwise.
 - (BOOL)canEvaluatePolicy:(LAPolicy)policy error:(NSError * __autoreleasing *)error
     NS_SWIFT_NOTHROW
-    API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
+    API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Evaluates the specified policy.
 ///
@@ -149,7 +149,7 @@
        localizedReason:(NSString *)localizedReason
                  reply:(void(^)(BOOL success, NSError * __nullable error))reply
     NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
-    API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
+    API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Invalidates the context.
 ///
@@ -161,7 +161,7 @@
 ///             used for policy evaluation and an attempt to do so will fail with LAErrorInvalidContext.
 ///
 ///             Invalidating a context that has been already invalidated has no effect.
-- (void)invalidate API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0), tvos(10.0));
+- (void)invalidate API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 typedef NS_ENUM(NSInteger, LACredentialType)
 {
@@ -182,8 +182,8 @@
     ///             LocalAuthentication will not show the smart card PIN user interface.
     ///             When entered from the LocalAuthentication user interface, the PIN is stored as
     ///             UTF-8 encoded string.
-    LACredentialTypeSmartCardPIN API_AVAILABLE(macos(10.15.4), ios(13.4), watchos(6.2), tvos(13.4)) = kLACredentialSmartCardPIN,
-} API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0), tvos(10.0));
+    LACredentialTypeSmartCardPIN API_AVAILABLE(macos(10.15.4), ios(13.4), watchos(6.2)) API_UNAVAILABLE(tvos) = kLACredentialSmartCardPIN,
+} API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Sets a credential to this context.
 ///
@@ -198,7 +198,7 @@
 /// @return YES if the credential was set successfully, NO otherwise.
 ///
 - (BOOL)setCredential:(nullable NSData *)credential
-                 type:(LACredentialType)type API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0), tvos(10.0));
+                 type:(LACredentialType)type API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Reveals if credential was set with this context.
 ///
@@ -206,7 +206,7 @@
 ///
 /// @return YES on success, NO otherwise.
 ///
-- (BOOL)isCredentialSet:(LACredentialType)type API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0), tvos(10.0));
+- (BOOL)isCredentialSet:(LACredentialType)type API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 typedef NS_ENUM(NSInteger, LAAccessControlOperation)
 {
@@ -223,11 +223,11 @@
     LAAccessControlOperationUseKeySign,
     
     /// Access control will be used for data decryption using existing key.
-    LAAccessControlOperationUseKeyDecrypt API_AVAILABLE(macos(10.12), ios(10.0)),
+    LAAccessControlOperationUseKeyDecrypt API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos),
 
     /// Access control will be used for key exchange.
-    LAAccessControlOperationUseKeyKeyExchange API_AVAILABLE(macos(10.12), ios(10.0)),
-} API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0), tvos(10.0));
+    LAAccessControlOperationUseKeyKeyExchange API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0)) API_UNAVAILABLE(tvos),
+} API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// Evaluates access control object for the specified operation.
 ///
@@ -281,7 +281,7 @@
 /// Fallback button title.
 /// @discussion Allows fallback button title customization. If set to empty string, the button will be hidden.
 ///             A default title "Use Password…" is used when this property is left nil.
-@property (nonatomic, nullable, copy) NSString *localizedFallbackTitle API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
+@property (nonatomic, nullable, copy) NSString *localizedFallbackTitle API_AVAILABLE(macos(10.10), ios(8.0)) API_UNAVAILABLE(watchos, tvos);
 
 /// This property is deprecated and setting it has no effect.
 @property (nonatomic, nullable) NSNumber *maxBiometryFailures API_DEPRECATED("No longer supported", ios(8.3, 9.0), macos(10.10.3, 10.11)) API_UNAVAILABLE(watchos, tvos);
@@ -289,7 +289,7 @@
 /// Cancel button title.
 /// @discussion Allows cancel button title customization. A default title "Cancel" is used when
 ///             this property is left nil or is set to empty string.
-@property (nonatomic, nullable, copy) NSString *localizedCancelTitle API_AVAILABLE(macos(10.12), ios(10.0), watchos(3.0), tvos(10.0));
+@property (nonatomic, nullable, copy) NSString *localizedCancelTitle API_AVAILABLE(macos(10.12), ios(10.0)) API_UNAVAILABLE(watchos, tvos);
 
 /// Contains policy domain state.
 ///
@@ -338,7 +338,7 @@
 ///
 ///             If this property is used with a LocalAuthentication evaluation, it will eventually fail with
 ///             LAErrorNotInteractive instead of displaying the authentication UI.
-@property (nonatomic) BOOL interactionNotAllowed API_AVAILABLE(macos(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
+@property (nonatomic) BOOL interactionNotAllowed API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0)) API_UNAVAILABLE(tvos);
 
 
 typedef NS_ENUM(NSInteger, LABiometryType)
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h	2022-05-31 15:04:21.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h	2022-06-17 14:29:08.000000000 -0400
@@ -10,7 +10,7 @@
 
 /// LocalAuthentication error domain.
 extern NSString *const __nonnull LAErrorDomain
-API_AVAILABLE(macos(10.11), ios(8.3), watchos(3.0), tvos(10.0));
+API_AVAILABLE(macos(10.11), ios(8.3), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 typedef NS_ENUM(NSInteger, LAError)
 {
@@ -49,19 +49,19 @@
     LAErrorInvalidContext API_AVAILABLE(macos(10.11), ios(9.0)) = kLAErrorInvalidContext,
 
     /// Authentication could not start because biometry is not available on the device.
-    LAErrorBiometryNotAvailable API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) = kLAErrorBiometryNotAvailable,
+    LAErrorBiometryNotAvailable API_AVAILABLE(macos(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos) = kLAErrorBiometryNotAvailable,
 
     /// Authentication could not start because biometry has no enrolled identities.
-    LAErrorBiometryNotEnrolled API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) = kLAErrorBiometryNotEnrolled,
+    LAErrorBiometryNotEnrolled API_AVAILABLE(macos(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos) = kLAErrorBiometryNotEnrolled,
     
     /// Authentication was not successful because there were too many failed biometry attempts and
     /// biometry is now locked. Passcode is required to unlock biometry, e.g. evaluating
     /// LAPolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.
-    LAErrorBiometryLockout API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)) = kLAErrorBiometryLockout,
+    LAErrorBiometryLockout API_AVAILABLE(macos(10.13), ios(11.0)) API_UNAVAILABLE(watchos, tvos) = kLAErrorBiometryLockout,
     
     /// Authentication failed because it would require showing UI which has been forbidden
     /// by using interactionNotAllowed property.
-    LAErrorNotInteractive API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0)) = kLAErrorNotInteractive,
+    LAErrorNotInteractive API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos) = kLAErrorNotInteractive,
     
     /// Authentication could not start because there was no paired watch device nearby.
     LAErrorWatchNotAvailable API_AVAILABLE(macos(10.15)) API_UNAVAILABLE(ios, watchos, tvos) = kLAErrorWatchNotAvailable,
@@ -76,5 +76,5 @@
     LAErrorInvalidDimensions
     API_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, watchos, tvos) = kLAErrorInvalidDimensions,
 
-} API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0), tvos(10.0));
+} API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h	2022-05-31 14:52:59.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h	2022-06-17 11:26:50.000000000 -0400
@@ -84,7 +84,7 @@
 /// @brief This notification is sent when a right has been deauthorized.
 /// @discussion The related @c LARight instance is the @c object associated with the @c NSNotification instance delivered to observers
 API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos, tvos)
-NS_SWIFT_NAME(LARight.didBecomeUnathorizedNotification)
+NS_SWIFT_NAME(LARight.didBecomeUnauthorizedNotification)
 extern NSNotificationName const LARightDidBecomeUnauthorizedNotification;
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally