ImAndroid/SzyxImSdk/build.gradle

72 行
2.2 KiB
Groovy

2023-05-16 10:58:56 +08:00
plugins {
id 'com.android.library'
}
2023-05-17 19:18:24 +08:00
def versionCode = 1
def versionName = "0.0.1.011"
2023-05-16 10:58:56 +08:00
android {
namespace 'cn.org.bjca.trust.android.lib.im'
compileSdk 33
defaultConfig {
2023-05-17 19:18:24 +08:00
minSdk 26
2023-05-16 10:58:56 +08:00
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
2023-05-18 18:36:32 +08:00
multiDexEnabled true
2023-05-17 19:18:24 +08:00
buildConfigField("String", "versionName", "\"${versionName}\"")
2023-05-16 10:58:56 +08:00
}
buildTypes {
2023-06-02 10:31:13 +08:00
debug {
// 开启混淆
2023-05-16 10:58:56 +08:00
minifyEnabled false
2023-06-02 10:31:13 +08:00
// Zipalign压缩优化
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
// 开启混淆
minifyEnabled true
// Zipalign压缩优化
zipAlignEnabled true
2023-05-16 10:58:56 +08:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
2023-05-17 19:18:24 +08:00
//数据库相关
implementation("androidx.room:room-runtime:2.5.0")
annotationProcessor ("androidx.room:room-compiler:2.5.0")
// 网络相关
//Rxjava
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
//Retrofit
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'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
2023-05-18 18:36:32 +08:00
//添加mqtt 2个包
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
//gson
implementation 'com.google.code.gson:gson:2.9.0'
2023-05-17 19:18:24 +08:00
2023-05-16 10:58:56 +08:00
}