I need help with turning off all features and disable everything that Proguard do for all classes but one. One class should be obfuscated (contains security things). Any ideas?
Asked
Active
Viewed 1,128 times
2 Answers
0
-dontshrink
-dontoptimize
-dontobfuscate
-keep,allowshrinking,allowoptimization,allowobfuscation class org.mypackage.MyClass

Ezekiel Baniaga
- 853
- 1
- 12
- 26
-
Doesn't work for me. It's not obfuscating my class. I'm using compileSdkVersion 29, buildToolsVersion "29.0.2", Android Studio 3.5.2. R8 is now the engine for obfuscating and shrinking. – OneWorld Dec 10 '19 at 15:23
-3
Use this Line into the proguard
Enter all package name for disable things of proguard
-dontwarn your_package_name.**

Mohd Saleem
- 96
- 4
-
Are you sure about this? I think that just makes Proguard ignore all of the warnings that the packages may provide. – parek Dec 14 '12 at 21:34
-
-