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