如何为第三方库禁用特定的Proguard / R8规则

问题描述

我正在 build.gradle 中使用minifyEnabled true(用于混淆和减小尺寸)。

我有这些 proguard-rules.pro

-keep class com.some3rdpartylibrary.** { *; } // otherwise it crashes

# repack obfuscated classes into single package so it would be hard to find their original package
-repackageclasses ''
-allowaccessmodification // this one is causing run-time crash in the 3rd party library

如何仅将dontallowaccessmodification告诉proguard / R8 com.some3rdpartylibrary.**

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)