remove package reserved word, bump version, persist device identifier

This commit is contained in:
Geoffrey Goh
2016-01-20 22:41:56 -08:00
parent 88b7fb3af8
commit aec64cc0a2
3 changed files with 11 additions and 6 deletions

View File

@@ -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/";