1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

alloc change

This commit is contained in:
LvBingru 2016-05-04 10:31:02 +08:00
parent f5dd13dcb0
commit c910ca09d3

View File

@ -132,7 +132,7 @@ RCT_EXPORT_MODULE(RCTHotUpdate);
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSMutableDictionary *ret = [@{} mutableCopy];
NSMutableDictionary *ret = [NSMutableDictionary new];
ret[@"downloadRootDir"] = [RCTHotUpdate downloadDir];
ret[@"packageVersion"] = [RCTHotUpdate packageVersion];
ret[@"isRolledBack"] = [defaults objectForKey:keyRolledBackMarked];