From 772d7f5ef0736c1870d852111a25a2979fdde72e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 24 May 2022 00:07:45 -0400 Subject: [PATCH] Enable minify. Fixes #171 (#173) --- app/build.gradle | 3 ++- app/proguard-rules.pro | 3 ++- build.gradle | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 85a07360e..0eb360d46 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,8 @@ android { buildTypes { if(project.hasProperty("RELEASE_STORE_FILE")) { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb4348..6df447182 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,5 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile +-keep class com.jerboa.datatypes.** { *; } diff --git a/build.gradle b/build.gradle index c047ceb5b..b104a9f11 100644 --- a/build.gradle +++ b/build.gradle @@ -14,8 +14,8 @@ buildscript { }// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '7.3.0-alpha09' apply false - id 'com.android.library' version '7.3.0-alpha09' apply false + id 'com.android.application' version '7.4.0-alpha02' apply false + id 'com.android.library' version '7.4.0-alpha02' apply false id 'org.jetbrains.kotlin.android' version '1.6.10' apply false id "org.jlleitschuh.gradle.ktlint" version "10.2.1" id "com.github.ben-manes.versions" version "0.42.0"