mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	chore: cleanup
This commit is contained in:
		| @@ -53,6 +53,7 @@ typedef NS_ENUM(NSInteger, PushyType) { | ||||
| }; | ||||
|  | ||||
| static BOOL ignoreRollback = false; | ||||
| static BOOL isUsingBundleUrl = false; | ||||
|  | ||||
| @implementation RCTPushy { | ||||
|     RCTPushyManager *_fileManager; | ||||
| @@ -65,6 +66,7 @@ RCT_EXPORT_MODULE(RCTPushy); | ||||
|  | ||||
| + (NSURL *)bundleURL | ||||
| { | ||||
|     isUsingBundleUrl = true; | ||||
|     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | ||||
|      | ||||
|     NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo]; | ||||
| @@ -161,6 +163,7 @@ RCT_EXPORT_MODULE(RCTPushy); | ||||
|     ret[@"uuid"] = [defaults objectForKey:keyUuid]; | ||||
|     NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo]; | ||||
|     ret[@"currentVersion"] = [pushyInfo objectForKey:paramCurrentVersion]; | ||||
|     ret[@"isUsingBundleUrl"] = @(isUsingBundleUrl); | ||||
|      | ||||
|     // clear isFirstTimemarked | ||||
|     if (ret[@"isFirstTime"]) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm