1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- plugins {
- id 'com.android.library'
- }
- def versionCode = 1
- def versionName = "0.0.1.011"
- android {
- namespace 'cn.org.bjca.trust.android.lib.im'
- compileSdk 33
- defaultConfig {
- minSdk 26
- targetSdk 33
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- multiDexEnabled true
- buildConfigField("String", "versionName", "\"${versionName}\"")
- }
- buildTypes {
- release {
- // 开启混淆
- minifyEnabled true
- // Zipalign压缩优化
- zipAlignEnabled true
- 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.2'
- 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'
- //数据库相关
- 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'
- //添加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'
- }
|