问题描述
我尝试使用proguard保护代码免遭反向工程,这是我的代码。但是,我的所有资源文件都不会被混淆。
# debugging stack traces.
-keepattributes SourceFile,LineNumberTable
-dontwarn com.alldaydr.clinician.ui.auth.model.*
#rules for custom view
-keep public class * extends android.view.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*(...);
}
#Keep Native codes
-keepclasseswithmembernames class * { native <methods>; }
#keep model class
-keepclassmembers class com.alldaydr.clinician.ui.auth.model.* { *; }
# OkHttp3
-keep class okhttp3.* { *; }
-dontwarn okhttp3.**
-dontwarn okio.**
#Retrofit 2
-keep class retrofit2.* { *; }
-dontwarn retrofit2.*
what all things I should include in the above code for protecting the code from reverse engineering.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)