File tree 2 files changed +7
-0
lines changed
android/app/src/main/java/com/appzung/codepush/react
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ public CodePush(Context context) {
85
85
}
86
86
87
87
String serverUrlFromStrings = getCustomPropertyFromStringsIfExist ("ServerUrl" );
88
+ if (serverUrlFromStrings == null ) {
89
+ serverUrlFromStrings = getCustomPropertyFromStringsIfExist ("ServerURL" );
90
+ }
88
91
if (serverUrlFromStrings != null ) {
89
92
CodePushUtils .log ("Executing CodePush with a custom server URL." );
90
93
mServerUrl = serverUrlFromStrings ;
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ - (instancetype)init
35
35
NSString *buildVersion = [infoDictionary objectForKey: (NSString *)kCFBundleVersionKey ];
36
36
NSString *releaseChannelPublicId = [infoDictionary objectForKey: @" CodePushReleaseChannelPublicId" ];
37
37
NSString *serverURL = [infoDictionary objectForKey: @" CodePushServerURL" ];
38
+ if (!serverURL) {
39
+ serverURL = [infoDictionary objectForKey: @" CodePushServerUrl" ];
40
+ }
41
+
38
42
NSString *publicKey = [infoDictionary objectForKey: @" CodePushSigningPublicKey" ];
39
43
40
44
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults ];
You can’t perform that action at this time.
0 commit comments