Offline voice assistant for Android: wake word, open apps, directions, calls, texts, and hand-off to the Claude app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MQRbidocjywGyo13fqxmUJ
63 lines
1.4 KiB
Kotlin
Executable File
63 lines
1.4 KiB
Kotlin
Executable File
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "space.bloggin.heyclaude"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "space.bloggin.heyclaude"
|
|
minSdk = 29
|
|
targetSdk = 35
|
|
versionCode = 5
|
|
versionName = "0.2.0"
|
|
ndk {
|
|
abiFilters += listOf("arm64-v8a")
|
|
}
|
|
}
|
|
|
|
// The signing key stays on Elessar and is not in the repo. Without it, release
|
|
// builds come out unsigned and need signing before they'll install.
|
|
val keyFile = file("heyclaude.jks")
|
|
if (keyFile.exists()) {
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = keyFile
|
|
storePassword = "heyclaude"
|
|
keyAlias = "heyclaude"
|
|
keyPassword = "heyclaude"
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
if (keyFile.exists()) signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
|
|
packaging {
|
|
jniLibs {
|
|
useLegacyPackaging = false
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("net.java.dev.jna:jna:5.17.0@aar")
|
|
implementation("com.alphacephei:vosk-android:0.3.75@aar")
|
|
}
|