mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	添加buildTime
This commit is contained in:
		| @@ -152,6 +152,7 @@ RCT_EXPORT_MODULE(RCTHotUpdate); | ||||
|     NSMutableDictionary *ret = [NSMutableDictionary new]; | ||||
|     ret[@"downloadRootDir"] = [RCTHotUpdate downloadDir]; | ||||
|     ret[@"packageVersion"] = [RCTHotUpdate packageVersion]; | ||||
|     ret[@"buildTime"] = [RCTHotUpdate buildTime]; | ||||
|     ret[@"isRolledBack"] = [defaults objectForKey:keyRolledBackMarked]; | ||||
|     ret[@"isFirstTime"] = [defaults objectForKey:keyFirstLoadMarked]; | ||||
|     NSDictionary *updateInfo = [defaults dictionaryForKey:keyUpdateInfo]; | ||||
| @@ -464,4 +465,15 @@ RCT_EXPORT_METHOD(markSuccess) | ||||
|     return version; | ||||
| } | ||||
|  | ||||
| + (NSString *)buildTime | ||||
| { | ||||
| #if DEBUG | ||||
|     return @"0"; | ||||
| #else | ||||
|     // To be replaced by scripts/generateiOSBuildTime.sh | ||||
|     NSString *pushy_build_time = 1570370091 | ||||
|     return pushy_build_time; | ||||
| #endif | ||||
| } | ||||
|  | ||||
| @end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm