bug fixed
This commit is contained in:
parent
834dee1e8b
commit
818395383a
@ -106,12 +106,13 @@ RCT_EXPORT_MODULE(RCTHotUpdate);
|
|||||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||||
NSMutableDictionary *packageInfo = [[defaults dictionaryForKey:rnHotUpdatePackageInfoKey] mutableCopy];
|
NSMutableDictionary *packageInfo = [[defaults dictionaryForKey:rnHotUpdatePackageInfoKey] mutableCopy];
|
||||||
|
|
||||||
NSDictionary *ret = @{ @"downloadRootDir": [RCTHotUpdate downloadDir],
|
NSMutableDictionary *ret = [@{} mutableCopy];
|
||||||
@"packageVersion": [infoDictionary objectForKey:@"CFBundleShortVersionString"],
|
ret[@"downloadRootDir"] = [RCTHotUpdate downloadDir];
|
||||||
@"currentVersion": [packageInfo objectForKey:paramCurrentVersion],
|
ret[@"packageVersion"] = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
||||||
@"isFirstTime": [packageInfo objectForKey:paramIsFirstTime],
|
ret[@"currentVersion"] = [packageInfo objectForKey:paramCurrentVersion];
|
||||||
@"isRolledBack": [packageInfo objectForKey:paramIsRolledBack]
|
ret[@"isFirstTime"] = [packageInfo objectForKey:paramIsFirstTime];
|
||||||
};
|
ret[@"isRolledBack"] = [packageInfo objectForKey:paramIsRolledBack];
|
||||||
|
|
||||||
if (packageInfo) {
|
if (packageInfo) {
|
||||||
// clear isFirstTime and isRolledBack
|
// clear isFirstTime and isRolledBack
|
||||||
packageInfo[paramIsFirstTime] = @(NO);
|
packageInfo[paramIsFirstTime] = @(NO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user