fc39098ff5
ClippyAuto CI / build (push) Has been cancelled
- ClippyFCMService: Receives FCM data messages, routes to TTS pipeline - FCMTokenManager: Stores FCM token in Matrix account data for n8n - Enable Google Services plugin and Firebase dependencies - Add FCM service to AndroidManifest.xml - Register FCM token on app init in ClippySession and SetupActivity Token stored at: /_matrix/client/v3/user/@clippyauto:hobbs.farm/account_data/farm.hobbs.clippy.fcm_token Co-authored-by: Spirit <spirit@hobbs.farm>
73 lines
2.1 KiB
Kotlin
73 lines
2.1 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
id("com.google.gms.google-services")
|
|
}
|
|
|
|
android {
|
|
namespace = "farm.hobbs.clippyauto"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "farm.hobbs.clippyauto"
|
|
minSdk = 28
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "0.1.0-mvp"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Android Auto
|
|
implementation("androidx.car.app:app:1.7.0")
|
|
implementation("androidx.car.app:app-projected:1.7.0")
|
|
|
|
// Firebase Cloud Messaging
|
|
implementation(platform("com.google.firebase:firebase-bom:33.1.0"))
|
|
implementation("com.google.firebase:firebase-messaging-ktx")
|
|
|
|
// HTTP client for Matrix REST API
|
|
implementation("io.ktor:ktor-client-okhttp:3.0.3")
|
|
implementation("io.ktor:ktor-client-content-negotiation:3.0.3")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:3.0.3")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.7.3")
|
|
|
|
// Lifecycle
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
implementation("androidx.lifecycle:lifecycle-service:2.8.7")
|
|
|
|
// DataStore (settings)
|
|
implementation("androidx.datastore:datastore-preferences:1.1.3")
|
|
|
|
// Security (Keystore wrapper)
|
|
implementation("androidx.security:security-crypto:1.1.0-alpha06")
|
|
|
|
// Core
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
|
|
}
|