I want to obfuscate the native android code with the ProGuard
and I created a set of rules for that as it follows:
-flattenpackagehierarchy
-overloadaggressively
-repackageclasses ''
-allowaccessmodification
-keep class com.google.android.gms.ads.** { *; }
-keep class io.invertase.firebase.** { *; }
-dontwarn io.invertase.firebase.**
-keep class com.facebook.hermes.unicode.** { *; }
-keep class com.facebook.jni.** { *; }
-keep public class com.horcrux.svg.** { *; }
The set of rules somehow does the job but the main package folders names com.*
are not obfuscated (but the content is obfuscated):
What is wrong with the set of rules or is there something missing?
Thank you for your time!
EDIT
I have updated my rules to just this configuration to test if the obfuscation works on the folder names. As initial configuration, it obfuscates everything except the packages inside com.**
or com.myApp.**
. Is there something missing?
-dontpreverify
-flattenpackagehierarchy
-allowaccessmodification
-keep class !com.** { *; }