From 056dafc59f3f32090499137d40fbb24c9595f91d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 2 Apr 2019 16:32:40 -0400 Subject: [PATCH] Use R8 full mode R8 FTW! --- app/build.gradle | 2 +- app/proguard-rules.pro | 4 +++- gradle.properties | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6679e4efa..610c5ff79 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -41,7 +41,7 @@ dependencies { implementation 'androidx.work:work-runtime:2.0.0' implementation 'androidx.transition:transition:1.1.0-alpha02' - def libsuVersion = '2.3.2' + def libsuVersion = '2.3.3' implementation "com.github.topjohnwu.libsu:core:${libsuVersion}" implementation "com.github.topjohnwu.libsu:io:${libsuVersion}" diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 8dbce8e67..d6b2bb835 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -29,6 +29,9 @@ void onResponse(int); } +# DelegateWorker +-keep,allowobfuscation class * extends com.topjohnwu.magisk.components.DelegateWorker + # BootSigner -keepclassmembers class com.topjohnwu.signing.BootSigner { *; } @@ -46,4 +49,3 @@ # Excessive obfuscation -repackageclasses 'a' -allowaccessmodification --optimizationpasses 6 diff --git a/gradle.properties b/gradle.properties index cc455b747..4da444b32 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,3 +24,4 @@ org.gradle.daemon=true #AndroidX android.useAndroidX=true android.enableJetifier=true +android.enableR8.fullMode=true