From 5fc9567cfa6b6beee4f52a9f835f304865d693e1 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期四, 10 四月 2025 18:13:58 +0800 Subject: [PATCH] add: 消息提醒后版本 --- app/build.gradle | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 52 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6ae6903..61aed6e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,8 @@ 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' @@ -14,7 +15,8 @@ compileSdk 34 defaultConfig { - applicationId "com.example.firstapp" +// applicationId "com.example.firstapp" + applicationId "net.sourceforge.simcpux" minSdk 24 targetSdk 34 versionCode 1 @@ -27,7 +29,15 @@ release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.debug } + debug { + minifyEnabled false + debuggable true + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.debug + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_17 @@ -38,6 +48,7 @@ } buildFeatures { viewBinding true + dataBinding true } } @@ -108,6 +119,23 @@ excludes += ["META-INF/*.kotlin_module", "META-INF/*.version", "kotlin/**", "DebugProbesKt.bin"] } } + + signingConfigs { + release { + storeFile file('../keystore/sms-manager.jks') + storePassword 'Cloudroam!@#123' + keyAlias 'sm' + keyPassword 'Cloudroam!@#123' + } + + debug { + storeFile file('../keystore/keystore.jks') + storePassword 'android' + keyAlias 'android' + } + } + + } dependencies { @@ -122,6 +150,7 @@ 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 @@ -190,7 +219,8 @@ //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' @@ -246,7 +276,8 @@ //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' @@ -279,4 +310,21 @@ 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:+' + } \ No newline at end of file -- Gitblit v1.9.3