内部类混淆保持无效的办法

阅读 240

2022-11-24


-keepclassmembers class cn.qssq666.safekeyboard.NKeyBoardTextField$SoftInputMode{*;}
-keep class cn.qssq666.safekeyboard.NKeyBoardTextField$SoftInputMode{*;}

-keep public interface cn.qssq666.safekeyboard.NKeyBoardTextField$SoftInputMode{*;}
-keep class * implements cn.qssq666.safekeyboard.NKeyBoardTextField$SoftInputMode {*;}

这上面的方法都实验了,都无法保持我的类里面的接口不被混淆,不过原因可能是我并没有用到,但是作为sdk打包,那肯定要用的。
不过我之前一直这样写,没搞懂是咋回事导致了。
方法一1:强制用,
方法2:​​​-keepattributes SourceFile,LineNumberTable,InnerClasses​

精彩评论(0)

0 0 举报