From 840d65881edcf453436b039aeed39f8762a84a76 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 23 Aug 2020 01:07:18 +0530 Subject: [PATCH] build: switch fragment and preference to -ktx artifacts Google recommends all dependencies with -ktx variants depend on them directly since they transitively pull in the main artifacts and offer extensions for better usage from Kotlin Signed-off-by: Harsh Shandilya --- ui/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/build.gradle b/ui/build.gradle index af92d4d4..7a652462 100644 --- a/ui/build.gradle +++ b/ui/build.gradle @@ -63,8 +63,8 @@ dependencies { implementation "androidx.biometric:biometric:$biometricVersion" implementation "androidx.core:core-ktx:$coreKtxVersion" implementation "androidx.databinding:databinding-runtime:$agpVersion" - implementation "androidx.fragment:fragment:$fragmentVersion" - implementation "androidx.preference:preference:$preferenceVersion" + implementation "androidx.fragment:fragment-ktx:$fragmentVersion" + implementation "androidx.preference:preference-ktx:$preferenceVersion" implementation "com.google.android.material:material:$materialComponentsVersion" implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"