From 5e3aefb26b8aed64a5cc0feef7988da539da9fe4 Mon Sep 17 00:00:00 2001 From: a Date: Thu, 25 Jan 2024 00:01:09 -0500 Subject: [PATCH] Changes to make minifyEnabled work... --- app/build.gradle | 5 +++-- appcore/build.gradle | 2 +- intentintegrator/build.gradle | 2 +- orbotservice/build.gradle | 2 +- orbotservice/proguard-rules.pro | 1 + 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2ee3a2f88..ec545dc8c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,8 +32,8 @@ android { } buildTypes { release { - shrinkResources false - minifyEnabled false + shrinkResources true + minifyEnabled true } } @@ -87,6 +87,7 @@ android { implementation "com.squareup.retrofit2:retrofit:2.9.0" implementation 'com.squareup.retrofit2:converter-gson:2.9.0' + implementation "org.slf4j:slf4j-simple:1.6.1" androidTestImplementation libs.fastlane_screengrab // coreLibraryDesugaring 'com.android.tools:desugar_j dk_libs:1.1.5' diff --git a/appcore/build.gradle b/appcore/build.gradle index 89254b581..bcad1861a 100644 --- a/appcore/build.gradle +++ b/appcore/build.gradle @@ -17,7 +17,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } diff --git a/intentintegrator/build.gradle b/intentintegrator/build.gradle index 1ad5741c8..9c66a5571 100644 --- a/intentintegrator/build.gradle +++ b/intentintegrator/build.gradle @@ -10,7 +10,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } diff --git a/orbotservice/build.gradle b/orbotservice/build.gradle index d7b2878bc..b71b7e338 100644 --- a/orbotservice/build.gradle +++ b/orbotservice/build.gradle @@ -12,7 +12,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/orbotservice/proguard-rules.pro b/orbotservice/proguard-rules.pro index e69de29bb..1278906b5 100644 --- a/orbotservice/proguard-rules.pro +++ b/orbotservice/proguard-rules.pro @@ -0,0 +1 @@ +-keep class org.torproject.jni.*