Repository navigation
Sync with Dropbox on Android - #373
Merged
Merged
Conversation
Android signs in to Dropbox in a Custom Tab that comes back to com.hivepaas.shellwing://auth, the redirect OneDrive already uses and the Dropbox app already registers. dropbox::AppSignIn builds the authorize address (PKCE, offline token) and checks the state when the address comes back; the mobile crate wraps it as DropboxSignIn and gains Place::Dropbox, so the phone keeps the account and its id as the desktop does, and Stop syncing revokes the token. OneDrive.kt becomes SignInTab.kt, shared by both: one sign-in waits at a time, and whichever was started takes the address. Signing in to another account than this vault's last asks first, as on the desktop. iOS only names the new place for now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tiendc
added a commit
that referenced
this pull request
Dec 5, 2026
Dropbox was on the desktop and Android; the iPhone and iPad have it now. Settings > Sync > Dropbox signs in through SwiftUI's webAuthenticationSession, coming back to com.hivepaas.shellwing://auth as OneDrive's does, with the mobile crate's DropboxSignIn (#373). Another account than this vault's of before is asked about first. Joining a vault there offers Start over here: Dropbox's app folder is the app's own. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Android can now sync the vault with Dropbox. On the phone, Settings › Sync › Dropbox comes after iCloud, as on the desktop (#372).
Sign-in. It opens a Custom Tab that comes back to
com.hivepaas.shellwing://auth. That is OneDrive's redirect, already registered on the Dropbox app; the authorize page was measured to accept it in the spike.dropbox::AppSignInbuilds the authorize address (PKCE,token_access_type=offline).state, turnsaccess_deniedinto "not allowed", and exchanges the code.query_valuemoved toserver.rs, so OneDrive and Dropbox share it.Mobile crate.
DropboxSignInobject andPlace::Dropbox { account, account_id }, mapped to and from the config'sDropboxSync.connect_syncrecords the account id, as the desktop does.dropbox_account_before()is how the app asks before switching accounts.Android.
OneDrive.kt→SignInTab.kt, shared by Microsoft and Dropbox. Only one sign-in waits at a time; whichever was started takes the address.iOS. Only names the new place in
placeName, so the exhaustive switch still compiles. The sign-in is left for the Mac session.Docs:
docs/configuration.md,docs/design/sync.md(Dropbox step 4) andandroid/README.md.Tested
signing_in_on_a_phone_comes_back_to_the_app(fake Dropbox: the state check, the redirect sent to the token endpoint). Remote has 116 tests; mobile and config tests pass.make lint, clippy--features ui-tests, and clippy foraarch64-linux-android(core and mobile, as CI runs it).make androidbuilds.🤖 Generated with Claude Code