在我的发布版本中,我使用:
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
但我的 Assets 中有一些我想从混淆中排除的 *.json
文件,因为在运行时我的 *.json
文件中的所有值都是空的
我使用了一些 rullez 但有错误:
-keep org.json.**
-keep json.**
最佳答案
我也遇到过同样的问题,但是从混淆器中排除模型类后,它会起作用。
-keep class com.packege.db.entity.** {*;}
感谢@NabinBhandari
关于android - Proguard 不会混淆 Assets (怎么做?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47092334/