-
Notifications
You must be signed in to change notification settings - Fork 975
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
} | ||
|
||
companion object { | ||
const val URL_BASE = "https://duckduckgo.com/sync/pairing/#" |
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.
this might need to change in a later PR because we’ll need to be able to access this from app
module most likely. good for now though, just FYI it’ll probably change.
1dc1ad0
to
2ada4fb
Compare
1072477
to
444943d
Compare
barcodeContents?.let { code -> | ||
clipboard.copyToClipboard(code) | ||
barcodeContents?.let { contents -> | ||
clipboard.copyToClipboard(contents.underlyingCode) |
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.
want to make sure we use the underlying code and not the URL
f689aaf
to
860b063
Compare
860b063
to
61a59a3
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.
ℹ️ Suggested logcat filter:
package:com.duckduckgo.mobile.android.debug message~:"code to include”
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.