home-assistant-android/wear/build.gradle.kts

144 lines
4.7 KiB
Plaintext
Raw Normal View History

plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
id("com.github.triplet.play")
kotlin("kapt")
id("dagger.hilt.android.plugin")
id("com.google.gms.google-services")
}
android {
namespace = "io.homeassistant.companion.android"
compileSdk = 33
defaultConfig {
applicationId = "io.homeassistant.companion.android"
minSdk = 26
targetSdk = 32
versionName = project.version.toString()
// 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
compose = true
}
composeOptions {
2023-07-01 01:14:24 +00:00
kotlinCompilerExtensionVersion = "1.4.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") ?: ""
enableV1Signing = true
enableV2Signing = true
}
}
buildTypes {
named("debug").configure {
applicationIdSuffix = ".debug"
}
named("release").configure {
isDebuggable = false
isJniDebuggable = false
signingConfig = signingConfigs.getByName("release")
}
}
kotlinOptions {
jvmTarget = "11"
}
compileOptions {
sourceCompatibility(JavaVersion.VERSION_11)
targetCompatibility(JavaVersion.VERSION_11)
}
lint {
disable += "MissingTranslation"
}
kapt {
correctErrorTypes = true
}
}
play {
serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json"))
2023-01-12 03:44:30 +00:00
track.set("internal")
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE)
2021-10-14 03:46:49 +00:00
commit.set(false)
}
dependencies {
implementation(project(":common"))
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.8.22")
2023-07-01 01:14:24 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.7.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.7.2")
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.wear:wear:1.2.0")
implementation("androidx.core:core-ktx:1.10.1")
2022-09-24 20:04:58 +00:00
implementation("com.google.android.gms:play-services-wearable:18.0.0")
implementation("androidx.wear:wear-input:1.2.0-alpha02")
implementation("androidx.wear:wear-remote-interactions:1.0.0")
implementation("androidx.wear:wear-phone-interactions:1.0.1")
Hilt Dependency Update (#3681) * Bump com.google.dagger:hilt-android-gradle-plugin from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android-gradle-plugin](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-gradle-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump com.google.dagger:hilt-android-compiler from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android-compiler](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android-compiler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump com.google.dagger:hilt-android from 2.46.1 to 2.47 Bumps [com.google.dagger:hilt-android](https://github.com/google/dagger) from 2.46.1 to 2.47. - [Release notes](https://github.com/google/dagger/releases) - [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/dagger/compare/dagger-2.46.1...dagger-2.47) --- updated-dependencies: - dependency-name: com.google.dagger:hilt-android dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 19:35:11 +00:00
implementation("com.google.dagger:hilt-android:2.47")
kapt("com.google.dagger:hilt-android-compiler:2.47")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.5")
implementation("com.squareup.okhttp3:okhttp:4.11.0")
2021-10-20 21:52:58 +00:00
implementation("com.mikepenz:iconics-core:5.4.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.mikepenz:community-material-typeface:7.0.96.0-kotlin@aar")
implementation("com.mikepenz:iconics-compose:5.4.0")
2023-07-01 01:14:24 +00:00
implementation("androidx.activity:activity-ktx:1.7.2")
implementation("androidx.activity:activity-compose:1.7.2")
2023-07-27 19:42:50 +00:00
implementation("androidx.compose.compiler:compiler:1.5.1")
2023-07-01 01:14:24 +00:00
implementation(platform("androidx.compose:compose-bom:2023.06.01"))
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.ui:ui-tooling")
implementation("androidx.wear.compose:compose-foundation:1.1.2")
implementation("androidx.wear.compose:compose-material:1.1.2")
implementation("androidx.wear.compose:compose-navigation:1.1.2")
implementation("com.google.guava:guava:32.1.1-android")
2022-09-24 20:04:58 +00:00
implementation("androidx.wear.tiles:tiles:1.1.0")
implementation("androidx.wear.tiles:tiles-material:1.1.0")
implementation("androidx.wear.watchface:watchface-complications-data-source-ktx:1.1.1")
2023-07-27 19:42:50 +00:00
implementation("androidx.health:health-services-client:1.0.0-rc01")
implementation(platform("com.google.firebase:firebase-bom:32.1.0"))
implementation("com.google.firebase:firebase-messaging")
}
// https://github.com/google/guava/releases/tag/v32.1.0: Reporting dependencies that overlap with Guava
configurations.all {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.guava:listenablefuture") {
select("com.google.guava:guava:0")
}
}