diff options
author | Timo Loewe <timoloewe91@gmail.com> | 2019-01-06 16:32:32 +0100 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2019-01-06 16:32:32 +0100 |
commit | 094c6da53e206e0c3f662d82b052c9db0074a979 (patch) | |
tree | 25dccc0e2fdf19dd1411141a8f6d7d7cebd2205a | |
parent | 44f7af88d1cdf34f093887fa52c5fee1457bc157 (diff) |
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
-rw-r--r-- | app/build.gradle | 14 |
1 files 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() -} |