1

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?

parek
  • 772
  • 1
  • 13
  • 41

2 Answers2

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.**