Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSUICKeyChainStore fix 'kSecUseNoAuthenticationUI' deprecation warning #3245

Merged
merged 1 commit into from Dec 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions AWSCore/UICKeyChainStore/AWSUICKeyChainStore.m
Expand Up @@ -535,11 +535,7 @@ - (BOOL)setDataNoLock:(NSData *)data forKey:(NSString *)key genericAttribute:(id
#if TARGET_OS_IOS
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunguarded-availability"
if (floor(NSFoundationVersionNumber) > floor(1144.17)) { // iOS 9+
query[(__bridge __strong id)kSecUseAuthenticationUI] = (__bridge id)kSecUseAuthenticationUIFail;
} else if (floor(NSFoundationVersionNumber) > floor(1047.25)) { // iOS 8+
query[(__bridge __strong id)kSecUseNoAuthenticationUI] = (__bridge id)kCFBooleanTrue;
}
query[(__bridge __strong id)kSecUseAuthenticationUI] = (__bridge id)kSecUseAuthenticationUIFail;
#pragma clang diagnostic pop
#elif TARGET_OS_WATCH || TARGET_OS_TV
query[(__bridge __strong id)kSecUseAuthenticationUI] = (__bridge id)kSecUseAuthenticationUIFail;
Expand Down