Reputation: 1875
I discovered ProGuard
and I managed to get my code obfuscated. It works. Amazing tool.
But what ProGuard didn't obfuscate is the AndroidManifest.xml
. I have a Google Maps API Key in my Manifest.
I "secured" this API KEY in Google Developer Console using my package name and SHA-1 fingerprint.
Is it recommended to obfuscate the api key in Manifest anyway? If so, how can I achieve this with ProGuard
?
Upvotes: 0
Views: 1801
Reputation: 288
On your Dexguard file, use the commands bellow
-encryptassetfiles res/values/**
(if you are using gradle job to get your environment parameters)
-encryptstrings class my.package.Environment.class
regards.
Upvotes: 1