Skip to content

Commit

Permalink
Updates for Xcode 12.5 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed Apr 25, 2021
1 parent 43efdf6 commit 8707480
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ def sel32or64(a, b):

misc = {}
constants = """$LAErrorDomain$LATouchIDAuthenticationMaximumAllowableReuseDuration@d$"""
enums = """$LAAccessControlOperationCreateItem@0$LAAccessControlOperationCreateKey@2$LAAccessControlOperationUseItem@1$LAAccessControlOperationUseKeyDecrypt@4$LAAccessControlOperationUseKeyKeyExchange@5$LAAccessControlOperationUseKeySign@3$LABiometryNone@0$LABiometryTypeFaceID@2$LABiometryTypeNone@0$LABiometryTypeTouchID@1$LACredentialTypeApplicationPassword@0$LACredentialTypeSmartCardPIN@-3$LAErrorAppCancel@-9$LAErrorAuthenticationFailed@-1$LAErrorBiometryLockout@-8$LAErrorBiometryNotAvailable@-6$LAErrorBiometryNotEnrolled@-7$LAErrorInvalidContext@-10$LAErrorNotInteractive@-1004$LAErrorPasscodeNotSet@-5$LAErrorSystemCancel@-4$LAErrorTouchIDLockout@-8$LAErrorTouchIDNotAvailable@-6$LAErrorTouchIDNotEnrolled@-7$LAErrorUserCancel@-2$LAErrorUserFallback@-3$LAErrorWatchNotAvailable@-11$LAPolicyDeviceOwnerAuthentication@2$LAPolicyDeviceOwnerAuthenticationWithBiometrics@1$LAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$LAPolicyDeviceOwnerAuthenticationWithWatch@3$kLACredentialCTKPIN@-3$kLACredentialSmartCardPIN@-3$kLACredentialTypeApplicationPassword@0$kLACredentialTypePasscode@-1$kLACredentialTypePassphrase@-2$kLAErrorAppCancel@-9$kLAErrorAuthenticationFailed@-1$kLAErrorInvalidContext@-10$kLAErrorNotInteractive@-1004$kLAErrorPasscodeNotSet@-5$kLAErrorSystemCancel@-4$kLAErrorTouchIDLockout@-8$kLAErrorTouchIDNotAvailable@-6$kLAErrorTouchIDNotEnrolled@-7$kLAErrorUserCancel@-2$kLAErrorUserFallback@-3$kLAErrorWatchNotAvailable@-11$kLAOptionAuthenticationReason@2$kLAOptionUserFallback@1$kLAPolicyDeviceOwnerAuthentication@2$kLAPolicyDeviceOwnerAuthenticationWithBiometrics@1$kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$kLAPolicyDeviceOwnerAuthenticationWithWatch@3$"""
enums = """$kLAErrorBiometryNotPaired@-12$kLAErrorBiometryDisconnected@-13$LAAccessControlOperationCreateItem@0$LAAccessControlOperationCreateKey@2$LAAccessControlOperationUseItem@1$LAAccessControlOperationUseKeyDecrypt@4$LAAccessControlOperationUseKeyKeyExchange@5$LAAccessControlOperationUseKeySign@3$LABiometryNone@0$LABiometryTypeFaceID@2$LABiometryTypeNone@0$LABiometryTypeTouchID@1$LACredentialTypeApplicationPassword@0$LACredentialTypeSmartCardPIN@-3$LAErrorAppCancel@-9$LAErrorAuthenticationFailed@-1$LAErrorBiometryLockout@-8$LAErrorBiometryNotAvailable@-6$LAErrorBiometryNotEnrolled@-7$LAErrorInvalidContext@-10$LAErrorNotInteractive@-1004$LAErrorPasscodeNotSet@-5$LAErrorSystemCancel@-4$LAErrorTouchIDLockout@-8$LAErrorTouchIDNotAvailable@-6$LAErrorTouchIDNotEnrolled@-7$LAErrorUserCancel@-2$LAErrorUserFallback@-3$LAErrorWatchNotAvailable@-11$LAPolicyDeviceOwnerAuthentication@2$LAPolicyDeviceOwnerAuthenticationWithBiometrics@1$LAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$LAPolicyDeviceOwnerAuthenticationWithWatch@3$kLACredentialCTKPIN@-3$kLACredentialSmartCardPIN@-3$kLACredentialTypeApplicationPassword@0$kLACredentialTypePasscode@-1$kLACredentialTypePassphrase@-2$kLAErrorAppCancel@-9$kLAErrorAuthenticationFailed@-1$kLAErrorInvalidContext@-10$kLAErrorNotInteractive@-1004$kLAErrorPasscodeNotSet@-5$kLAErrorSystemCancel@-4$kLAErrorTouchIDLockout@-8$kLAErrorTouchIDNotAvailable@-6$kLAErrorTouchIDNotEnrolled@-7$kLAErrorUserCancel@-2$kLAErrorUserFallback@-3$kLAErrorWatchNotAvailable@-11$kLAOptionAuthenticationReason@2$kLAOptionUserFallback@1$kLAPolicyDeviceOwnerAuthentication@2$kLAPolicyDeviceOwnerAuthenticationWithBiometrics@1$kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch@4$kLAPolicyDeviceOwnerAuthenticationWithWatch@3$"""
misc.update({"kLAErrorDomain": "com.apple.LocalAuthentication"})
aliases = {
"LAErrorBiometryNotPaired": "kLAErrorBiometryNotPaired",
"LAErrorBiometryDisconnected": "kLAErrorBiometryDisconnected",
"LACredentialTypeSmartCardPIN": "kLACredentialSmartCardPIN",
"LAErrorBiometryLockout": "kLAErrorBiometryLockout",
"LAErrorBiometryNotEnrolled": "kLAErrorBiometryNotEnrolled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ def testConstants(self):
LocalAuthentication.LAErrorWatchNotAvailable,
LocalAuthentication.kLAErrorWatchNotAvailable,
)
self.assertEqual(
LocalAuthentication.LAErrorBiometryNotPaired,
LocalAuthentication.kLAErrorBiometryNotPaired,
)
self.assertEqual(
LocalAuthentication.LAErrorBiometryDisconnected,
LocalAuthentication.kLAErrorBiometryDisconnected,
)

@min_os_level("10.11")
def testConstants10_11(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def testConstants(self):
self.assertEqual(LocalAuthentication.kLAErrorAppCancel, -9)
self.assertEqual(LocalAuthentication.kLAErrorInvalidContext, -10)
self.assertEqual(LocalAuthentication.kLAErrorWatchNotAvailable, -11)
self.assertEqual(LocalAuthentication.kLAErrorBiometryNotPaired, -12)
self.assertEqual(LocalAuthentication.kLAErrorBiometryDisconnected, -13)
self.assertEqual(
LocalAuthentication.kLAErrorDomain, "com.apple.LocalAuthentication"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"LATouchIDAuthenticationMaximumAllowableReuseDuration": { "typestr": "d" }
},
"enum": {
"LAErrorBiometryNotPaired": { "value": -12 },
"LAErrorBiometryDisconnected": { "value": -13 },
"kLAErrorBiometryNotPaired": { "value": -12 },
"kLAErrorBiometryDisconnected": { "value": -13 },
"kLACredentialSmartCardPIN": { "value": -3 },
"LABiometryTypeNone": { "value": 0 },
"LABiometryNone": { "value": 0 },
Expand Down

0 comments on commit 8707480

Please sign in to comment.