From 55b196ea2e28a8d859c85326f2147a4f7b7196de Mon Sep 17 00:00:00 2001 From: zuojincheng <lf_zuo@163.com> Date: 星期四, 10 四月 2025 10:58:32 +0800 Subject: [PATCH] feat(general): 新增开卡信息保存功能并优化界面布局- 新增 CardRegistrationBean 数据模型用于保存开卡信息 - 在数据库中添加 card_registration 表用于存储开卡记录 - 优化 NewCard2Activity 界面布局,调整样式和间距 - 添加协程支持,实现异步保存开卡信息到数据库 - 更新颜色配置,统一使用新加的 base_blue_bg 和 base_green_bg颜色 --- generallibrary/build.gradle | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/generallibrary/build.gradle b/generallibrary/build.gradle index 80bf8d8..a598a66 100644 --- a/generallibrary/build.gradle +++ b/generallibrary/build.gradle @@ -1,12 +1,13 @@ 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 23 @@ -46,16 +47,20 @@ 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' @@ -80,7 +85,7 @@ //寤鸿娣诲姞 ViewPager2 鐨勬槑纭緷璧� implementation "androidx.viewpager2:viewpager2:1.1.0-beta01" implementation "androidx.fragment:fragment:1.6.2" - implementation files('../baselibrary/libs/avi.library-2.1.3.aar') + implementation 'com.tencent.bugly:crashreport:4.1.9.3' } \ No newline at end of file -- Gitblit v1.8.0