I want to obfuscate my api url.Can i use Proguard for this?If yes how do i do that?And how to add classes in Proguard configuration file to obfuscate the methods and variables present in the classes?
Asked
Active
Viewed 7,594 times
12
-
if you obfuscate you api url, your app won't be able to access the api – nandsito Mar 25 '17 at 08:12
-
3I find this article very useful https://rammic.github.io/2015/07/28/hiding-secrets-in-android-apps/ – aldok Mar 25 '17 at 08:31
-
If url is not possible than how do i obfuscate string.xml? – Jack Mar 26 '17 at 04:32
1 Answers
20
You can now use a new gradle plugin + library to effectively obfuscate Strings in a class, Please check it here
https://github.com/MichaelRocks/paranoid
Also now there is a new plugin which can obfuscate resources also, please check it below
https://github.com/shwenzhang/AndResGuard
And help share and upvote this great information, so more developers can use it and thus more and more developers will contribute for further development of these plugins, and thus we can collectively improve these plugins and will give a nightmare for crackers.

Vaishakh
- 1,126
- 10
- 10