Improve proguard rules
This commit is contained in:
parent
4a73d634e0
commit
7d87777bf8
@ -23,6 +23,8 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
|
||||
'proguard-rules.pro', 'proguard-moshi.pro', 'proguard-kotlin.pro'
|
||||
}
|
||||
|
6
app/proguard-rules.pro
vendored
6
app/proguard-rules.pro
vendored
@ -16,10 +16,8 @@
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Internal app data and IO helper constructors
|
||||
-keep class com.topjohnwu.magisk.model.entity.** { *; }
|
||||
-keep class com.topjohnwu.magisk.data.database.base.** { public <init>(...); }
|
||||
-keep class com.topjohnwu.magisk.data.network.** { public <init>(...); }
|
||||
# Retrofit classes
|
||||
-keep,allowobfuscation class com.topjohnwu.magisk.data.network.**
|
||||
|
||||
# Snet
|
||||
-keepclassmembers class com.topjohnwu.magisk.utils.ISafetyNetHelper { *; }
|
||||
|
Loading…
Reference in New Issue
Block a user