Possible to uncomment some code with Proguard/Android -


in code, have urls refer local server, manually change, when export project apk, :

 base_url = "http://loc.server.com";  //base_url = "http://prod.server.com"; 

i'm wondering if can automatically uncomment second line proguard (or way), sure never send apk, refer local server.

thanks help

you can achieve same effect debug flag

if (buildconfig.debug) {     base_url = "http://loc.server.com"; } else {     base_url = "http://prod.server.com"; } 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -