From bada77f2248f625ea3c6a7def3680662c878aa46 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Mon, 10 Dec 2018 17:19:28 -0600 Subject: [PATCH] Enable proguard minify to reduce size of the release APK. After enabling the minify some warnings did not allow to build the release APK so I disabled the proguard warnings for now but a proper solution has to be found that actually handles the warnings in a proper way. --- app/build.gradle | 5 +++-- app/proguard-rules.pro | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 48248b1..2cc55f6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,7 +15,8 @@ android { } buildTypes { release { - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { @@ -31,7 +32,7 @@ android { dependencies { def lifecycle_version = "2.0.0" - def room_version = "2.1.0-alpha02" + def room_version = "2.1.0-alpha03" implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':graphenejlib:graphenej') diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f1b4245..2d6053e 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -19,3 +19,6 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +## TODO actually fix this +-ignorewarnings \ No newline at end of file