feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
[package]
|
|
|
|
|
name = "onionwire-sdk"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2024"
|
2026-10-08 17:41:22 -04:00
|
|
|
# Follows the root crate. The SDK builds onionwire with `default-features =
|
|
|
|
|
# false` (no `cuprate-daemon`), which would still compile on 1.91, but cargo
|
|
|
|
|
# checks the path dependency's `rust-version` anyway, and that floor is 1.98.
|
|
|
|
|
rust-version = "1.98"
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
description = "OnionWire Android/Kotlin SDK: in-process Arti onion transport, Noise IK, identity = ed25519 pubkey."
|
|
|
|
|
license = "MIT"
|
|
|
|
|
publish = false
|
|
|
|
|
|
2026-09-17 20:48:05 -04:00
|
|
|
# Standalone workspace on purpose: the SDK carries its own lockfile and its own
|
|
|
|
|
# crate set (Android: `static-sqlite`, rustls TLS), so it path-depends on the
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
# root package without joining its feature graph.
|
|
|
|
|
[workspace]
|
2026-09-13 15:27:57 -04:00
|
|
|
resolver = "2"
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
name = "onionwire_sdk"
|
|
|
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
|
|
sdk: expose the on-device Cuprate chain source (choice, lifecycle, node status)
ChainChoice gains InProcessCuprate, the SDK passes the core's cuprate-daemon
feature through as its own, and an empty monerod_datadir for that kind resolves
to $ONIONWIRE_HOME/chain so Kotlin never invents a path. wallet_status now
carries chain_in_process / node_available / node_state beside the core's five
state words; no second state machine, no timer, no env var.
start/stop stay the core's pass-through: one call launches the node and the
wallet child, one stops both, both idempotent.
Replayed onto main (25e029e): PR #111 was merged into the core branch
onionwire/t_04975420-cuprate-land-the-in-process-chain-source, not main, so
main had only the core half (from PR #110). This is the same tree change with
no core commits replayed.
2026-09-18 14:34:07 -04:00
|
|
|
[features]
|
|
|
|
|
default = []
|
|
|
|
|
|
|
|
|
|
# The in-process Monero chain daemon (Cuprate). Off by default: it pulls a
|
|
|
|
|
# pinned `cuprated` git revision, ~152 crates and a C++ RandomX cross-build
|
|
|
|
|
# (+11.8 MiB on an aarch64 release binary). Without it the SDK can still store
|
|
|
|
|
# and read back a `ChainChoice.InProcessCuprate` setting — starting one fails
|
|
|
|
|
# with the core's "rebuild with --features cuprate-daemon" message.
|
|
|
|
|
cuprate-daemon = ["onionwire/cuprate-daemon"]
|
|
|
|
|
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
[dependencies]
|
|
|
|
|
onionwire = { path = "../..", default-features = false, features = ["rustls"] }
|
|
|
|
|
# `static-sqlite`: Android has no system libsqlite3 to link against.
|
|
|
|
|
arti-client = { version = "0.46", default-features = false, features = [
|
|
|
|
|
"tokio",
|
|
|
|
|
"onion-service-client",
|
|
|
|
|
"onion-service-service",
|
|
|
|
|
"compression",
|
|
|
|
|
"rustls",
|
|
|
|
|
"static-sqlite",
|
|
|
|
|
] }
|
|
|
|
|
tokio = { version = "1", features = ["rt-multi-thread", "time"] }
|
2026-09-10 22:02:02 -04:00
|
|
|
# rustls 0.23 resolves its provider from its OWN `ring` / `aws-lc-rs` features,
|
|
|
|
|
# never from whichever crypto crates happen to be linked in the graph. Arti
|
|
|
|
|
# pulls rustls in through `tor-rtcompat` with `default-features = false`, so
|
2026-09-10 22:03:40 -04:00
|
|
|
# without this line rustls compiles with zero providers and the first TLS config
|
|
|
|
|
# built from the process default fails at runtime — the "Failed to start /
|
|
|
|
|
# Could not automatically determine the process-level CryptoProvider" screen.
|
|
|
|
|
#
|
|
|
|
|
# `ring`, not `aws-lc-rs`: aws-lc-rs needs CMake and a C toolchain for the NDK
|
|
|
|
|
# and fights the Android cross-compile. The `ring` crate was already in the
|
|
|
|
|
# graph (via `snow`, for Noise) but that is a different thing entirely.
|
|
|
|
|
rustls = { version = "0.23", default-features = false, features = ["ring"] }
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
uniffi = { version = "0.32", features = ["cli", "tokio"] }
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "uniffi-bindgen"
|
|
|
|
|
path = "src/bin/uniffi-bindgen.rs"
|