feat: 增加联系人增删改查

This commit is contained in:
2026-05-19 11:40:50 +08:00
parent da83e852e0
commit c878c307b3
1129 changed files with 10342 additions and 2682 deletions

View File

@@ -20,7 +20,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 23
targetSdkVersion 37
versionCode 1
versionName "1.0"
@@ -95,6 +95,21 @@ android {
}
}
flavorDimensions "version"
productFlavors {
// 用于正常开发和发布的版本
normal {
dimension "version"
minSdkVersion 23 // 你的原始最低版本
}
// 专门用于调试高版本特性的版本
debugApi26 {
dimension "version"
minSdkVersion 31 // 为了使用 Database Inspector
}
}
signingConfigs {
keypub {
storeFile file(rootProject.ext.signingConfigs.keypub.storeFile)
@@ -194,9 +209,9 @@ dependencies {
implementation project(path: ':iconloader')
// 添加 Kotlin 标准库
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.10"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// 添加这行,使用 BOM 统一 Kotlin 相关库的版本
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.2.10"))
implementation(platform("org.jetbrains.kotlin:kotlin-bom:$kotlin_version"))
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-rx3:1.11.0'
@@ -230,7 +245,9 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
implementation 'com.google.android.material:material:1.13.0'
implementation 'com.google.android.material:material:1.14.0'
implementation 'com.googlecode.libphonenumber:libphonenumber:9.0.30'
//glide
implementation 'com.github.bumptech.glide:glide:4.15.1'
kapt 'com.github.bumptech.glide:compiler:4.15.1'
@@ -242,12 +259,13 @@ dependencies {
//RxJava
implementation 'io.reactivex.rxjava3:rxjava:3.1.12'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
//
implementation 'com.squareup.moshi:moshi:1.15.2'
implementation 'com.squareup.okhttp3:okhttp:5.3.2'
implementation 'com.squareup.okhttp3:logging-interceptor:5.3.2'
implementation 'com.squareup.retrofit2:retrofit:3.0.0'
implementation 'com.squareup.retrofit2:converter-gson:3.0.0'
// implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
// implementation 'com.squareup.retrofit2:adapter-rxjava2:3.0.0'
implementation "com.squareup.retrofit2:adapter-rxjava3:3.0.0"
//Gson
implementation 'com.google.code.gson:gson:2.14.0'
@@ -262,7 +280,8 @@ dependencies {
implementation 'com.jakewharton.rxbinding4:rxbinding:4.0.0'
/*https://github.com/JeremyLiao/LiveEventBus*/
implementation 'com.jeremyliao:live-event-bus-x:1.7.3'
// implementation 'io.github.jeremyliao:live-event-bus:1.8.0'
implementation 'com.github.neo-turak:LiveEventBus:1.8.1'
implementation 'com.facebook.rebound:rebound:0.3.8'
//MMKV
@@ -344,10 +363,8 @@ dependencies {
implementation 'com.github.getActivity:Toaster:12.6'
// 权限请求框架https://github.com/getActivity/XXPermissions
implementation 'com.github.getActivity:XXPermissions:20.0'
//autosize会改变第三方view的大小
//https://github.com/JessYanCoding/AndroidAutoSize
// implementation 'me.jessyan:autosize:1.2.1'
implementation 'com.github.zcweng:switch-button:0.0.3@aar'
implementation "com.github.kongzue.DialogX:DialogX:0.0.50"
}
// 在 dependencies 之后添加