From a1094285fb75bcc9e8ee2ff8832508d179944f51 Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Wed, 26 Jun 2019 10:29:22 +0100 Subject: [PATCH] #1229 BuildTypes removed --- app/build.gradle | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index db089139a..403c2fa36 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -123,22 +123,11 @@ dependencies { implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion" implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion" - - // Leak canary - implementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' - // Only enable leak canary in debug builds - configurations.all { config -> - if (config.name.contains("debug") || config.name.contains("Debug")) { - config.resolutionStrategy.eachDependency { details -> - if (details.requested.group == "com.squareup.leakcanary" && - details.requested.name == "leakcanary-android-no-op") { - details.useTarget(group: details.requested.group, name: "leakcanary-android", - version: details.requested.version) - } - } - } - } + releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' + androidTestImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' + debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" implementation "android.arch.lifecycle:extensions:1.1.1" implementation "io.objectbox:objectbox-kotlin:$objectboxVersion" @@ -282,18 +271,6 @@ android { testCoverageEnabled true } - mock_network { - initWith(buildTypes.debug) - matchingFallbacks = ["debug", "release"] - // TODO add DI for the mock network - } - - local_download_server { - initWith(buildTypes.debug) - buildConfigField "String", "KIWIX_DOWNLOAD_URL", "\"http://kiwix-download-server/\"" - matchingFallbacks = ["debug", "release"] - } - // Release Type release { signingConfig signingConfigs.release