From 117bda1e1f97d5c9714704eb6f97e2d3d12dcf8a Mon Sep 17 00:00:00 2001 From: Brandon-T Date: Tue, 10 Dec 2024 17:39:34 -0500 Subject: [PATCH] [iOS] Remove Third-Party mentions in VPN. Change AppStore to App Store (#26894) * Remove third-party mentions in VPN Smart-Proxy Toggle. * Change "AppStore" to "App Store" for VPN and AI-Chat Receipt Viewer --- ios/brave-ios/Sources/AIChat/AIChatStrings.swift | 4 ++-- .../Sources/BraveStore/Debug/StoreKitReceiptView.swift | 8 ++++---- .../Sources/BraveStore/Subscription/SDK/AppStoreSDK.swift | 4 ++-- .../Settings/BraveVPNContactFormViewController.swift | 2 +- .../Sources/BraveVPN/Resources/BraveVPNStrings.swift | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ios/brave-ios/Sources/AIChat/AIChatStrings.swift b/ios/brave-ios/Sources/AIChat/AIChatStrings.swift index 207cb6bc973f..6ebec2762b7a 100644 --- a/ios/brave-ios/Sources/AIChat/AIChatStrings.swift +++ b/ios/brave-ios/Sources/AIChat/AIChatStrings.swift @@ -612,8 +612,8 @@ extension Strings { "aichat.advancedSettingsViewReceiptTitle", tableName: "BraveLeo", bundle: .module, - value: "View AppStore Receipt", - comment: "The title for the button that allows the user to view the AppStore Receipt" + value: "View App Store Receipt", + comment: "The title for the button that allows the user to view the App Store Receipt" ) public static let appStoreErrorTitle = NSLocalizedString( "aichat.appStoreErrorTitle", diff --git a/ios/brave-ios/Sources/BraveStore/Debug/StoreKitReceiptView.swift b/ios/brave-ios/Sources/BraveStore/Debug/StoreKitReceiptView.swift index 33908fccb89d..51ea10222c33 100644 --- a/ios/brave-ios/Sources/BraveStore/Debug/StoreKitReceiptView.swift +++ b/ios/brave-ios/Sources/BraveStore/Debug/StoreKitReceiptView.swift @@ -81,19 +81,19 @@ public struct StoreKitReceiptView: View { .frame(maxWidth: .infinity, alignment: .leading) } ) - .navigationTitle("AppStore Receipt") + .navigationTitle("App Store Receipt") .navigationBarTitleDisplayMode(.inline) .buttonStyle(PlainButtonStyle()) .padding() } - .navigationTitle("AppStore Receipt") + .navigationTitle("App Store Receipt") .navigationViewStyle(.stack) .introspectNavigationController { controller in controller.navigationBar.topItem?.backButtonDisplayMode = .minimal } } else { - Text("No AppStore Receipt") - .navigationTitle("AppStore Receipt") + Text("No App Store Receipt") + .navigationTitle("App Store Receipt") .navigationViewStyle(.stack) .task { if let receipt = try? AppStoreReceipt.receipt { diff --git a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/AppStoreSDK.swift b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/AppStoreSDK.swift index 8019b3f9e5f4..b30b7f490f44 100644 --- a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/AppStoreSDK.swift +++ b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/AppStoreSDK.swift @@ -22,7 +22,7 @@ public actor AppStoreReceipt { public static var receipt: String { get throws { guard let receiptUrl = Bundle.main.appStoreReceiptURL else { - Logger.module.info("[AppStoreReceipt] - Invalid Appstore Receipt URL") + Logger.module.info("[AppStoreReceipt] - Invalid App Store Receipt URL") throw AppStoreReceiptError.invalidReceiptURL } @@ -30,7 +30,7 @@ public actor AppStoreReceipt { return try Data(contentsOf: receiptUrl).base64EncodedString } catch { Logger.module.error( - "[AppStoreReceipt] - Failed to retrieve AppStore Receipt: \(error.localizedDescription)" + "[AppStoreReceipt] - Failed to retrieve App Store Receipt: \(error.localizedDescription)" ) throw AppStoreReceiptError.invalidReceiptData } diff --git a/ios/brave-ios/Sources/BraveVPN/Components/Settings/BraveVPNContactFormViewController.swift b/ios/brave-ios/Sources/BraveVPN/Components/Settings/BraveVPNContactFormViewController.swift index ac46c4bf2c33..21d15cb9e6f1 100644 --- a/ios/brave-ios/Sources/BraveVPN/Components/Settings/BraveVPNContactFormViewController.swift +++ b/ios/brave-ios/Sources/BraveVPN/Components/Settings/BraveVPNContactFormViewController.swift @@ -125,7 +125,7 @@ class BraveVPNContactFormViewController: TableViewController { cellClass: MultilineSubtitleCell.self ) - // MARK: AppStore receipt + // MARK: App Store receipt let receiptRow = Row( text: Strings.VPN.contactFormAppStoreReceipt, accessory: diff --git a/ios/brave-ios/Sources/BraveVPN/Resources/BraveVPNStrings.swift b/ios/brave-ios/Sources/BraveVPN/Resources/BraveVPNStrings.swift index f604b2599043..b60f01f6ca2d 100644 --- a/ios/brave-ios/Sources/BraveVPN/Resources/BraveVPNStrings.swift +++ b/ios/brave-ios/Sources/BraveVPN/Resources/BraveVPNStrings.swift @@ -592,8 +592,8 @@ extension Strings { public static let settingsViewReceipt = NSLocalizedString( "vpn.settingsViewReceipt", bundle: .module, - value: "View AppStore Receipt", - comment: "Button to allow the user to view the app-store receipt." + value: "View App Store Receipt", + comment: "Button to allow the user to view the App Store receipt." ) public static let settingsServerHost = NSLocalizedString( @@ -1242,7 +1242,7 @@ extension Strings { "vpn.settingsVPNSmartProxyDescription", bundle: .module, value: - "Smart Proxy Routing ensures traffic is routed through dedicated proxy servers to allow access to commonly restricted content/sites or third-party services, such as Netflix, Hulu, BBC iPlayer, Pandora, etc. [Learn More](%@)", + "Smart Proxy Routing ensures traffic is routed through dedicated proxy servers to allow access to commonly restricted content/sites or third-party services. [Learn More](%@)", comment: "The description of what a Smart Proxy is. Describes the Smart Proxy feature toggle in settings." )