From c696b6c28de21f3e5c423062e992f2ae012bd79f Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Wed, 18 Sep 2019 22:14:00 +0200 Subject: [PATCH] Add debug build --- app/build.gradle | 11 ++++++++++- app/src/debug/res/values/strings.xml | 3 +++ .../main/res/layout/activity_account_type_list.xml | 2 ++ build.gradle | 4 ---- readropslibrary/build.gradle | 3 --- 5 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 app/src/debug/res/values/strings.xml diff --git a/app/build.gradle b/app/build.gradle index b3648673..7a975310 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,7 +1,6 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-kapt' android { compileSdkVersion 28 @@ -15,7 +14,17 @@ android { } buildTypes { release { + minifyEnabled true + shrinkResources true + + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + + debug { minifyEnabled false + shrinkResources false + + applicationIdSuffix ".debug" proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/app/src/debug/res/values/strings.xml b/app/src/debug/res/values/strings.xml new file mode 100644 index 00000000..660a84f4 --- /dev/null +++ b/app/src/debug/res/values/strings.xml @@ -0,0 +1,3 @@ + + ReadropsDebug + diff --git a/app/src/main/res/layout/activity_account_type_list.xml b/app/src/main/res/layout/activity_account_type_list.xml index 2cf43da1..42309911 100644 --- a/app/src/main/res/layout/activity_account_type_list.xml +++ b/app/src/main/res/layout/activity_account_type_list.xml @@ -19,6 +19,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="40dp" + android:ellipsize="end" + android:maxLines="1" android:text="@string/app_name" android:textSize="60sp" app:layout_constraintEnd_toEndOf="parent" diff --git a/build.gradle b/build.gradle index b0636441..cf1c4bf4 100644 --- a/build.gradle +++ b/build.gradle @@ -10,10 +10,6 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files } } diff --git a/readropslibrary/build.gradle b/readropslibrary/build.gradle index d503acad..5e84b814 100644 --- a/readropslibrary/build.gradle +++ b/readropslibrary/build.gradle @@ -5,8 +5,6 @@ apply plugin: 'kotlin-android' android { compileSdkVersion 28 - - defaultConfig { minSdkVersion 21 targetSdkVersion 28 @@ -14,7 +12,6 @@ android { versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } buildTypes {