mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -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:rxandroid:$rxAndroidVersion"
|
||||||
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
|
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Leak canary
|
// Leak canary
|
||||||
implementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
|
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
|
||||||
// Only enable leak canary in debug builds
|
androidTestImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
|
||||||
configurations.all { config ->
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
|
||||||
implementation "android.arch.lifecycle:extensions:1.1.1"
|
implementation "android.arch.lifecycle:extensions:1.1.1"
|
||||||
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
|
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
|
||||||
@ -282,18 +271,6 @@ android {
|
|||||||
testCoverageEnabled true
|
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 Type
|
||||||
release {
|
release {
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user