mirror of
https://github.com/JasonYANG170/IOTConnect-Android.git
synced 2024-11-23 20:26:22 +00:00
71 lines
2.4 KiB
Plaintext
71 lines
2.4 KiB
Plaintext
|
plugins {
|
||
|
id("com.android.application")
|
||
|
id("org.jetbrains.kotlin.android")
|
||
|
id("kotlin-android")
|
||
|
// id("kotlin-android-extensions")
|
||
|
|
||
|
id("com.google.devtools.ksp")
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
|
||
|
namespace = "com.example.IOTsmart"
|
||
|
compileSdk = 34
|
||
|
|
||
|
defaultConfig {
|
||
|
applicationId = "com.example.IOTsmart"
|
||
|
minSdk = 26
|
||
|
targetSdk = 34
|
||
|
versionCode = 1
|
||
|
versionName = "1.0"
|
||
|
|
||
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
|
}
|
||
|
|
||
|
buildTypes {
|
||
|
release {
|
||
|
isMinifyEnabled = 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 {
|
||
|
viewBinding = true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation ("androidx.room:room-runtime:2.6.1")
|
||
|
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
|
||
|
ksp ("androidx.room:room-compiler:2.6.1")// Kotlin 使用 kapt
|
||
|
implementation ("androidx.room:room-ktx:2.6.1")//Coroutines support for Room 协程操作库
|
||
|
//lifecycle
|
||
|
implementation ("androidx.lifecycle:lifecycle-extensions:2.2.0")
|
||
|
implementation ("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
||
|
implementation ("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
|
||
|
implementation ("org.eclipse.paho:org.eclipse.paho.android.service:1.1.1")
|
||
|
implementation ("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
|
||
|
implementation ("com.github.bumptech.glide:glide:4.15.1")
|
||
|
annotationProcessor ("com.github.bumptech.glide:compiler:4.12.0")
|
||
|
implementation("com.squareup.picasso:picasso:2.0.0")
|
||
|
implementation ("com.squareup.okhttp3:okhttp:4.9.1")
|
||
|
implementation("androidx.core:core-ktx:1.13.1")
|
||
|
|
||
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
||
|
implementation("com.google.android.material:material:1.12.0")
|
||
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||
|
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
|
||
|
implementation("androidx.navigation:navigation-ui-ktx:2.7.7")
|
||
|
testImplementation("junit:junit:4.13.2")
|
||
|
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||
|
}
|