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 { buildTypes {
release { release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro', 'proguard-moshi.pro', 'proguard-kotlin.pro' 'proguard-rules.pro', 'proguard-moshi.pro', 'proguard-kotlin.pro'
} }

View File

@ -16,10 +16,8 @@
# public *; # public *;
#} #}
# Internal app data and IO helper constructors # Retrofit classes
-keep class com.topjohnwu.magisk.model.entity.** { *; } -keep,allowobfuscation class com.topjohnwu.magisk.data.network.**
-keep class com.topjohnwu.magisk.data.database.base.** { public <init>(...); }
-keep class com.topjohnwu.magisk.data.network.** { public <init>(...); }
# Snet # Snet
-keepclassmembers class com.topjohnwu.magisk.utils.ISafetyNetHelper { *; } -keepclassmembers class com.topjohnwu.magisk.utils.ISafetyNetHelper { *; }