gpt4 book ai didi

android - Proguard 不会混淆 Assets (怎么做?)

转载 作者:行者123 更新时间:2023-11-29 19:06:21 26 4
gpt4 key购买 nike

在我的发布版本中,我使用:

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com