SmartCooking/app/build.gradle

123 lines
3.8 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.android.machine.smartbox"
minSdk 21
targetSdk 32
versionCode 1
versionName "1.1.4"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
dataBinding = true
}
lintOptions {
//release发布提示错误,可能是某个控件没有缺赋了值,找不到错误所在,所以遏止报错
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
// implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
// implementation project(path: ':openapi')
// implementation project(path: ':serialport')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
api 'androidx.multidex:multidex:2.0.1'
// add cookie
implementation files('libs/commons-lang-2.6.jar')
// modbus
// implementation files('libs/modbus4android.aar')
//implementation(name: 'modbus4android', ext: 'aar')
api 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'com.squareup.okio:okio:2.10.0'
// 用于链式调用
api "io.reactivex.rxjava2:rxjava:2.2.9"
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
api 'androidx.lifecycle:lifecycle-reactivestreams:2.2.0'
// Glide
api 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
// 高斯模糊和圆角等
//api 'jp.wasabeef:glide-transformations:4.0.1'
implementation "com.github.skydoves:bindables:1.0.9"
api 'com.google.code.gson:gson:2.8.6'
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.google.zxing:core:3.3.0'
implementation 'io.github.youth5201314:banner:2.2.2'
//MMKV
// implementation 'com.tencent:mmkv-static:1.2.15'
//FileDownloader
implementation 'com.liulishuo.filedownloader:library:1.7.7'
implementation 'com.github.Acccord:AndroidSerialPort:1.5.0'
implementation 'com.github.Acccord:SPOpenApi:1.0.7'
implementation 'com.blankj:utilcodex:1.31.1'
// implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
}