plugins { id("com.android.application") id("kotlin-android") id("kotlin-kapt") } android { compileSdkVersion(30) defaultConfig { applicationId = "io.homeassistant.companion.android" minSdkVersion(23) targetSdkVersion(30) 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("com.google.android.material:material:1.4.0") implementation("androidx.wear:wear:1.1.0") implementation("com.google.android.support:wearable:2.8.1") compileOnly("com.google.android.wearable:wearable:2.8.1") }