Skip to content

LocalAuthentication macOS xcode13.0 beta1

Manuel de la Pena edited this page Jul 29, 2021 · 2 revisions

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

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2021-03-16 09:55:24.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2021-06-02 11:07:55.000000000 -0400
@@ -20,7 +20,7 @@
     ///
     ///             Touch ID authentication dialog contains a cancel button with default title "Cancel"
     ///             which can be customized using localizedCancelTitle property, and a fallback button with
-    ///             default title "Use Password..." which can be customized using localizedFallbackTitle
+    ///             default title "Use Password…" which can be customized using localizedFallbackTitle
     ///             property. Clicking either button causes evaluatePolicy call to fail, returning a distinct
     ///             error code: LAErrorUserCancel or LAErrorUserFallback.
     ///
@@ -93,7 +93,8 @@
 ///              contains error information if policy evaluation is not possible.
 ///
 /// @return YES if the policy can be evaluated, NO otherwise.
-- (BOOL)canEvaluatePolicy:(LAPolicy)policy error:(NSError * __autoreleasing *)error __attribute__((swift_error(none)))
+- (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));
 
 /// Evaluates the specified policy.
@@ -143,6 +144,7 @@
 - (void)evaluatePolicy:(LAPolicy)policy
        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));
 
 /// Invalidates the context.
@@ -269,15 +271,16 @@
                     operation:(LAAccessControlOperation)operation
               localizedReason:(NSString *)localizedReason
                         reply:(void(^)(BOOL success, NSError * __nullable error))reply
+                        NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
                         API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
 
 /// 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.
+///             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));
 
 /// This property is deprecated and setting it has no effect.
-@property (nonatomic, nullable) NSNumber *maxBiometryFailures NS_DEPRECATED_IOS(8_3, 9_0) __WATCHOS_UNAVAILABLE __TVOS_UNAVAILABLE;
+@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);
 
 /// Cancel button title.
 /// @discussion Allows cancel button title customization. A default title "Cancel" is used when
@@ -345,6 +348,7 @@
     
     /// The device supports Face ID.
     LABiometryTypeFaceID API_AVAILABLE(macos(10.15)),
+
 } API_AVAILABLE(macos(10.13.2), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h	2021-03-16 04:44:15.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h	2021-06-01 21:38:54.000000000 -0400
@@ -8,3 +8,4 @@
 #import <LocalAuthentication/LABase.h>
 #import <LocalAuthentication/LAContext.h>
 #import <LocalAuthentication/LAError.h>
+#import <LocalAuthentication/LAPublicDefines.h>
Clone this wiki locally