我需要在项目中实现proguard
。我的默认proguard设置是这样的。我想隐藏我的viewModel类
我的默认proguard
设置是这样
-keep class com.models.**{*;}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * extends android.webkit.WebChromeClient { *; }
-dontwarn im.delight.android.webview.**
-keep public class * extends View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-optimizationpasses 5
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-printmapping mapping.txt
-allowaccessmodification
-repackageclasses
-ignorewarnings
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep class kotlin.reflect.jvm.internal.** { *; }
-keep class
kotlin.Metadata { *; }