From d0a0e8e242e293ad35dfbee1217f1103302818cd Mon Sep 17 00:00:00 2001
From: zuojincheng <lf_zuo@163.com>
Date: 星期四, 03 四月 2025 10:22:48 +0800
Subject: [PATCH] refactor(generallibrary):重构卡片和用户搜索功能

---
 generallibrary/build.gradle |   41 ++++++++++++++++++++++++++++++++---------
 1 files changed, 32 insertions(+), 9 deletions(-)

diff --git a/generallibrary/build.gradle b/generallibrary/build.gradle
index cf692d6..a598a66 100644
--- a/generallibrary/build.gradle
+++ b/generallibrary/build.gradle
@@ -1,14 +1,15 @@
 plugins {
     id 'com.android.library'
     id 'org.jetbrains.kotlin.android'
+    id 'kotlin-kapt'
 }
 
 android {
     namespace 'com.dayu.general'
     compileSdk 34
-
+    ndkVersion '21.0.6113669'
     defaultConfig {
-        minSdk 24
+        minSdk 23
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         consumerProguardFiles "consumer-rules.pro"
@@ -27,24 +28,39 @@
     kotlinOptions {
         jvmTarget = '1.8'
     }
+    dataBinding {
+        enabled = true;
+    }
+    viewBinding {
+        enabled = true;
+    }
+    externalNativeBuild {
+        cmake {
+            path "CMakeLists.txt"
+        }
+    }
 }
 
 dependencies {
 
     implementation project(":baselibrary")
-    implementation 'androidx.core:core-ktx:1.15.0'
-    implementation 'androidx.appcompat:appcompat:1.7.0'
-    implementation 'com.google.android.material:material:1.12.0'
+    implementation 'androidx.core:core-ktx:1.12.0'
+    implementation 'androidx.appcompat:appcompat:1.6.1'
+    implementation 'com.google.android.material:material:1.11.0'
+    implementation "androidx.activity:activity-ktx:1.8.2"
+    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
+    implementation "androidx.fragment:fragment-ktx:1.6.2"
     testImplementation 'junit:junit:4.13.2'
     androidTestImplementation 'androidx.test.ext:junit:1.2.1'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
 
+    compileOnly project(':pickerviewlibrary')
 
     //鏁版嵁搴�
     implementation "androidx.room:room-runtime:2.3.0"
     implementation "androidx.room:room-ktx:2.3.0"
     runtimeOnly("androidx.room:room-common:2.3.0")
-    annotationProcessor "androidx.room:room-compiler:2.3.0"
+    kapt "androidx.room:room-compiler:2.3.0"
 
     //鏉冮檺鐢宠
     compileOnly 'com.github.getActivity:XXPermissions:18.5'
@@ -62,7 +78,14 @@
     implementation 'com.pnikosis:materialish-progress:1.7'
 
     //鍒楄〃
-    compileOnly 'io.github.scwang90:refresh-layout-kernel:2.0.5'
-    compileOnly 'io.github.scwang90:refresh-header-classics:2.0.5'
-    compileOnly 'androidx.recyclerview:recyclerview:1.2.0'//缁忓吀鍒锋柊澶�
+    implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5'
+    implementation 'io.github.scwang90:refresh-header-classics:2.0.5'
+    implementation 'androidx.recyclerview:recyclerview:1.3.2'
+
+    //寤鸿娣诲姞 ViewPager2 鐨勬槑纭緷璧�
+    implementation "androidx.viewpager2:viewpager2:1.1.0-beta01"
+    implementation "androidx.fragment:fragment:1.6.2"
+
+
+    implementation 'com.tencent.bugly:crashreport:4.1.9.3'
 }
\ No newline at end of file

--
Gitblit v1.8.0