fix: 优化如果开启混淆后 ViewBinding 类被混淆导致反射初始化失败 目前混淆是关闭的

This commit is contained in:
Quyunshuo
2020-11-12 14:26:07 +08:00
parent fb47e3232a
commit 013497be1a

View File

@ -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{
*;
}