mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 07:47:38 +00:00
Improve proguard rules
This commit is contained in:
parent
4a73d634e0
commit
7d87777bf8
@ -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'
|
||||||
}
|
}
|
||||||
|
6
app/proguard-rules.pro
vendored
6
app/proguard-rules.pro
vendored
@ -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 { *; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user