Skip to content

Commit

Permalink
[iOS] Remove Third-Party mentions in VPN. Change AppStore to App Store (
Browse files Browse the repository at this point in the history
#26894)

* Remove third-party mentions in VPN Smart-Proxy Toggle.
* Change "AppStore" to "App Store" for VPN and AI-Chat Receipt Viewer
  • Loading branch information
Brandon-T authored Dec 10, 2024
1 parent fa52e6c commit 117bda1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ios/brave-ios/Sources/AIChat/AIChatStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ 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
}

do {
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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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."
)
Expand Down

0 comments on commit 117bda1

Please sign in to comment.