CoderAlee / PaintedSkin

一款解决Android App 换肤框架,极低的侵入性与学习成本。
Apache License 2.0
166 stars 23 forks source link

debug模式下正常使用换肤功能,切换到relase模式下,报错了空指针了。 #19

Closed SoloLee closed 2 years ago

SoloLee commented 2 years ago

怀疑是混淆引起的,请问这个库,有什么混淆规则需要添加吗?

SoloLee commented 2 years ago
使用的库如下

// 换肤核心库 api 'com.github.CoderAlee.PaintedSkin:painted-skin:3.3.3' api 'com.github.CoderAlee.PaintedSkin:standard-plugin:3.3.3' api 'com.github.CoderAlee:Reflex:1.2.0'// 依赖的反射库 image

CoderAlee commented 2 years ago

由于框架内对于部分系统API是通过反射进行访问的,所以部分代码不能被混淆。请先 keep 所有org.alee 开头的class,测试下是否为混淆所导致的崩溃,后续会增加混淆文档

SoloLee commented 2 years ago

嗯,感谢回复,已经搞定。-keep class org.alee.* {;} 即正常。