From 3bee0deb116ee24afd8db47878af95eb37aa7880 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Wed, 25 Oct 2023 16:57:48 +0200 Subject: [PATCH] Reproducible build fix --- app/build.gradle | 9 ++++++++- app/proguard-rules.pro | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 26975822..09a5c5f2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,7 +33,8 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } @@ -97,6 +98,12 @@ android { packagingOptions { doNotStrip '**/*.so' } + + // Kotlin jvm target + kotlinOptions { + jvmTarget = '11' + } + namespace 'eu.toldi.infinityforlemmy' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 2e5b6f95..3356b37c 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -5,6 +5,8 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile +-dontobfuscate +-keepattributes SourceFile,LineNumberTable ## Preferences reflection -keep class * extends androidx.preference.PreferenceFragmentCompat