MPVN_Android/app/build.gradle.kts
zzh e606ed6f0b 初始提交:智能家居控制台应用
功能特性:
- 玻璃态/新拟态设计风格的现代UI
- 侧边栏导航(控制台、最近、收藏、下载、支持、设置)
- 房间管理:可添加、删除房间,支持横向滚动
- 长按房间标签进入编辑模式,带旋转晃动动画
- 三个场景模式按钮(回家、出门、玩乐)
- 空调控制卡片
- 使用状态图表
- 灯光控制
- 设备网格展示
- 设置页面(账户、设备管理、显示设置、关于)
- 使用SharedPreferences持久化存储房间列表
- 响应式设计,支持多种屏幕尺寸
2025-11-26 10:30:03 +08:00

81 lines
2.4 KiB
Plaintext

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}
android {
namespace = "com.example.smarthome"
compileSdk = 35
defaultConfig {
applicationId = "com.example.smarthome"
minSdk = 24
targetSdk = 35
versionCode = 1
versionName = "1.0"
vectorDrawables {
useSupportLibrary = true
}
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
debug {
isDebuggable = true
}
}
buildFeatures {
compose = true
viewBinding = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.14"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("com.google.android.material:material:1.12.0")
implementation(platform("androidx.compose:compose-bom:2024.10.00"))
implementation("androidx.activity:activity-compose:1.9.3")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.material3:material3-window-size-class:1.3.0")
implementation("com.github.Dimezis:BlurView:version-3.2.0")
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.12")
androidTestImplementation(platform("androidx.compose:compose-bom:2024.10.00"))
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-test-manifest")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.2.1")
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
}