0
点赞
收藏
分享

微信扫一扫

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


-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 条评论