fix: 修复开启混淆后反射方式初始化导致异常的问题,将反射自动初始化方式变更为子类手动初始化的方式
This commit is contained in:
6
app/proguard-rules.pro
vendored
6
app/proguard-rules.pro
vendored
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user