mirror of
https://github.com/home-assistant/android
synced 2024-09-06 17:23:32 +00:00
![Daniel Shokouhi](/assets/img/avatar_default.png)
* Initial commit of wear OS notifications * Update to allow message and title * Move constants to object to reduce imports * Split up logic to match phone app * Update readme and set websocket to false for wear OS * Bump firebase BOM
135 lines
4.4 KiB
Plaintext
135 lines
4.4 KiB
Plaintext
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 = System.getenv("VERSION") ?: "LOCAL"
|
|
// 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 {
|
|
kotlinCompilerExtensionVersion = "1.3.2"
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
}
|
|
}
|
|
|
|
play {
|
|
serviceAccountCredentials.set(file("playStorePublishServiceCredentialsFile.json"))
|
|
track.set("internal")
|
|
resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.IGNORE)
|
|
commit.set(false)
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":common"))
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.6.4")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.4")
|
|
|
|
implementation("com.google.android.material:material:1.7.0")
|
|
|
|
implementation("androidx.wear:wear:1.2.0")
|
|
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")
|
|
|
|
implementation("com.google.dagger:hilt-android:2.44.2")
|
|
kapt("com.google.dagger:hilt-android-compiler:2.44.2")
|
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
|
|
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
|
|
|
implementation("com.mikepenz:iconics-core:5.4.0")
|
|
implementation("androidx.appcompat:appcompat:1.5.1")
|
|
implementation("com.mikepenz:community-material-typeface:7.0.96.0-kotlin@aar")
|
|
implementation("com.mikepenz:iconics-compose:5.4.0")
|
|
|
|
implementation("androidx.activity:activity-ktx:1.6.1")
|
|
implementation("androidx.activity:activity-compose:1.6.1")
|
|
implementation("androidx.compose.compiler:compiler:1.3.2")
|
|
implementation(platform("androidx.compose:compose-bom:2022.10.00"))
|
|
implementation("androidx.compose.foundation:foundation")
|
|
implementation("androidx.compose.ui:ui-tooling")
|
|
implementation("androidx.wear.compose:compose-foundation:1.1.1")
|
|
implementation("androidx.wear.compose:compose-material:1.1.1")
|
|
implementation("androidx.wear.compose:compose-navigation:1.1.1")
|
|
|
|
implementation("com.google.guava:guava:31.1-android")
|
|
implementation("androidx.wear.tiles:tiles:1.1.0")
|
|
|
|
implementation("androidx.wear.watchface:watchface-complications-data-source-ktx:1.1.1")
|
|
|
|
implementation("androidx.health:health-services-client:1.0.0-beta02")
|
|
|
|
implementation(platform("com.google.firebase:firebase-bom:31.1.1"))
|
|
implementation("com.google.firebase:firebase-messaging")
|
|
}
|