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

2018-11-08  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读