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
This commit is contained in:
Timo Loewe 2019-01-06 16:32:32 +01:00 committed by Mohamed Zenadi
parent 44f7af88d1
commit 094c6da53e

View file

@ -5,6 +5,7 @@ apply plugin: 'eclipse'
android { android {
compileSdkVersion 28 compileSdkVersion 28
defaultConfig { defaultConfig {
applicationId "com.zeapo.pwdstore" applicationId "com.zeapo.pwdstore"
minSdkVersion 21 minSdkVersion 21
@ -14,19 +15,29 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
buildTypes {
debug {
applicationIdSuffix ".debug"
}
}
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
lintOptions { lintOptions {
abortOnError true // make sure build fails with lint errors! abortOnError true // make sure build fails with lint errors!
disable 'MissingTranslation', 'PluralsCandidate' disable 'MissingTranslation', 'PluralsCandidate'
} }
packagingOptions { packagingOptions {
exclude '.readme' exclude '.readme'
exclude 'META-INF/LICENSE.txt' exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE.txt'
} }
// //
// To sign release builds, create the file `gradle.properties` in // To sign release builds, create the file `gradle.properties` in
// $HOME/.gradle or in your project directory with this content: // $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-core:3.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0-alpha4' androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.0-alpha4'
} }
repositories {
mavenCentral()
}