File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed 
android/app/src/main/java/com/appzung/codepush/react Expand file tree Collapse file tree 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) {
8585        }
8686
8787        String  serverUrlFromStrings  = getCustomPropertyFromStringsIfExist ("ServerUrl" );
88+         if  (serverUrlFromStrings  == null ) {
89+             serverUrlFromStrings  = getCustomPropertyFromStringsIfExist ("ServerURL" );
90+         }
8891        if  (serverUrlFromStrings  != null ) {
8992            CodePushUtils .log ("Executing CodePush with a custom server URL." );
9093            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