Skip to content

Commit

Permalink
remove function delete keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocle2497 committed Oct 4, 2021
1 parent 65f1486 commit 39048d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-boiler-template",
"version": "1.65.1",
"version": "1.65.2",
"description": "Clean and minimalist React Native template for a quick start with TypeScript and components",
"scripts": {
"test": "exit 0"
Expand Down
15 changes: 1 addition & 14 deletions template/ios/HelloWorld/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[MMKV initializeMMKV:nil];
if (![[NSUserDefaults standardUserDefaults] objectForKey:@"FirstRun"]) {
// Delete all keychain of this application
NSArray *secItemClasses = @[(__bridge id)kSecClassGenericPassword,
(__bridge id)kSecClassInternetPassword,
(__bridge id)kSecClassCertificate,
(__bridge id)kSecClassKey,
(__bridge id)kSecClassIdentity];
for (id secItemClass in secItemClasses) {
NSDictionary *spec = @{(__bridge id)kSecClass: secItemClass};
SecItemDelete((__bridge CFDictionaryRef)spec);
}
[[NSUserDefaults standardUserDefaults] setValue:@"1strun" forKey:@"FirstRun"];
[[NSUserDefaults standardUserDefaults] synchronize];
}

#ifdef FB_SONARKIT_ENABLED
InitializeFlipper(application);
#endif
Expand Down

0 comments on commit 39048d4

Please sign in to comment.