Skip to content
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

sync connect #1062

Merged
merged 22 commits into from
Mar 31, 2023
Merged

sync connect #1062

merged 22 commits into from
Mar 31, 2023

Conversation

brindy
Copy link
Contributor

@brindy brindy commented Mar 28, 2023

Task/Issue URL: https://app.asana.com/0/0/1204266236802307/f
Tech Design URL:
CC:

Description:

Add sync connect flow.

Steps to test this PR:
See duckduckgo/BrowserServicesKit#281 for details.


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@brindy brindy marked this pull request as ready for review March 30, 2023 14:29
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flow works great but I’ve found that closing the “Sync New Device” dialog by clicking “Cancel” button doesn’t stop the polling.

DuckDuckGo/Preferences/Model/SyncPreferences.swift Outdated Show resolved Hide resolved
DuckDuckGo/Preferences/Model/SyncPreferences.swift Outdated Show resolved Hide resolved
@ayoy ayoy assigned brindy and unassigned ayoy Mar 30, 2023
@brindy brindy requested a review from a team as a code owner March 31, 2023 11:23
@brindy brindy requested review from jaceklyp and removed request for a team and jaceklyp March 31, 2023 11:23
@brindy brindy requested a review from ayoy March 31, 2023 12:51
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, works great now! 👏

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
brindy added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Mar 31, 2023
Required:

Task/Issue URL: https://app.asana.com/0/0/1204266236802307/f
iOS PR: duckduckgo/iOS#1604
macOS PR: duckduckgo/macos-browser#1062
What kind of version bump will this require?: Major

Optional:

Tech Design URL:
CC:

Description:

Add sync connect flow.

Steps to test this PR:

iOS connect from macOS

Create an account on an iOS device or simulator
Launch macOS, remove existing account if needed
Begin turn on sync flow and continue to sync with another device - a QR code should be visible
On iOS tap on Scan QR Code
Using Manually Enter Code paste in the code
Wait a few seconds and the account should appear on macOS
Repeat the test using the Camera
iOS connect from iOS

Create an account on device A
Delete any existing account from device B
On Device B turn on sync and continue through to sync another device
Tap show QR Code
Copy the code
On Device A tap on Scan QR Code
Paste it in as in the macOS flow
After a few seconds the account should be connected
Repeat with Camera
OS Testing:

 iOS 14
 iOS 15
 iOS 16
 macOS 10.15
 macOS 11
 macOS 12
@brindy brindy merged commit f2dfe00 into develop Mar 31, 2023
@brindy brindy deleted the brindy/sync-connect branch March 31, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants