1

I want to know what does mean by

-ignorewarnings
-keep class * {
public private *;
}

-keep class * {
public private protected *;
}

And what if there are some model classes there in my code have some primitive types and getter setters. I don't want to obfuscate there names specially "keys" what rule I should use for them?

Zoe
  • 27,060
  • 21
  • 118
  • 148
Ali Akram
  • 4,803
  • 3
  • 29
  • 38

1 Answers1

0

ProGuard also optimizes the bytecode, removes unused code instructions, and obfuscates the remaining classes, fields, and methods with short names.

-keep public class packageName.ParticularClassName.** { *; }

@Keep annotation to the code you want to keep. Adding @Keep on a class keeps the entire class as-is. Adding it on a method or field will keep the method/field (and it's name) as well as the class name intact.

Read Customize which code to keep.

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198