mirror of
https://github.com/home-assistant/android
synced 2024-10-04 15:19:30 +00:00
3b614548d6
* Cleanup .gitignore * Move to just wear rather than wearos_app. * Try to use lots of wildcards for debug pr build archiving.
75 lines
2 KiB
Plaintext
75 lines
2 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-kapt")
|
|
id("kotlin-android-extensions")
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion(Config.Android.compileSdk)
|
|
|
|
defaultConfig {
|
|
applicationId = "io.homeassistant.companion.android"
|
|
minSdkVersion(Config.Android.minSdkWear)
|
|
targetSdkVersion(Config.Android.targetSdk)
|
|
|
|
versionName = System.getenv("VERSION") ?: "LOCAL"
|
|
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments(mapOf("room.incremental" to "true"))
|
|
}
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
lintOptions {
|
|
disable("MissingTranslation")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
|
|
implementation(Config.Dependency.Google.material)
|
|
|
|
implementation(Config.Dependency.AndroidX.wear)
|
|
implementation(Config.Dependency.Google.wearableSupport)
|
|
compileOnly(Config.Dependency.Google.wearable)
|
|
}
|