Add ProtonVPN provider
This commit is contained in:
parent
f067ade6f9
commit
36ee076c9c
|
@ -283,6 +283,7 @@ internal enum Asset {
|
|||
internal enum Providers {
|
||||
internal static let mullvad = ImageAsset(name: "mullvad")
|
||||
internal static let pia = ImageAsset(name: "pia")
|
||||
internal static let protonvpn = ImageAsset(name: "protonvpn")
|
||||
internal static let tunnelbear = ImageAsset(name: "tunnelbear")
|
||||
internal static let windscribe = ImageAsset(name: "windscribe")
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "protonvpn@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "protonvpn@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -68,6 +68,9 @@ class AccountViewController: UIViewController, TableModelHost {
|
|||
case .pia:
|
||||
return V.pia(name.rawValue)
|
||||
|
||||
case .protonVpn:
|
||||
return V.protonvpn(name.rawValue)
|
||||
|
||||
case .tunnelBear:
|
||||
return V.tunnelbear(name.rawValue)
|
||||
|
||||
|
|
|
@ -130,8 +130,9 @@
|
|||
"account.sections.credentials.header" = "Credentials";
|
||||
"account.sections.guidance.footer.infrastructure.mullvad" = "Use your %@ website account number and password \"m\".";
|
||||
"account.sections.guidance.footer.infrastructure.pia" = "Use your %@ website credentials. Your username is usually numeric with a \"p\" prefix.";
|
||||
"account.sections.guidance.footer.infrastructure.protonvpn" = "Find your %@ credentials in the \"Account > OpenVPN Login\" section of the website.";
|
||||
"account.sections.guidance.footer.infrastructure.tunnelbear" = "Use your %@ website credentials. Your username is usually your e-mail.";
|
||||
"account.sections.guidance.footer.infrastructure.windscribe" = "Find your credentials in the OpenVPN Config Generator on the %@ website.";
|
||||
"account.sections.guidance.footer.infrastructure.windscribe" = "Find your %@ credentials in the OpenVPN Config Generator on the website.";
|
||||
"account.sections.registration.footer" = "Go get an account on the %@ website.";
|
||||
"account.cells.username.caption" = "Username";
|
||||
"account.cells.username.placeholder" = "username";
|
||||
|
|
|
@ -165,12 +165,14 @@ public class AppConstants {
|
|||
}
|
||||
|
||||
public static let guidances: [Infrastructure.Name: String] = [
|
||||
.protonVpn: "https://account.protonvpn.com/settings",
|
||||
.windscribe: "https://windscribe.com/getconfig/openvpn"
|
||||
]
|
||||
|
||||
public static let referrals: [Infrastructure.Name: String] = [
|
||||
.mullvad: "https://mullvad.net/en/account/create/",
|
||||
.pia: "https://www.privateinternetaccess.com/pages/buy-vpn/",
|
||||
.protonVpn: "https://protonvpn.net/?aid=keeshux",
|
||||
.tunnelBear: "https://click.tunnelbear.com/aff_c?offer_id=2&aff_id=7464",
|
||||
.windscribe: "https://secure.link/kCsD0prd"
|
||||
]
|
||||
|
|
|
@ -32,6 +32,8 @@ public struct Infrastructure: Codable {
|
|||
|
||||
case pia = "PIA"
|
||||
|
||||
case protonVpn = "ProtonVPN"
|
||||
|
||||
case tunnelBear = "TunnelBear"
|
||||
|
||||
case windscribe = "Windscribe"
|
||||
|
|
|
@ -59,6 +59,7 @@ public class InfrastructureFactory {
|
|||
public let allNames: [Infrastructure.Name] = [
|
||||
.mullvad,
|
||||
.pia,
|
||||
.protonVpn,
|
||||
.tunnelBear,
|
||||
.windscribe
|
||||
]
|
||||
|
|
|
@ -106,11 +106,15 @@ public enum L10n {
|
|||
public static func pia(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "account.sections.guidance.footer.infrastructure.pia", p1)
|
||||
}
|
||||
/// Find your %@ credentials in the "Account > OpenVPN Login" section of the website.
|
||||
public static func protonvpn(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "account.sections.guidance.footer.infrastructure.protonvpn", p1)
|
||||
}
|
||||
/// Use your %@ website credentials. Your username is usually your e-mail.
|
||||
public static func tunnelbear(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "account.sections.guidance.footer.infrastructure.tunnelbear", p1)
|
||||
}
|
||||
/// Find your credentials in the OpenVPN Config Generator on the %@ website.
|
||||
/// Find your %@ credentials in the OpenVPN Config Generator on the website.
|
||||
public static func windscribe(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "account.sections.guidance.footer.infrastructure.windscribe", p1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue