android: copy the invite with LocalClipboard, not the deprecated LocalClipboardManager #68
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_f495ce39"
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?
androidx.compose.ui.platform.LocalClipboardManageris deprecated in compose ui 1.10, and it was the only warning:app:compileDebugKotlinprinted.ShareInviteScreennow usesLocalClipboard:ClipEntry(ClipData)is the whole surface this compose version ships for plain text —ClipboardExtensions_androidKtonly addsfirstUriOrNull, so the constructor form is used rather than a convenience that does not exist (verified withjavapagainstui-android:1.10.0).Behaviour is unchanged: same invite string, same
copiedflip and label, no new permission (clipboard writes need none), andPasteInviteScreenis untouched.Verification
:app:assembleDebug(arm64-v8a + x86_64) — BUILD SUCCESSFUL, zerow:/e:lines and zero mentions ofInviteScreens.ktin a full--rerun-taskscompile.:app:testDebugUnitTest— 61 tests, 0 failures, 0 errors, 0 skipped.ow35, x86_64, API 35), debug APK reinstalled and driven through uiautomator: Invite → Copy flips the label toCopied(the flip happens after the suspendsetClipEntryreturns) → back → Add → paste into the invite field (input keyevent 279) leaves the field byte-identical to the 346-char string shown on the Invite screen, and Verify decodes it.Both ABIs build; the shipped arm64 slice is unaffected by this change.
Rebased onto current
main(the worktree branched before PR #67 merged), so the diff is this file only.CI
.forgejo/workflows/ci.ymlis Rust-only (src/**,crates/**,tests/**,Cargo.*) andandroid-release.ymlfires on tags, so no CI job covers this PR — it will show no checks. The evidence is the local build/test run and the emulator session described above.