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
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-09-14 22:16:24 -04:00
|
|
|
<!-- OnionWire launcher icon (adaptive).
|
|
|
|
|
|
|
|
|
|
The artwork lives in drawable-nodpi/onionwire_app_icon.png as a single
|
|
|
|
|
432x432 full-bleed bitmap: the networked-onion logo at 62% of the canvas
|
|
|
|
|
(inside the 66dp/108dp adaptive-icon safe zone) over a seamless blurred
|
|
|
|
|
backdrop of itself. It is used as the background layer, so the launcher
|
|
|
|
|
mask can crop the outer edge of the artwork without ever clipping the
|
|
|
|
|
logo. The foreground layer is transparent on purpose: the whole icon is
|
|
|
|
|
the bitmap.
|
|
|
|
|
|
|
|
|
|
Do not point android:icon at a bitmap in this directory again. A bitmap
|
|
|
|
|
under mipmap-anydpi-v26 is a *legacy* icon: it is not an adaptive icon, so
|
|
|
|
|
the launcher pads it into the mask with its own plate and it scales wrong
|
|
|
|
|
on high-density screens. -->
|
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
|
|
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
2026-09-14 22:16:24 -04:00
|
|
|
<background android:drawable="@drawable/onionwire_app_icon" />
|
|
|
|
|
<foreground android:drawable="@android:color/transparent" />
|
|
|
|
|
</adaptive-icon>
|