-
Notifications
You must be signed in to change notification settings - Fork 978
Support rendering URLs inside sync barcodes #5944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c1e559b
to
b3a3796
Compare
a1b61b8
to
4ff8eae
Compare
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/qrcode/SyncBarcodeUrl.kt
Show resolved
Hide resolved
1dc1ad0
to
2ada4fb
Compare
1072477
to
444943d
Compare
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncWithAnotherActivityViewModel.kt
Outdated
Show resolved
Hide resolved
860b063
to
61a59a3
Compare
61a59a3
to
61eaf09
Compare
68e00fa
to
3e35d17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I would like to discuss if possible the responsibility of SyncBarcodeDecorator, and how feasible do you see moving the logic inside SyncAccountRepository. If you are ok and prefer to do it later in the stack, I'm fine with that.
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncConnectViewModel.kt
Outdated
Show resolved
Hide resolved
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/qrcode/SyncBarcodeDecorator.kt
Outdated
Show resolved
Hide resolved
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/qrcode/SyncBarcodeDecorator.kt
Outdated
Show resolved
Hide resolved
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncWithAnotherActivityViewModel.kt
Outdated
Show resolved
Hide resolved
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncWithAnotherActivityViewModel.kt
Outdated
Show resolved
Hide resolved
Will take a look at this and ping back with thoughts |
eb3b7ad
to
e832503
Compare
488f371
to
9d657cb
Compare
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/SyncInternalSettingsViewModel.kt
Outdated
Show resolved
Hide resolved
sync/sync-impl/src/test/java/com/duckduckgo/sync/impl/ui/qrcode/SyncBarcodeUrlDecoratorTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks for the addressing the comments 👍
9d657cb
to
65d96d9
Compare
Task/Issue URL: https://app.asana.com/1/137249556945/project/608920331025315/task/1209921184459923?focus=true
Description
Allows sync setup codes which appear in the QR barcode to be URL-based.
Steps to test this PR
Get two devices (or one device + one emulator) as you’ll need to scan barcodes.
Feature disabled, everything works as normal
Feature enabled
syncSetupBarcodeIsUrlBased
feature flag on a device. Note, we expect the URL to be in the barcode but the other device won’t be able to scan it successfully (implemented in a higher branch on this stack) so don’t worry about that part.