Skip to content

Commit

Permalink
增加混淆配置
Browse files Browse the repository at this point in the history
  • Loading branch information
runnchild committed Aug 29, 2021
1 parent 7a8779f commit 8eb2074
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion feature/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
** mBean;
** mBinder;
** mUi;
** mViewModel;
}

# 这样以来我们在layout中写的onClick就不会被影响
Expand All @@ -63,7 +64,9 @@
-keep class androidx.databinding.** { *; }
-keepclasseswithmembers class * extends androidx.databinding.ViewDataBinding {
<methods>;
public static <methods>;
}
#-keepclasseswithmembers class com.*.databinding.* { com.*.databinding.* inflate(android.view.LayoutInflater,android.view.ViewGroup); }

# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
# EnclosingMethod is required to use InnerClasses.
Expand Down Expand Up @@ -107,4 +110,5 @@
public <init>();
}
-keep class * extends android.app.Activity
-keep class androidx.viewpager2.widget.ViewPager2 {*;}
-keep class androidx.viewpager2.widget.ViewPager2 {*;}
-keep class * extends com.rongc.feature.viewmodel.BaseViewModel

0 comments on commit 8eb2074

Please sign in to comment.