Skip to content

Colota - Android GPS Location tracker

build: disable dependency info block and enable resource shrinking

Max Dietricha39c13eb8c1d
diff --git a/apps/mobile/android/app/build.gradle b/apps/mobile/android/app/build.gradle
index ca2d01b3..35c82ac5 100644
--- a/apps/mobile/android/app/build.gradle
+++ b/apps/mobile/android/app/build.gradle
@@ -82,6 +82,13 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion
+ dependenciesInfo {
+ // Disables dependency metadata when building APKs (for IzzyOnDroid/F-Droid)
+ includeInApk = false
+ // Disables dependency metadata when building Android App Bundles (for Google Play)
+ includeInBundle = false
+ }
+
namespace "com.Colota"
defaultConfig {
applicationId "com.Colota"
@@ -137,6 +144,7 @@ android {
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
+ shrinkResources enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}