-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jjackson/crash-report-cohort-support
# By Michal Smaga (10) and others # Via Michal Smaga (4) and others * main: (66 commits) DuckPlayer: Don’t open new tabs or DuckPlayer at launch when in alwaysAsk mode (#3738) Fix BrowsingMenu layout (#3712) Remove ESLint config files (#3739) Release 7.150.0-1 (#3742) An additional protective in case users try to access the passwords list via the extension, before launching the app Ensure migration has occurred before accessing vault Populate credential store if user has enabled before launching app Update to target main app Ensure migration has occurred before accessing vault Release 7.149.1-0 (#3740) An additional protective in case users try to access the passwords list via the extension, before launching the app Ensure migration has occurred before accessing vault Populate credential store if user has enabled before launching app Update to target main app Ensure migration has occurred before accessing vault Bugfix: Fix Youtube Internal links when 'Watching on Youtube' from Duck Player (#3733) point to BSK branch (#3732) Remove duck.ai 10min timer (#3731) Release 7.150.0-0 (#3729) Update autoconsent to v12.3.0 (#3728) ... # Conflicts: # Core/PixelEvent.swift # DuckDuckGo.xcodeproj/project.pbxproj # DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
- Loading branch information
Showing
582 changed files
with
21,231 additions
and
9,142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
.maestro/onboarding_tests/01_control_group_onboarding.yaml
This file was deleted.
Oops, something went wrong.
This file contains 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
33 changes: 0 additions & 33 deletions
33
.maestro/onboarding_tests/02_control_group_hide_onboarding.yaml
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
.maestro/onboarding_tests/02_onboarding_add_to_dock_intro.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- onboarding | ||
|
||
--- | ||
|
||
# Set up | ||
- runFlow: | ||
file: ../shared/setup.yaml | ||
env: | ||
ONBOARDING_COMPLETED: "false" | ||
APP_VARIANT: "mk" | ||
|
||
# Handle Search Suggestions | ||
- assertVisible: "Ready to get started?\nTry a search!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle First Dax Dialog | ||
- assertVisible: "That’s DuckDuckGo Search. Private. Fast. Fewer ads." | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
|
||
# Handle Site Suggestions | ||
- assertVisible: "Next, try visiting a site!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle Privacy Dashboard | ||
- assertVisible: "Got It!" | ||
- tapOn: | ||
point: "6%,10%" # Shield icon. | ||
- assertVisible: | ||
text: "View Tracker Companies" | ||
- assertVisible: | ||
text: "Done" | ||
- tapOn: "Done" | ||
|
||
# Handle Fire Message | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
- assertVisible: "Instantly clear your browsing activity with the Fire Button.\n\nGive it a try! 🔥" | ||
|
||
# Handle Fire Button | ||
- assertVisible: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
|
||
# Handle End of Journey Dialog | ||
- assertVisible: "You’ve got this!" | ||
- assertVisible: "High five!" | ||
- tapOn: "High five!" | ||
|
||
|
54 changes: 54 additions & 0 deletions
54
.maestro/onboarding_tests/03_onboarding_add_to_dock_contextual.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- onboarding | ||
|
||
--- | ||
|
||
# Set up | ||
- runFlow: | ||
file: ../shared/setup.yaml | ||
env: | ||
ONBOARDING_COMPLETED: "false" | ||
APP_VARIANT: "mo" | ||
|
||
# Handle Search Suggestions | ||
- assertVisible: "Ready to get started?\nTry a search!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle First Dax Dialog | ||
- assertVisible: "That’s DuckDuckGo Search. Private. Fast. Fewer ads." | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
|
||
# Handle Site Suggestions | ||
- assertVisible: "Next, try visiting a site!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle Privacy Dashboard | ||
- assertVisible: "Got It!" | ||
- tapOn: | ||
point: "6%,10%" # Shield icon. | ||
- assertVisible: | ||
text: "View Tracker Companies" | ||
- assertVisible: | ||
text: "Done" | ||
- tapOn: "Done" | ||
|
||
# Handle Fire Message | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
- assertVisible: "Instantly clear your browsing activity with the Fire Button.\n\nGive it a try! 🔥" | ||
|
||
# Handle Fire Button | ||
- assertVisible: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
|
||
# Handle End of Journey Dialog | ||
- assertVisible: "Add me to your Dock!" | ||
- assertVisible: "Show Me How" | ||
- tapOn: "Start Browsing" | ||
|
||
|
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
AutofillCredentialProvider/AutofillCredentialProvider.entitlements
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.authentication-services.autofill-credential-provider</key> | ||
<true/> | ||
<key>com.apple.security.application-groups</key> | ||
<array> | ||
<string>$(GROUP_ID_PREFIX).vault</string> | ||
<string>$(GROUP_ID_PREFIX).bookmarks</string> | ||
</array> | ||
<key>keychain-access-groups</key> | ||
<array> | ||
<string>$(AppIdentifierPrefix)$(APP_ID)</string> | ||
<string>$(AppIdentifierPrefix)$(VAULT_APP_GROUP)</string> | ||
</array> | ||
</dict> | ||
</plist> |
18 changes: 18 additions & 0 deletions
18
AutofillCredentialProvider/AutofillCredentialProviderAlpha.entitlements
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.developer.authentication-services.autofill-credential-provider</key> | ||
<true/> | ||
<key>com.apple.security.application-groups</key> | ||
<array> | ||
<string>$(GROUP_ID_PREFIX).vault</string> | ||
<string>$(GROUP_ID_PREFIX).bookmarks</string> | ||
</array> | ||
<key>keychain-access-groups</key> | ||
<array> | ||
<string>$(AppIdentifierPrefix)$(APP_ID)</string> | ||
<string>$(AppIdentifierPrefix)$(VAULT_APP_GROUP)</string> | ||
</array> | ||
</dict> | ||
</plist> |
74 changes: 74 additions & 0 deletions
74
...der/CredentialProvider/CredentialProviderActivation/CredentialProviderActivatedView.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// | ||
// CredentialProviderActivatedView.swift | ||
// DuckDuckGo | ||
// | ||
// Copyright © 2024 DuckDuckGo. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
import SwiftUI | ||
import DesignResourcesKit | ||
import DuckUI | ||
|
||
struct CredentialProviderActivatedView: View { | ||
|
||
let viewModel: CredentialProviderActivatedViewModel | ||
@State private var imageAppeared = false | ||
|
||
var body: some View { | ||
NavigationView { | ||
|
||
VStack(spacing: 0) { | ||
|
||
Image(.passwordsDDG96X96) | ||
.padding(.top, 48) | ||
.scaleEffect(imageAppeared ? 1 : 0.7) | ||
.animation( | ||
.interpolatingSpring(stiffness: 170, damping: 10) | ||
.delay(0.1), | ||
value: imageAppeared | ||
) | ||
.onAppear { | ||
imageAppeared = true | ||
} | ||
|
||
Text(UserText.credentialProviderActivatedTitle) | ||
.daxTitle2() | ||
.foregroundColor(Color(designSystemColor: .textPrimary)) | ||
.padding(.top, 16) | ||
.multilineTextAlignment(.center) | ||
|
||
Spacer() | ||
|
||
Button { | ||
viewModel.launchDDGApp() | ||
} label: { | ||
Text(UserText.credentialProviderActivatedButton) | ||
} | ||
.buttonStyle(PrimaryButtonStyle()) | ||
.padding(.bottom, 12) | ||
|
||
} | ||
.padding(.horizontal, 24) | ||
.navigationBarItems(trailing: Button(UserText.actionDone) { | ||
viewModel.dismiss() | ||
}) | ||
} | ||
} | ||
|
||
} | ||
|
||
#Preview { | ||
CredentialProviderActivatedView(viewModel: CredentialProviderActivatedViewModel()) | ||
} |
Oops, something went wrong.