Skip to content

armgit / andee

Public Imported from GitHub
0

Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。

1.2 KB
Raw Blame
// Platform-neutral Kotlin shared by the Android app and the desktop app: the
// brain loop, the tool vocabulary, the turn guards, voice protocols, the wake
// DSP and the ball's model. Nothing here may import android.* — that is the
// whole point of the module, and the compiler enforces it because android.jar
// is not on this classpath.
plugins {
    id 'org.jetbrains.kotlin.jvm'
}

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin {
    jvmToolchain(17)
}

compileKotlin {
    kotlinOptions { jvmTarget = '1.8' }
}
compileTestKotlin {
    kotlinOptions { jvmTarget = '1.8' }
}

dependencies {
    // Android ships its own org.json in the framework, and the app must keep
    // using that one (R8 config and behaviour are tuned to it). So core only
    // compiles against it; the desktop app adds the real artifact.
    compileOnly 'org.json:json:20240303'

    // The brain's HTTP client. Same version the app already ships.
    implementation 'com.squareup.okhttp3:okhttp:4.12.0'
    // 火山's binary WebSocket protocol (HuoshanAsr / HuoshanTts).
    implementation 'org.java-websocket:Java-WebSocket:1.5.7'

    testImplementation libs.junit
    testImplementation 'org.json:json:20240303'
}