wip: tsc-android crate skeleton

This commit is contained in:
Claude committed 2026-09-26 10:05:43 +00:00
1 parent 9a485e324f
commit 0b939118c2
5 files changed
+232 -15

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
[package]
name = "tsc-android"
version = "0.1.0"
description = "Android app library: native activity entry point, engine kept for the whole process, JNI bridge to the Kotlin services (voice, screen share), Android Keystore secrets."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish.workspace = true
[lib]
name = "tsc_android"
# cdylib: libtsc_android.so, loaded by the app's NativeActivity. rlib: tests
# and type checks on the host.
crate-type = ["cdylib", "rlib"]
[dependencies]
tokio = { version = "1.53.1", features = ["rt-multi-thread", "macros", "sync", "time"] }
tracing = "0.1.44"
tsc-core = { path = "../tsc-core" }
tsc-media = { path = "../tsc-media", default-features = false }
tsc-model = { path = "../tsc-model" }
tsc-store = { path = "../tsc-store" }
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.22.4"
rustls-platform-verifier = "0.7.1"
slint = { version = "1.18", features = ["backend-android-activity-06"] }
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
tsc-ui = { path = "../tsc-ui" }
[lints]
workspace = true
+1
View File
@@ -0,0 +1 @@
//! placeholder
+6 -1
View File
@@ -28,9 +28,14 @@ tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
tsc-core = { path = "../tsc-core" }
tsc-model = { path = "../tsc-model" }
tsc-query = { path = "../tsc-query" }
tsc-store = { path = "../tsc-store", features = ["keyring"] }
tsc-store = { path = "../tsc-store" }
tsclientlib = { path = "../proto/tsclientlib" }
# The keyring crate has no Android backend; the Android app passes its own
# `Secrets` (Android Keystore) to `run_with_engine`.
[target.'cfg(not(target_os = "android"))'.dependencies]
tsc-store = { path = "../tsc-store", features = ["keyring"] }
[build-dependencies]
slint-build = "1.18"