feat: 系统功能抽象

This commit is contained in:
2026-05-08 00:26:27 +08:00
parent b0ea6eff0a
commit 4dcb82b9f4
82 changed files with 4758 additions and 1019 deletions

View File

@@ -16,7 +16,7 @@ android {
applicationId "com.ttstd.dialer"
//There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature.
minSdkVersion 23
minSdkVersion 22
targetSdkVersion 29
versionCode 1
versionName "1.0"
@@ -25,6 +25,8 @@ android {
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
@@ -194,6 +196,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
//2.0.4以上无法预览
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.recyclerview:recyclerview:1.2.1"
// For control over item selection of both touch and mouse driven selection
implementation "androidx.recyclerview:recyclerview-selection:1.1.0"
@@ -210,6 +213,8 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-livedata:2.3.0"
implementation "androidx.lifecycle:lifecycle-runtime:2.3.0"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.3.0"
// LifecycleService 核心库
implementation "androidx.lifecycle:lifecycle-service:2.3.0"
// 添加这行,使用 BOM 统一 Kotlin 相关库的版本
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.10"))
@@ -222,7 +227,7 @@ dependencies {
//glide
implementation 'com.github.bumptech.glide:glide:4.13.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.1'
// SVG支持库
// SVG支持库f
implementation 'com.caverock:androidsvg:1.4'
// 如果需要添加Glide SVG模块社区版
// implementation 'com.github.qoqa:glide-svg:2.0.4'
@@ -231,7 +236,8 @@ dependencies {
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
//
implementation 'com.squareup.okhttp3:okhttp:4.7.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
@@ -266,6 +272,7 @@ dependencies {
//推送
//阿里云
implementation 'com.aliyun.ams:alicloud-android-push:3.9.3'
//极光
// 此处以JPush 5.6.0 版本为例,注意:从 5.0.0 版本开始可以自动拉取 JCore 包,无需另外配置
implementation "cn.jiguang.sdk:jpush:$jpush.version"