diff --git a/src/ios/._NativeStorage.m b/src/ios/._NativeStorage.m deleted file mode 100644 index a322a67..0000000 Binary files a/src/ios/._NativeStorage.m and /dev/null differ diff --git a/src/ios/NativeStorage.m b/src/ios/NativeStorage.m index fe9f09e..094331d 100644 --- a/src/ios/NativeStorage.m +++ b/src/ios/NativeStorage.m @@ -28,13 +28,11 @@ - (void) remove: (CDVInvokedUrlCommand*) command - (void) clear: (CDVInvokedUrlCommand*) command { [self.commandDelegate runInBackground:^{ - CDVPluginResult* pluginResult = nil; - + CDVPluginResult* pluginResult = nil; [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:[[NSBundle mainBundle] bundleIdentifier]]; BOOL success = [[NSUserDefaults standardUserDefaults] synchronize]; if(success) pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK]; else pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString:@"Clear has failed"]; - [self.commandDelegate sendPluginResult:pluginResult callbackId: command.callbackId]; }]; }