0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

Update androidx fragments library to 1.6.0

This update required some manual changes as the old way of using the
"fragment-test" artifact with "debugImplementation" was deprecated
in favor of a new artifact for better separation of libraries and
dependencies.
This commit is contained in:
lukstbit 2023-06-08 10:17:57 +03:00 committed by Mike Hardy
parent ff2646fa3a
commit b91bb02b43
2 changed files with 4 additions and 7 deletions

View File

@ -289,6 +289,7 @@ dependencies {
implementation "androidx.core:core-ktx:1.10.1"
implementation 'androidx.exifinterface:exifinterface:1.3.6'
implementation "androidx.fragment:fragment-ktx:$fragments_version"
debugImplementation("androidx.fragment:fragment-testing-manifest:$fragments_version")
implementation "androidx.preference:preference-ktx:1.2.0"
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.sqlite:sqlite-framework:2.3.1'
@ -376,12 +377,7 @@ dependencies {
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
testImplementation "io.mockk:mockk:1.13.5"
testImplementation 'org.apache.commons:commons-exec:1.3' // obtaining the OS
// debugImplementation required vs testImplementation: https://issuetracker.google.com/issues/128612536
debugImplementation("androidx.fragment:fragment-testing:$fragments_version") {
// exclude transitive androidx.test:core dep: https://github.com/android/android-test/issues/1587
exclude group: 'androidx.test', module: 'core'
}
testImplementation("androidx.fragment:fragment-testing:$fragments_version")
// May need a resolution strategy for support libs to our versions
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
@ -393,6 +389,7 @@ dependencies {
androidTestImplementation "androidx.test:rules:$androidx_test_version"
androidTestImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
androidTestImplementation("androidx.fragment:fragment-testing:$fragments_version")
}
android {

View File

@ -11,7 +11,7 @@ buildscript {
ext.hamcrest_version = '2.2'
ext.junit_version = '5.9.3'
ext.coroutines_version = '1.6.4'
ext.fragments_version = "1.5.7"
ext.fragments_version = "1.6.0"
ext.espresso_version = '3.5.1'
ext.androidx_test_version = '1.5.0'
ext.androidx_test_junit_version = '1.1.5'