File tree Expand file tree Collapse file tree
android/app/src/main/java/com/appzung/codepush/react Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ private CodePush(Context context) {
100100 }
101101
102102 String serverUrlFromStrings = getCustomPropertyFromStringsIfExist ("ServerUrl" );
103+ if (serverUrlFromStrings == null ) {
104+ serverUrlFromStrings = getCustomPropertyFromStringsIfExist ("ServerURL" );
105+ }
103106 if (serverUrlFromStrings != null ) {
104107 CodePushUtils .log ("Executing CodePush with a custom server URL." );
105108 mServerUrl = serverUrlFromStrings ;
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ - (instancetype)init
3535 NSString *buildVersion = [infoDictionary objectForKey: (NSString *)kCFBundleVersionKey ];
3636 NSString *releaseChannelPublicId = [infoDictionary objectForKey: @" CodePushReleaseChannelPublicId" ];
3737 NSString *serverURL = [infoDictionary objectForKey: @" CodePushServerURL" ];
38+ if (!serverURL) {
39+ serverURL = [infoDictionary objectForKey: @" CodePushServerUrl" ];
40+ }
41+
3842 NSString *publicKey = [infoDictionary objectForKey: @" CodePushSigningPublicKey" ];
3943
4044 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults ];
You can’t perform that action at this time.
0 commit comments