Browse Source

Update Android.bp

AOSP build is still broken because of missing datastore libraries. Fix
later.

preference-ktx is replaced with plain preference for AOSP compatibility.
Peter Cai 2 years ago
parent
commit
74f6313e52
2 changed files with 3 additions and 1 deletions
  1. 1 0
      Android.bp
  2. 2 1
      app-common/build.gradle

+ 1 - 0
Android.bp

@@ -26,6 +26,7 @@ android_library {
         "androidx.lifecycle_lifecycle-runtime-ktx",
         "androidx.swiperefreshlayout_swiperefreshlayout",
         "com.google.android.material_material",
+        "androidx.preference_preference"
         "kotlinx_coroutines",
     ],
     srcs: [

+ 2 - 1
app-common/build.gradle

@@ -35,7 +35,8 @@ dependencies {
     implementation 'androidx.appcompat:appcompat:1.6.1'
     implementation 'com.google.android.material:material:1.10.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
-    implementation "androidx.preference:preference-ktx:1.2.1"
+    //noinspection KtxExtensionAvailable
+    implementation "androidx.preference:preference:1.2.1"
     implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
     implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
     implementation "androidx.cardview:cardview:1.0.0"