2020-12-23 03:58:30 +00:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
|
|
|
id("kotlin-android")
|
|
|
|
id("kotlin-kapt")
|
2021-10-14 02:42:23 +00:00
|
|
|
id("com.github.triplet.play")
|
2021-11-16 16:06:19 +00:00
|
|
|
kotlin("kapt")
|
|
|
|
id("dagger.hilt.android.plugin")
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2021-10-14 00:58:14 +00:00
|
|
|
compileSdk = 31
|
2020-12-23 03:58:30 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "io.homeassistant.companion.android"
|
2021-11-03 00:52:28 +00:00
|
|
|
minSdk = 25
|
2021-10-13 03:35:05 +00:00
|
|
|
targetSdk = 30
|
2020-12-23 03:58:30 +00:00
|
|
|
|
|
|
|
versionName = System.getenv("VERSION") ?: "LOCAL"
|
2021-10-14 02:42:23 +00:00
|
|
|
// We add 1 because the app and wear versions need to have different version codes.
|
|
|
|
versionCode = (System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1) + 1
|
2020-12-23 03:58:30 +00:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments(mapOf("room.incremental" to "true"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
2021-11-03 00:52:28 +00:00
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = "1.0.4"
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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") ?: ""
|
2021-10-13 03:35:05 +00:00
|
|
|
enableV1Signing = true
|
|
|
|
enableV2Signing = true
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
named("debug").configure {
|
|
|
|
applicationIdSuffix = ".debug"
|
|
|
|
}
|
|
|
|
named("release").configure {
|
|
|
|
isDebuggable = false
|
|
|
|
isJniDebuggable = false
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-10-13 03:35:05 +00:00
|
|
|
lint {
|
2020-12-23 03:58:30 +00:00
|
|
|
disable("MissingTranslation")
|
|
|
|
}
|
2021-11-27 18:08:26 +00:00
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
}
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|
|
|
|
|
2021-10-14 02:42:23 +00:00
|
|
|
play {
|
|
|
|
serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json"))
|
|
|
|
track.set("beta")
|
|
|
|
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE)
|
2021-10-14 03:46:49 +00:00
|
|
|
commit.set(false)
|
2021-10-14 02:42:23 +00:00
|
|
|
}
|
|
|
|
|
2020-12-23 03:58:30 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(project(":common"))
|
|
|
|
|
2021-12-14 16:05:00 +00:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10")
|
2021-12-24 12:21:36 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0")
|
2021-12-24 12:23:09 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.6.0")
|
2021-10-01 00:41:22 +00:00
|
|
|
|
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-10-14 00:58:14 +00:00
|
|
|
implementation("androidx.wear:wear:1.2.0")
|
2021-07-25 19:33:59 +00:00
|
|
|
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")
|
2022-01-13 20:04:10 +00:00
|
|
|
implementation("androidx.wear:wear-input:1.2.0-alpha02")
|
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-12-09 01:57:55 +00:00
|
|
|
implementation("com.google.dagger:hilt-android:2.40.5")
|
2021-12-09 01:55:55 +00:00
|
|
|
kapt("com.google.dagger:hilt-android-compiler:2.40.5")
|
2021-11-16 16:06:19 +00:00
|
|
|
|
2021-12-21 14:14:18 +00:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1")
|
2021-11-23 01:34:52 +00:00
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.9.3")
|
2021-10-20 21:52:58 +00:00
|
|
|
|
2021-11-15 22:34:35 +00:00
|
|
|
implementation("com.mikepenz:iconics-core:5.3.3")
|
2021-11-20 20:50:44 +00:00
|
|
|
implementation("androidx.appcompat:appcompat:1.4.0")
|
2021-11-15 23:04:08 +00:00
|
|
|
implementation("com.mikepenz:community-material-typeface:6.4.95.0-kotlin@aar")
|
2021-11-15 22:47:36 +00:00
|
|
|
implementation("com.mikepenz:iconics-compose:5.3.3")
|
2021-11-03 00:52:28 +00:00
|
|
|
|
2021-12-24 12:18:43 +00:00
|
|
|
implementation("androidx.activity:activity-ktx:1.4.0")
|
2021-11-03 00:52:28 +00:00
|
|
|
implementation("androidx.activity:activity-compose:1.4.0")
|
2021-11-04 01:42:30 +00:00
|
|
|
implementation("androidx.compose.compiler:compiler:1.0.5")
|
|
|
|
implementation("androidx.compose.foundation:foundation:1.0.5")
|
2021-11-11 16:16:49 +00:00
|
|
|
implementation("androidx.compose.ui:ui-tooling:1.0.5")
|
2021-12-24 12:18:43 +00:00
|
|
|
implementation("androidx.wear.compose:compose-foundation:1.0.0-alpha13")
|
|
|
|
implementation("androidx.wear.compose:compose-material:1.0.0-alpha13")
|
|
|
|
implementation("androidx.wear.compose:compose-navigation:1.0.0-alpha13")
|
2021-11-11 21:09:32 +00:00
|
|
|
|
|
|
|
implementation("com.google.guava:guava:31.0.1-android")
|
|
|
|
implementation("androidx.wear.tiles:tiles:1.0.0")
|
2020-12-23 03:58:30 +00:00
|
|
|
}
|