From 094c6da53e206e0c3f662d82b052c9db0074a979 Mon Sep 17 00:00:00 2001 From: Timo Loewe Date: Sun, 6 Jan 2019 16:32:32 +0100 Subject: Enable parallel installation of release and debug builds (#471) * Specify applicationIdSuffix for debug build type This allows installing debug and release versions of the app alongside each other. * Get rid of obsolete repository declaration in app/build.gradle --- app/build.gradle | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d138cc5d..c4add7d3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,6 +5,7 @@ apply plugin: 'eclipse' android { compileSdkVersion 28 + defaultConfig { applicationId "com.zeapo.pwdstore" minSdkVersion 21 @@ -14,19 +15,29 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + + buildTypes { + debug { + applicationIdSuffix ".debug" + } + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + lintOptions { abortOnError true // make sure build fails with lint errors! disable 'MissingTranslation', 'PluralsCandidate' } + packagingOptions { exclude '.readme' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } + // // To sign release builds, create the file `gradle.properties` in // $HOME/.gradle or in your project directory with this content: @@ -80,6 +91,3 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4' androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0-alpha4' } -repositories { - mavenCentral() -} -- cgit v1.2.3