diff --git a/DuckDuckGo/SettingsViewController.swift b/DuckDuckGo/SettingsViewController.swift index 673a4da738..4b94d1e780 100644 --- a/DuckDuckGo/SettingsViewController.swift +++ b/DuckDuckGo/SettingsViewController.swift @@ -127,7 +127,7 @@ class SettingsViewController: UITableViewController { private lazy var shouldShowNetPCell: Bool = { #if NETWORK_PROTECTION if #available(iOS 15, *) { - return featureFlagger.isFeatureOn(.networkProtection) + return true // featureFlagger.isFeatureOn(.networkProtection) } else { return false } @@ -421,14 +421,20 @@ class SettingsViewController: UITableViewController { #if NETWORK_PROTECTION @available(iOS 15, *) private func showNetP() { - // This will be tidied up as part of https://app.asana.com/0/0/1205084446087078/f - let rootViewController = NetworkProtectionRootViewController { [weak self] in - self?.navigationController?.popViewController(animated: true) - let newRootViewController = NetworkProtectionRootViewController() - self?.pushNetP(newRootViewController) + if NetworkProtectionKeychainTokenStore().isFeatureActivated { + // This will be tidied up as part of https://app.asana.com/0/0/1205084446087078/f + let rootViewController = NetworkProtectionRootViewController { [weak self] in + self?.navigationController?.popViewController(animated: true) + let newRootViewController = NetworkProtectionRootViewController() + self?.pushNetP(newRootViewController) + } + + pushNetP(rootViewController) + } else { + navigationController?.pushViewController(VPNWaitlistViewController(nibName: nil, bundle: nil), animated: true) } - pushNetP(rootViewController) } + @available(iOS 15, *) private func pushNetP(_ rootViewController: NetworkProtectionRootViewController) { navigationController?.pushViewController( diff --git a/DuckDuckGo/VPNWaitlist.swift b/DuckDuckGo/VPNWaitlist.swift index 8a180cc2b5..08bfc2857d 100644 --- a/DuckDuckGo/VPNWaitlist.swift +++ b/DuckDuckGo/VPNWaitlist.swift @@ -48,7 +48,8 @@ final class VPNWaitlist: Waitlist { let waitlistStorage: WaitlistStorage let waitlistRequest: WaitlistRequest - init(store: WaitlistStorage, request: WaitlistRequest, + init(store: WaitlistStorage, + request: WaitlistRequest, privacyConfigurationManager: PrivacyConfigurationManaging = ContentBlocking.shared.privacyConfigurationManager) { self.waitlistStorage = store self.waitlistRequest = request diff --git a/DuckDuckGo/VPNWaitlistView.swift b/DuckDuckGo/VPNWaitlistView.swift index 9a7978b725..2ce54050df 100644 --- a/DuckDuckGo/VPNWaitlistView.swift +++ b/DuckDuckGo/VPNWaitlistView.swift @@ -60,9 +60,9 @@ struct VPNWaitlistSignUpView: View { GeometryReader { proxy in ScrollView { VStack(alignment: .center, spacing: 8) { - HeaderView(imageName: "WindowsWaitlistJoinWaitlist", title: UserText.windowsWaitlistTryDuckDuckGoForWindows) + HeaderView(imageName: "WindowsWaitlistJoinWaitlist", title: "Title") - Text(UserText.windowsWaitlistSummary) + Text("Summary") .daxBodyRegular() .foregroundColor(.waitlistTextSecondary) .multilineTextAlignment(.center) @@ -83,29 +83,7 @@ struct VPNWaitlistSignUpView: View { .padding(.top, 14) } - Spacer(minLength: 24) - - Button( - action: { - action(.custom(.openMacBrowserWaitlist)) - }, label: { - Text(UserText.windowsWaitlistMac) - .daxHeadline() - .foregroundColor(.waitlistBlue) - .multilineTextAlignment(.center) - .lineSpacing(5) - } - ) - .padding(.bottom, 12) - .fixedSize(horizontal: false, vertical: true) - - Text(UserText.waitlistPrivacyDisclaimer) - .daxFootnoteRegular() - .foregroundColor(.waitlistTextSecondary) - .multilineTextAlignment(.center) - .lineSpacing(5) - .padding(.bottom, 12) - .fixedSize(horizontal: false, vertical: true) + Spacer() } .padding([.leading, .trailing], 24) .frame(minHeight: proxy.size.height) diff --git a/DuckDuckGo/VPNWaitlistViewController.swift b/DuckDuckGo/VPNWaitlistViewController.swift index dce94851c3..4c9f3baa70 100644 --- a/DuckDuckGo/VPNWaitlistViewController.swift +++ b/DuckDuckGo/VPNWaitlistViewController.swift @@ -40,7 +40,7 @@ final class VPNWaitlistViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - title = "VPN Waitlist" + title = "Network Protection Preview" addHostingControllerToViewHierarchy() diff --git a/LocalPackages/Waitlist/Sources/Waitlist/Network/ProductWaitlistRequest.swift b/LocalPackages/Waitlist/Sources/Waitlist/Network/ProductWaitlistRequest.swift index 5b9bb09df9..63dab2041f 100644 --- a/LocalPackages/Waitlist/Sources/Waitlist/Network/ProductWaitlistRequest.swift +++ b/LocalPackages/Waitlist/Sources/Waitlist/Network/ProductWaitlistRequest.swift @@ -133,7 +133,7 @@ public class ProductWaitlistRequest: WaitlistRequest { private var endpoint: URL { #if DEBUG - return URL(string: "https://quackdev.duckduckgo.com/api/auth/waitlist/")! + return URL(string: "https://quack.duckduckgo.com/api/auth/waitlist/")! #else return URL(string: "https://quack.duckduckgo.com/api/auth/waitlist/")! #endif