Skip to content

Commit

Permalink
Merge pull request #14 from cakutscher/hotfix-keychain
Browse files Browse the repository at this point in the history
Se elimina keychain en backup
  • Loading branch information
gabrielKunder authored Nov 13, 2018
2 parents 1a0b73d + 9147741 commit 369dfa4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ios/SecureStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,15 @@ - (void)set:(CDVInvokedUrlCommand*)command
if( [[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0 ){
self.keychainAccesssibilityMapping = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge id)(kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly), @"afterfirstunlockthisdeviceonly",
(__bridge id)(kSecAttrAccessibleAfterFirstUnlock), @"afterfirstunlock",
(__bridge id)(kSecAttrAccessibleWhenUnlocked), @"whenunlocked",
(__bridge id)(kSecAttrAccessibleWhenUnlockedThisDeviceOnly), @"whenunlockedthisdeviceonly",
(__bridge id)(kSecAttrAccessibleAlways), @"always",
(__bridge id)(kSecAttrAccessibleAlwaysThisDeviceOnly), @"alwaysthisdeviceonly",
(__bridge id)(kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly), @"whenpasscodesetthisdeviceonly",
nil];
}
else{
self.keychainAccesssibilityMapping = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge id)(kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly), @"afterfirstunlockthisdeviceonly",
(__bridge id)(kSecAttrAccessibleAfterFirstUnlock), @"afterfirstunlock",
(__bridge id)(kSecAttrAccessibleWhenUnlocked), @"whenunlocked",
(__bridge id)(kSecAttrAccessibleWhenUnlockedThisDeviceOnly), @"whenunlockedthisdeviceonly",
(__bridge id)(kSecAttrAccessibleAlways), @"always",
(__bridge id)(kSecAttrAccessibleAlwaysThisDeviceOnly), @"alwaysthisdeviceonly",
nil];
}
Expand Down Expand Up @@ -123,4 +117,4 @@ -(void)failWithMessage:(NSString *)message : (NSError *)error : (NSString *)call
[self.commandDelegate sendPluginResult:commandResult callbackId:callbackId];
}

@end
@end

0 comments on commit 369dfa4

Please sign in to comment.