-->

can Build Types resources be visible while reverse

2019-08-27 18:24发布

问题:

I have two build variant in my Application, one is release and other is debug.

In a release, I have set my https URL. In Debug, I have set my local URL for testing purpose.

is it possible if I upload my release variant to PlayStore that somebody can reverse engineered it and see my Local testing URL? I dont want to expose my testing URL?

回答1:

If you just use flag to switch running environment and sorce code contain the local testing URL, it'll able to find in the disassembled smali files even if you obfuscated it

You can try to split building const from resource using gradle, ref here: Change constant values when building a release edition