Improve proguard rules

This commit is contained in:
topjohnwu 2019-06-01 01:13:29 -07:00
parent 4a73d634e0
commit 7d87777bf8
2 changed files with 4 additions and 4 deletions

View File

@ -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'
}

View File

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