mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Merge pull request #1230 from kiwix/feature/macgills/#1229-remove-build-types
PR: #1229 BuildTypes removed
This commit is contained in:
commit
7b97931994
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user