Reproducible build fix

This commit is contained in:
Balazs Toldi 2023-10-25 16:57:48 +02:00
parent 6d6a79bcb6
commit 3bee0deb11
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58
2 changed files with 10 additions and 1 deletions

View File

@ -33,7 +33,8 @@ android {
buildTypes { buildTypes {
release { release {
minifyEnabled false minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }
@ -97,6 +98,12 @@ android {
packagingOptions { packagingOptions {
doNotStrip '**/*.so' doNotStrip '**/*.so'
} }
// Kotlin jvm target
kotlinOptions {
jvmTarget = '11'
}
namespace 'eu.toldi.infinityforlemmy' namespace 'eu.toldi.infinityforlemmy'

View File

@ -5,6 +5,8 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-dontobfuscate
-keepattributes SourceFile,LineNumberTable
## Preferences reflection ## Preferences reflection
-keep class * extends androidx.preference.PreferenceFragmentCompat -keep class * extends androidx.preference.PreferenceFragmentCompat