mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
remove package reserved word, bump version, persist device identifier
This commit is contained in:
@@ -34,7 +34,12 @@ static NSString * const ServerURLConfigKey = @"serverUrl";
|
||||
NSString *serverURL = [infoDictionary objectForKey:@"CodePushServerURL"];
|
||||
|
||||
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
|
||||
NSString* clientUniqueId = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
|
||||
NSString* clientUniqueId = [userDefaults stringForKey:ClientUniqueIDConfigKey];
|
||||
if (clientUniqueId == nil) {
|
||||
clientUniqueId = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
|
||||
[userDefaults setObject:clientUniqueId forKey:ClientUniqueIDConfigKey];
|
||||
[userDefaults synchronize];
|
||||
}
|
||||
|
||||
if (!serverURL) {
|
||||
serverURL = @"https://codepush.azurewebsites.net/";
|
||||
|
||||
Reference in New Issue
Block a user