How to keep private Inner Class in ProGuard. I am already using($ for inner class) below code in my proguard.cfg but its not working.
-keep public class com.xxx.droid.activity.LoginActivity$JsInterface
How to keep private Inner Class in ProGuard. I am already using($ for inner class) below code in my proguard.cfg but its not working.
-keep public class com.xxx.droid.activity.LoginActivity$JsInterface
This should work:
-keep public class com.xxx.droid.activity.LoginActivity$* {
*;
}
If the inner class is private, you shouldn't use the public
keyword in the template, because it won't match. The compiler will actually compile the class as a package visible class (private classes don't exist at a bytecode level). Therefore:
-keep class com.xxx.droid.activity.LoginActivity$JsInterface
© 2022 - 2025 — McMap. All rights reserved.