fix: 优化如果开启混淆后 ViewBinding 类被混淆导致反射初始化失败 目前混淆是关闭的
This commit is contained in:
8
app/proguard-rules.pro
vendored
8
app/proguard-rules.pro
vendored
@ -18,4 +18,10 @@
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
# 避免 ViewBinding 类被混淆导致反射初始化失败
|
||||
-keep public interface androidx.viewbinding.ViewBinding
|
||||
-keepclassmembers class * implements androidx.viewbinding.ViewBinding{
|
||||
*;
|
||||
}
|
||||
Reference in New Issue
Block a user