android: show the chain daemon's sync height on the wallet status line #130
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_c389ae1f-onionwire-android-show-sync-h-t-on-the-w"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The phone half of the SDK change in #129 (rust-dev parent
t_bd2e2cd0).Base is the parent branch, not
main. The card's step 2:git rev-list --count origin/main..origin/<parent>is 1, soWalletChildStatuscarriesheight/target_heightonly there and Kotlin cannot compile against them onmain. This PR should be merged after #129 (or rebased ontomainonce it lands).What it does
WalletChildInputgainsheight/targetHeightasULong— the generateduniffi.onionwire_sdk.WalletChildStatusdeclareskotlin.ULongfor both, checked against the generated bindings rather than assumed. Defaults are0uL, so every existing fixture is byte-identical.walletChildLineappends· sync h/tafter the source (and after thenodesegment when the source is in-process), before the error em-dash, and only when either value is non-zero:0/0is unknown — the last probe failed or the daemon is not up — so the segment is absent rather than printed as0%. No percent, no progress bar, no ETA.WalletScreen.toInput()copies both fields field-for-field. The status row's screen-reader sentence moved towalletChildStatusDescription, which carries the samesync h/tthe eye reads. The row is still oneText— no second widget.android/CUPRATE_DAEMON.mdno longer claimsWalletChildStatushas no height field.Evidence
:app:testDebugUnitTest— 114 tests, 0 failures. New: the no-height case (asserts the· syncsegment is absent, sincesyncingis a phase word),sync 1160/3090939,sync 4549/0with no%, height-before-failure-text, and the spoken row. The locked strings (off · receive-only,connecting · local node,ready · remote onion daemon,· node,CUPRATE_PREPRODUCTION_WARNING) are untouched and their assertions still pass.Not device-proven; no release cut.
android-cibuilds the APK on this PR.Merge order matters here: this PR's base is
onionwire/t_bd2e2cd0-onionwire-wallet-show-daemon-sync-height(the rust-dev parent, #129), becauseWalletChildStatus.height/target_heightexist only on that branch and Kotlin cannot compile against them onmain.main), or merge #129 and immediately retarget/rebase this PR ontomain.main, so the merge would land on the stale branch andmainwould keepWalletChildInputwithout the two fields — the screen would compile but the status line would never showsync h/t.Green evidence for head
3bef3429:android-cirun 507 (job succeeded,BUILD SUCCESSFUL in 9m 36s,:app:assembleRelease+:sdk:verifyDynamicLibc), APKdist/onionwire-0.1.0-android-arm64-v8a.apk34,118,706 B, sha256bb6ec205f91b367ec873ffcd0c29c903f15645e7a401cf942f78615c13b44bb1,lib/arm64-v8a/libonionwire_sdk.so54,901,488 B,target_max_memory×5 in the shipped.so. JVM suite:app:testDebugUnitTest: 114 tests, 0 failures.