1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-08 20:15:14 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

添加buildTime

This commit is contained in:
sunnylqm
2019-10-06 21:56:58 +08:00
parent 6eb731b6fb
commit c638cd45ac
9 changed files with 45 additions and 6 deletions

View File

@@ -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