Reputation: 14711
I want to exclude this class from being obfuscated by ProGuard
- com.example.myapp.ThisParticularClass.java
How can I do that?
I looked into other answers but they are about packages, or class members or using gson annotations
PS: And what if ThisParticularClass
extends from another class, should I keep the parent class from obfuscation as well?
Upvotes: 4
Views: 5369
Reputation: 20268
Use such statement:
-keep class com.example.myapp.ThisParticularClass
or:
-keep public class * extends com.example.myapp.ThisParticularClass
Upvotes: 6