From 9cffe03d76840520bfbfeaf85933fcb2ed8385b8 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期三, 05 三月 2025 10:19:46 +0800
Subject: [PATCH] feat(generallibrary): 新增主界面和相关功能模块 - 新增 MainActivity 作为主界面,包含三个底部导航栏选项卡- 新增 BSCardFragment、RechargeFragment 和 MyFragment 作为三个选项卡对应的页面 - 新增 NewCardActivity 用于新建卡片 - 新增 AreaCard 类用于处理区域表号卡数据 - 新增 BaseCard 类作为卡片数据的基础类 - 新增 TabAdapter 用于管理选项卡页面 - 更新 AndroidManifest.xml 设置主活动为 MainActivity - 更新 build.gradle 添加 generallibrary 依赖
---
generallibrary/build.gradle | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/generallibrary/build.gradle b/generallibrary/build.gradle
index cf692d6..80bf8d8 100644
--- a/generallibrary/build.gradle
+++ b/generallibrary/build.gradle
@@ -8,7 +8,7 @@
compileSdk 34
defaultConfig {
- minSdk 24
+ minSdk 23
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
@@ -27,14 +27,25 @@
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'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
@@ -62,7 +73,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 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