home-assistant-android/wear/build.gradle.kts
dependabot[bot] 9bb9513f9f
Bump kotlin from 1.9.24 to 2.0.0 (#4414)
* ---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.jetbrains.kotlin.android
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.jetbrains.kotlin.kapt
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.jetbrains.kotlin.plugin.parcelize
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ksp

* Use Jetbrains Compose compiler

* Remove deprecated duplicate config

* ktlint

* Remove old Compose compiler version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
2024-06-03 08:22:03 -07:00

123 lines
3.7 KiB
Plaintext

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.ksp)
alias(libs.plugins.hilt)
alias(libs.plugins.google.services)
alias(libs.plugins.compose.compiler)
}
android {
namespace = "io.homeassistant.companion.android"
compileSdk = libs.versions.androidSdk.compile.get().toInt()
defaultConfig {
applicationId = "io.homeassistant.companion.android"
minSdk = libs.versions.androidSdk.wear.min.get().toInt()
targetSdk = libs.versions.androidSdk.wear.target.get().toInt()
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
}
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}
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 = libs.versions.javaVersion.get()
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility(libs.versions.javaVersion.get())
targetCompatibility(libs.versions.javaVersion.get())
}
lint {
disable += "MissingTranslation"
}
}
dependencies {
implementation(project(":common"))
coreLibraryDesugaring(libs.tools.desugar.jdk)
implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.guava)
implementation(libs.kotlinx.coroutines.play.services)
implementation(libs.material)
implementation(libs.wear)
implementation(libs.core.ktx)
implementation(libs.core.splashscreen)
implementation(libs.play.services.wearable)
implementation(libs.wear.input)
implementation(libs.wear.remote.interactions)
implementation(libs.wear.phone.interactions)
implementation(libs.hilt.android)
ksp(libs.hilt.android.compiler)
implementation(libs.jackson.module.kotlin)
implementation(libs.okhttp)
implementation(libs.iconics.core)
implementation(libs.appcompat)
implementation(libs.community.material.typeface)
implementation(libs.iconics.compose)
implementation(libs.activity.ktx)
implementation(libs.activity.compose)
implementation(platform(libs.compose.bom))
implementation(libs.compose.foundation)
implementation(libs.compose.material.icons.core)
implementation(libs.compose.material.icons.extended)
implementation(libs.compose.uiTooling)
implementation(libs.wear.compose.foundation)
implementation(libs.wear.compose.material)
implementation(libs.wear.compose.navigation)
implementation(libs.wear.tooling)
implementation(libs.bundles.horologist)
implementation(libs.guava)
implementation(libs.bundles.wear.tiles)
implementation(libs.androidx.watchface.complications.data.source.ktx)
implementation(libs.androidx.health.services.client)
implementation(platform(libs.firebase.bom))
implementation(libs.firebase.messaging)
}