plugins { id("com.android.application") id("kotlin-android") id("kotlin-kapt") } android { compileSdk = 30 defaultConfig { applicationId = "io.homeassistant.companion.android" minSdk = 23 targetSdk = 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_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") } } 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.1.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") }