|  |  |  | 
|---|
|  |  |  | alias(libs.plugins.jetbrains.kotlin.android) | 
|---|
|  |  |  | //    id 'com.android.application' | 
|---|
|  |  |  | id 'kotlin-android' | 
|---|
|  |  |  | id 'kotlin-kapt' | 
|---|
|  |  |  | //    id 'kotlin-kapt' | 
|---|
|  |  |  | id 'com.google.devtools.ksp' version '1.9.0-1.0.13' | 
|---|
|  |  |  | id 'kotlin-parcelize' | 
|---|
|  |  |  | //    id 'img-optimizer' | 
|---|
|  |  |  | //    id 'com.yanzhenjie.andserver' | 
|---|
|  |  |  | 
|---|
|  |  |  | compileSdk 34 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | defaultConfig { | 
|---|
|  |  |  | //        applicationId "com.cloudroam.smsManager" | 
|---|
|  |  |  | applicationId "com.example.firstapp" | 
|---|
|  |  |  | //        applicationId "net.sourceforge.simcpux" | 
|---|
|  |  |  | minSdk 24 | 
|---|
|  |  |  | targetSdk 34 | 
|---|
|  |  |  | versionCode 1 | 
|---|
|  |  |  | 
|---|
|  |  |  | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | signingConfigs { | 
|---|
|  |  |  | release { | 
|---|
|  |  |  | storeFile file('../keystore/sms-manager3.jks') | 
|---|
|  |  |  | storePassword 'Cloudroam!@#123' | 
|---|
|  |  |  | keyAlias 'sm' | 
|---|
|  |  |  | keyPassword 'Cloudroam!@#123' | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | debug { | 
|---|
|  |  |  | storeFile file('../keystore/keystore.jks') | 
|---|
|  |  |  | storePassword 'android' | 
|---|
|  |  |  | keyAlias 'android' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | buildTypes { | 
|---|
|  |  |  | release { | 
|---|
|  |  |  | minifyEnabled false | 
|---|
|  |  |  | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 
|---|
|  |  |  | signingConfig signingConfigs.release | 
|---|
|  |  |  | } | 
|---|
|  |  |  | debug { | 
|---|
|  |  |  | minifyEnabled false | 
|---|
|  |  |  | debuggable true | 
|---|
|  |  |  | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | 
|---|
|  |  |  | signingConfig signingConfigs.debug | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | compileOptions { | 
|---|
|  |  |  | sourceCompatibility JavaVersion.VERSION_17 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | buildFeatures { | 
|---|
|  |  |  | viewBinding true | 
|---|
|  |  |  | dataBinding true | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //dependencies { | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    implementation libs.androidx.core.ktx | 
|---|
|  |  |  | //    implementation libs.androidx.appcompat | 
|---|
|  |  |  | //    implementation libs.material | 
|---|
|  |  |  | //    implementation libs.androidx.constraintlayout | 
|---|
|  |  |  | //    implementation libs.androidx.lifecycle.livedata.ktx | 
|---|
|  |  |  | //    implementation libs.androidx.lifecycle.viewmodel.ktx | 
|---|
|  |  |  | //    implementation libs.androidx.navigation.fragment.ktx | 
|---|
|  |  |  | //    implementation libs.androidx.navigation.ui.ktx | 
|---|
|  |  |  | //    testImplementation libs.junit | 
|---|
|  |  |  | //    androidTestImplementation libs.androidx.junit | 
|---|
|  |  |  | //    androidTestImplementation libs.androidx.espresso.core | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    def work_version = '2.8.1' | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    api("androidx.work:work-multiprocess:$work_version") | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    api("androidx.work:work-runtime-ktx:$work_version") | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    //Android Room | 
|---|
|  |  |  | //    def room_version = '2.5.2' | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    implementation "androidx.room:room-ktx:$room_version" | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    implementation "androidx.room:room-runtime:$room_version" | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    implementation "androidx.room:room-paging:$room_version" | 
|---|
|  |  |  | //    //noinspection GradleDependency | 
|---|
|  |  |  | //    implementation "androidx.room:room-rxjava2:$room_version" | 
|---|
|  |  |  | //    //noinspection KaptUsageInsteadOfKsp | 
|---|
|  |  |  | //    kapt "androidx.room:room-compiler:$room_version" | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    //基础功能的工具类 | 
|---|
|  |  |  | //    implementation("com.github.xuexiangjys.XUtil:xutil-core:2.0.0") | 
|---|
|  |  |  | //    //附加功能的工具类 | 
|---|
|  |  |  | //    implementation("com.github.xuexiangjys.XUtil:xutil-sub:2.0.0") | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    //Android Keep Alive(安卓保活),Cactus 集成双进程前台服务,JobScheduler,onePix(一像素),WorkManager,无声音乐 | 
|---|
|  |  |  | //    //https://github.com/gyf-dev/Cactus | 
|---|
|  |  |  | //    implementation 'com.gyf.cactus:cactus:1.1.3-beta13' | 
|---|
|  |  |  | ////    implementation 'com.gyf.cactus:cactus-support:1.1.3-beta13' | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | android { | 
|---|
|  |  |  | packagingOptions { | 
|---|
|  |  |  | 
|---|
|  |  |  | excludes += ["META-INF/*.kotlin_module", "META-INF/*.version", "kotlin/**", "DebugProbesKt.bin"] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dependencies { | 
|---|
|  |  |  | 
|---|
|  |  |  | implementation libs.androidx.navigation.ui.ktx | 
|---|
|  |  |  | implementation libs.androidx.legacy.support.v4 | 
|---|
|  |  |  | implementation libs.androidx.recyclerview | 
|---|
|  |  |  | implementation libs.androidx.activity | 
|---|
|  |  |  | testImplementation libs.junit | 
|---|
|  |  |  | androidTestImplementation libs.androidx.junit | 
|---|
|  |  |  | androidTestImplementation libs.androidx.espresso.core | 
|---|
|  |  |  | 
|---|
|  |  |  | //noinspection GradleDependency | 
|---|
|  |  |  | implementation "androidx.room:room-rxjava2:$room_version" | 
|---|
|  |  |  | //noinspection KaptUsageInsteadOfKsp | 
|---|
|  |  |  | kapt "androidx.room:room-compiler:$room_version" | 
|---|
|  |  |  | //    kapt "androidx.room:room-compiler:$room_version" | 
|---|
|  |  |  | ksp "androidx.room:room-compiler:$room_version" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //CodeView:https://github.com/AmrDeveloper/CodeView | 
|---|
|  |  |  | implementation 'io.github.amrdeveloper:codeview:1.3.9' | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //HTTP服务器:https://github.com/yanzhenjie/AndServer | 
|---|
|  |  |  | implementation 'cn.ppps.andserver:api:2.1.12' | 
|---|
|  |  |  | kapt 'cn.ppps.andserver:processor:2.1.12' | 
|---|
|  |  |  | //    kapt 'cn.ppps.andserver:processor:2.1.12' | 
|---|
|  |  |  | ksp 'cn.ppps.andserver:processor:2.1.12' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //Location 是一个通过 Android 自带的 LocationManager 来实现的定位功能:https://github.com/jenly1314/Location | 
|---|
|  |  |  | implementation 'com.github.pppscn:location:1.0.0' | 
|---|
|  |  |  | 
|---|
|  |  |  | // 滚轮滑动控件级联 | 
|---|
|  |  |  | implementation 'com.contrarywind:Android-PickerView:4.1.9' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //图形化 | 
|---|
|  |  |  | implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //添加了 Glide 依赖 | 
|---|
|  |  |  | implementation 'com.github.bumptech.glide:glide:4.12.0' | 
|---|
|  |  |  | annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | implementation 'com.squareup.okhttp3:okhttp:4.9.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 支付宝支付SDK | 
|---|
|  |  |  | api 'com.alipay.sdk:alipaysdk-android:+@aar' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //implementation 'com.google.android.material:material:1.4.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 加密SharedPreferences | 
|---|
|  |  |  | implementation "androidx.security:security-crypto:1.1.0-alpha06" | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // Material Design组件im | 
|---|
|  |  |  | implementation 'com.google.android.material:material:1.9.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | implementation 'de.hdodenhof:circleimageview:3.1.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | implementation 'com.github.castorflex:SmoothProgressBar:1.1.0' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    api 'com.tencent.mm.opensdk:wechat-sdk-android:+' | 
|---|
|  |  |  | implementation("com.tencent.mm.opensdk:wechat-sdk-android:6.8.28") | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|