Skip to content

LocalAuthentication iOS xcode15.0 b2

Manuel de la Pena edited this page Sep 12, 2023 · 2 revisions

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

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2023-06-01 00:19:38
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h	2023-06-10 04:39:42
@@ -375,14 +375,14 @@
 typedef NS_ENUM(NSInteger, LABiometryType)
 {
     /// The device does not support biometry.
-    LABiometryTypeNone API_AVAILABLE(macos(10.13.2), ios(11.2)),
+    LABiometryTypeNone API_AVAILABLE(macos(10.13.2), ios(11.2)) = kLABiometryTypeNone,
     LABiometryNone API_DEPRECATED_WITH_REPLACEMENT("LABiometryTypeNone", macos(10.13, 10.13.2), ios(11.0, 11.2)) = LABiometryTypeNone,
     
     /// The device supports Touch ID.
-    LABiometryTypeTouchID,
-    
+    LABiometryTypeTouchID = kLABiometryTypeTouchID,
+
     /// The device supports Face ID.
-    LABiometryTypeFaceID API_AVAILABLE(macos(10.15)),
+    LABiometryTypeFaceID API_AVAILABLE(macos(10.15)) = kLABiometryTypeFaceID,
 
 } API_AVAILABLE(macos(10.13.2), ios(11.0)) API_UNAVAILABLE(watchos, tvos);
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h	2023-06-01 00:19:38
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h	2023-06-10 04:39:42
@@ -15,6 +15,12 @@
 #define kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch 4
 #define kLAPolicyDeviceOwnerAuthenticationWithWristDetection    5
 
+// Biometry types
+#define kLABiometryTypeNone           0
+#define kLABiometryTypeTouchID        1 << 0
+#define kLABiometryTypeFaceID         1 << 1
+#define kLABiometryTypeOpticID        1 << 2
+
 // Credential types
 #define kLACredentialTypeApplicationPassword                0
 #define kLACredentialSmartCardPIN                          -3
Clone this wiki locally