From 8f1474ffa84976f60235263146a4a4b607896fd7 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Sat, 11 Dec 2021 21:20:56 +0100 Subject: [PATCH] proguard bug fix --- app/build.gradle | 2 +- app/proguard-rules.pro | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2fb7f0fb..aefd4a75 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,7 +25,7 @@ android { multiDexEnabled false minifyEnabled true shrinkResources true - proguardFiles 'proguard-rules.pro' + proguardFile 'proguard-rules.pro' } debug { minifyEnabled false diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index aa0f6685..90baf82f 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,8 +1,11 @@ --repackageclasses org.nuclearfog.twidda +# use dictionaries to create random class/package names +-obfuscationdictionary dict/obfuscation-dictionary.txt +-classobfuscationdictionary dict/class-dictionary.txt +-packageobfuscationdictionary dict/package-dictionary.txt # keep these libraries but allow obfuscating -dontwarn twitter4j.** --keep,allowobfuscation class twitter4j.** {*;} +-keep,allowobfuscation,allowoptimization class twitter4j.** {*;} -adaptclassstrings twitter4j.** -dontwarn javax.management.DynamicMBean @@ -17,9 +20,4 @@ -keep,allowobfuscation class org.conscrypt.OpenSSLProvider {*;} -adaptclassstrings org.conscrypt.OpenSSLProvider --dontwarn javax.annotation.Nullable - -# use dictionaries to create random class/package names --obfuscationdictionary dict/obfuscation-dictionary.txt --classobfuscationdictionary dict/class-dictionary.txt --packageobfuscationdictionary dict/package-dictionary.txt \ No newline at end of file +-dontwarn javax.annotation.Nullable \ No newline at end of file