fix: 修复开启混淆后反射方式初始化导致异常的问题,将反射自动初始化方式变更为子类手动初始化的方式

This commit is contained in:
Quyunshuo
2023-08-20 20:36:04 +08:00
parent 337f7fa15e
commit e0835808e3
9 changed files with 19 additions and 252 deletions

View File

@ -1,9 +1,3 @@
# 避免 ViewBinding 类被混淆导致反射初始化失败
-keep public interface androidx.viewbinding.ViewBinding
-keepclassmembers class * implements androidx.viewbinding.ViewBinding{
*;
}
# AGP 8.x 警告生成
# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.