2020-12-23 03:58:30 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
id("kotlin-kapt")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2021-07-25 19:33:59 +00:00
|
|
|
compileSdkVersion(30)
|
2020-12-23 03:58:30 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "io.homeassistant.companion.android"
|
2021-07-25 19:33:59 +00:00
|
|
|
minSdkVersion(23)
|
|
|
|
targetSdkVersion(30)
|
2020-12-23 03:58:30 +00:00
|
|
|
|
|
|
|
versionName = System.getenv("VERSION") ?: "LOCAL"
|
|
|
|
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments(mapOf("room.incremental" to "true"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2021-08-07 01:41:30 +00:00
|
|
|
sourceCompatibility(JavaVersion.VERSION_11)
|
|
|
|
targetCompatibility(JavaVersion.VERSION_11)
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
create("release") {
|
|
|
|
storeFile = file(System.getenv("KEYSTORE_PATH") ?: "release_keystore.keystore")
|
|
|
|
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: ""
|
|
|
|
keyAlias = System.getenv("KEYSTORE_ALIAS") ?: ""
|
|
|
|
keyPassword = System.getenv("KEYSTORE_ALIAS_PASSWORD") ?: ""
|
|
|
|
isV1SigningEnabled = true
|
|
|
|
isV2SigningEnabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
named("debug").configure {
|
|
|
|
applicationIdSuffix = ".debug"
|
|
|
|
}
|
|
|
|
named("release").configure {
|
|
|
|
isDebuggable = false
|
|
|
|
isJniDebuggable = false
|
|
|
|
isZipAlignEnabled = true
|
|
|
|
signingConfig = signingConfigs.getByName("release")
|
|
|
|
}
|
|
|
|
}
|
2021-10-01 00:41:22 +00:00
|
|
|
|
2020-12-23 03:58:30 +00:00
|
|
|
kotlinOptions {
|
2021-08-07 01:41:30 +00:00
|
|
|
jvmTarget = "11"
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable("MissingTranslation")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":common"))
|
|
|
|
|
2021-10-01 00:41:22 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1")
|
|
|
|
|
2021-07-26 00:56:58 +00:00
|
|
|
implementation("com.google.android.material:material:1.4.0")
|
2020-12-23 03:58:30 +00:00
|
|
|
|
2021-07-25 19:33:59 +00:00
|
|
|
implementation("androidx.wear:wear:1.1.0")
|
|
|
|
implementation("com.google.android.support:wearable:2.8.1")
|
2021-10-01 00:41:22 +00:00
|
|
|
implementation("com.google.android.gms:play-services-wearable:17.1.0")
|
2021-07-25 19:33:59 +00:00
|
|
|
compileOnly("com.google.android.wearable:wearable:2.8.1")
|
2021-10-01 00:41:22 +00:00
|
|
|
|
2021-10-01 01:46:02 +00:00
|
|
|
implementation("com.google.dagger:dagger:2.39")
|
2021-10-01 01:38:34 +00:00
|
|
|
kapt("com.google.dagger:dagger-compiler:2.39")
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|