mirror of
https://github.com/home-assistant/android
synced 2024-10-04 23:29:31 +00:00
93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-kapt")
|
|
id("com.github.triplet.play")
|
|
}
|
|
|
|
android {
|
|
compileSdk = 31
|
|
|
|
defaultConfig {
|
|
applicationId = "io.homeassistant.companion.android"
|
|
minSdk = 23
|
|
targetSdk = 30
|
|
|
|
versionName = System.getenv("VERSION") ?: "LOCAL"
|
|
// We add 1 because the app and wear versions need to have different version codes.
|
|
versionCode = (System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1) + 1
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments(mapOf("room.incremental" to "true"))
|
|
}
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility(JavaVersion.VERSION_11)
|
|
targetCompatibility(JavaVersion.VERSION_11)
|
|
}
|
|
|
|
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") ?: ""
|
|
enableV1Signing = true
|
|
enableV2Signing = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
named("debug").configure {
|
|
applicationIdSuffix = ".debug"
|
|
}
|
|
named("release").configure {
|
|
isDebuggable = false
|
|
isJniDebuggable = false
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
lint {
|
|
disable("MissingTranslation")
|
|
}
|
|
}
|
|
|
|
play {
|
|
serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json"))
|
|
track.set("beta")
|
|
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE)
|
|
commit.set(false)
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1")
|
|
|
|
implementation("com.google.android.material:material:1.4.0")
|
|
|
|
implementation("androidx.wear:wear:1.2.0")
|
|
implementation("com.google.android.support:wearable:2.8.1")
|
|
implementation("com.google.android.gms:play-services-wearable:17.1.0")
|
|
compileOnly("com.google.android.wearable:wearable:2.8.1")
|
|
|
|
implementation("com.google.dagger:dagger:2.39.1")
|
|
kapt("com.google.dagger:dagger-compiler:2.39.1")
|
|
|
|
implementation("com.mikepenz:iconics-core:5.3.2")
|
|
implementation("androidx.appcompat:appcompat:1.3.1")
|
|
implementation("com.mikepenz:community-material-typeface:5.8.55.0-kotlin@aar")
|
|
}
|