38 lines
1.3 KiB
Kotlin
38 lines
1.3 KiB
Kotlin
import java.time.ZonedDateTime
|
|
import java.time.ZoneId
|
|
import java.time.format.DateTimeFormatter
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
android {
|
|
namespace = "org.qimiaoscreen.controller"
|
|
compileSdk = 37
|
|
defaultConfig {
|
|
applicationId = "org.qimiaoscreen.controller"
|
|
minSdk = 26
|
|
targetSdk = 37
|
|
versionCode = 5
|
|
versionName = "0.2.2"
|
|
buildConfigField("String", "BUILD_DATE", "\"" + ZonedDateTime.now(ZoneId.of("Asia/Shanghai")).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm XXX")) + "\"")
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildFeatures { compose = true; buildConfig = true }
|
|
buildTypes { getByName("debug") { isDebuggable = true } }
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
dependencies {
|
|
implementation(project(":sharedCore"))
|
|
implementation(project(":sharedUi"))
|
|
implementation(libs.activity.compose)
|
|
implementation(libs.coroutines.android)
|
|
implementation(libs.serialization.json)
|
|
androidTestImplementation("androidx.test:runner:1.7.0")
|
|
androidTestImplementation("androidx.test.ext:junit:1.3.0")
|
|
androidTestImplementation("androidx.test.uiautomator:uiautomator:2.3.0")
|
|
}
|