mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
Refactor build.gradle (app)
This commit is contained in:
parent
e8b2cf4eac
commit
a847783a61
@ -69,8 +69,6 @@ dependencies {
|
||||
implementation "androidx.collection:collection-ktx:1.1.0"
|
||||
|
||||
implementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
|
||||
implementation 'androidx.appcompat:appcompat:1.0.2'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion")
|
||||
androidTestImplementation "androidx.test.espresso:espresso-web:$espressoVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
|
||||
@ -132,27 +130,13 @@ dependencies {
|
||||
implementation "android.arch.lifecycle:extensions:1.1.1"
|
||||
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
|
||||
implementation "io.objectbox:objectbox-rxjava:$objectboxVersion"
|
||||
implementation 'com.google.android.gms:play-services-location:17.0.0'
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter:5.4.2"
|
||||
testImplementation "io.mockk:mockk:1.9"
|
||||
testImplementation "org.assertj:assertj-core:3.11.1"
|
||||
testImplementation 'com.jraska.livedata:testing-ktx:1.1.0'
|
||||
testImplementation 'androidx.arch.core:core-testing:2.0.1'
|
||||
// Leak canary
|
||||
implementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
|
||||
implementation 'com.google.android.gms:play-services-location:16.0.0'
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set custom app import directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user