diff --git a/ios/Classes/TiIdentityModule.m b/ios/Classes/TiIdentityModule.m index 5e9236c..153b362 100644 --- a/ios/Classes/TiIdentityModule.m +++ b/ios/Classes/TiIdentityModule.m @@ -233,18 +233,18 @@ - (NSDictionary *)deviceCanAuthenticate:(id)unused #pragma mark Constants -MAKE_SYSTEM_PROP_DEPRECATED_REPLACED(ERROR_TOUCH_ID_LOCKOUT, LAErrorBiometryLockout, @"Modules.Identity.ERROR_TOUCH_ID_LOCKOUT", @"10.0.0", @"Modules.Identity.ERROR_BIOMETRY_LOCKOUT"); +MAKE_SYSTEM_PROP(ERROR_TOUCH_ID_LOCKOUT, LAErrorTouchIDLockout); MAKE_SYSTEM_PROP(ERROR_INVALID_CONTEXT, LAErrorInvalidContext); MAKE_SYSTEM_PROP(ERROR_APP_CANCELLED, LAErrorAppCancel); -MAKE_SYSTEM_PROP_DEPRECATED_REPLACED(ERROR_TOUCH_ID_NOT_ENROLLED, LAErrorBiometryLockout, @"Modules.Identity.ERROR_BIOMETRY_NOT_ENROLLED", @"10.0.0", @"Modules.Identity.ERROR_BIOMETRY_NOT_ENROLLED"); -MAKE_SYSTEM_PROP_DEPRECATED_REPLACED(ERROR_TOUCH_ID_NOT_AVAILABLE, LAErrorBiometryNotAvailable, @"Modules.Identity.ERROR_TOUCH_ID_NOT_AVAILABLE", @"10.0.0", @"Modules.Identity.ERROR_BIOMETRY_NOT_AVAILABLE"); - +MAKE_SYSTEM_PROP(ERROR_TOUCH_ID_NOT_ENROLLED, LAErrorTouchIDNotEnrolled); +MAKE_SYSTEM_PROP(ERROR_TOUCH_ID_NOT_AVAILABLE, LAErrorTouchIDNotAvailable); MAKE_SYSTEM_PROP(ERROR_PASSCODE_NOT_SET, LAErrorPasscodeNotSet); MAKE_SYSTEM_PROP(ERROR_SYSTEM_CANCEL, LAErrorSystemCancel); MAKE_SYSTEM_PROP(ERROR_USER_FALLBACK, LAErrorUserFallback); MAKE_SYSTEM_PROP(ERROR_USER_CANCEL, LAErrorUserCancel); MAKE_SYSTEM_PROP(ERROR_AUTHENTICATION_FAILED, LAErrorAuthenticationFailed); +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 MAKE_SYSTEM_PROP(ERROR_BIOMETRY_NOT_AVAILABLE, LAErrorBiometryNotAvailable); MAKE_SYSTEM_PROP(ERROR_BIOMETRY_NOT_ENROLLED, LAErrorBiometryNotEnrolled); MAKE_SYSTEM_PROP(ERROR_BIOMETRY_LOCKOUT, LAErrorBiometryLockout); @@ -252,6 +252,7 @@ - (NSDictionary *)deviceCanAuthenticate:(id)unused MAKE_SYSTEM_PROP(BIOMETRY_TYPE_NONE, LABiometryNone); MAKE_SYSTEM_PROP(BIOMETRY_TYPE_TOUCH_ID, LABiometryTypeTouchID); MAKE_SYSTEM_PROP(BIOMETRY_TYPE_FACE_ID, LABiometryTypeFaceID); +#endif MAKE_SYSTEM_STR(ACCESSIBLE_WHEN_UNLOCKED, kSecAttrAccessibleWhenUnlocked); MAKE_SYSTEM_STR(ACCESSIBLE_AFTER_FIRST_UNLOCK, kSecAttrAccessibleAfterFirstUnlock); diff --git a/ios/manifest b/ios/manifest index f497877..7a745be 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,9 +2,9 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 4.0.0 +version: 4.0.1 apiversion: 2 -architectures: arm64 x86_64 +architectures: armv7 arm64 i386 x86_64 description: titanium-identity author: Hans Knoechel license: Apache 2 diff --git a/ios/titanium-identity.xcodeproj/project.pbxproj b/ios/titanium-identity.xcodeproj/project.pbxproj index f5d9367..dd140d0 100644 --- a/ios/titanium-identity.xcodeproj/project.pbxproj +++ b/ios/titanium-identity.xcodeproj/project.pbxproj @@ -281,7 +281,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; OTHER_CFLAGS = ( "-DDEBUG", @@ -323,7 +323,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LIBRARY_SEARCH_PATHS = ""; OTHER_CFLAGS = "-DTI_POST_1_2"; OTHER_LDFLAGS = "-ObjC"; @@ -384,7 +384,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ( "-DDEBUG", @@ -447,7 +447,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; OTHER_CFLAGS = "-DTI_POST_1_2"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = ti.identity; diff --git a/package-lock.json b/package-lock.json index fcb894a..6905cc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@titanium-sdk/ti.identity", - "version": "6.0.0", + "version": "6.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@titanium-sdk/ti.identity", - "version": "6.0.0", + "version": "6.0.1", "hasInstallScript": true, "devDependencies": { "@commitlint/cli": "^12.0.0", diff --git a/package.json b/package.json index 903fe5d..2832b6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@titanium-sdk/ti.identity", - "version": "6.0.0", + "version": "6.0.1", "description": "A collection of API's to authenticate with your device: Keychain/Keystore, Touch ID and Face ID (iOS only)", "scripts": { "commit": "git-cz",