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颜色 --- baselibrary/build.gradle | 30 +++++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/baselibrary/build.gradle b/baselibrary/build.gradle index 43d052c..cbf5578 100644 --- a/baselibrary/build.gradle +++ b/baselibrary/build.gradle @@ -1,7 +1,8 @@ apply plugin: 'com.android.library' android { - compileSdk 33 + namespace 'com.dayu.baselibrary' + compileSdk 34 defaultConfig { minSdk 23 targetSdk 26 @@ -12,7 +13,7 @@ buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } @@ -26,11 +27,18 @@ viewBinding { enabled = true; } + sourceSets { + main { + aidl.srcDirs = ['src/main/aidl'] + } + } } dependencies { - implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs') + + implementation fileTree(include: ['*.jar'], dir: 'exlibs') + implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation 'androidx.core:core-ktx:1.8.0' @@ -38,15 +46,27 @@ compileOnly 'com.google.zxing:core:3.4.1' compileOnly 'com.tencent.bugly:crashreport:4.1.9.3' + implementation project(':pickerviewlibrary') + //loding +// implementation 'com.wang.avi:library:2.1.3' //婊氬姩閫夋嫨妗� - compileOnly 'com.contrarywind:Android-PickerView:4.1.9' +// compileOnly 'com.contrarywind:Android-PickerView:4.1.9' 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" - + implementation 'com.pnikosis:materialish-progress:1.7' //鏉冮檺鐢宠 compileOnly 'com.github.getActivity:XXPermissions:18.5' + + //閫氫俊 + implementation 'com.squareup.retrofit2:retrofit:2.9.0' + implementation('com.squareup.retrofit2:converter-gson:2.9.0') { + exclude group: 'com.google.code.gson'; + } + implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0' + implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0' } \ No newline at end of file -- Gitblit v1.8.0