Add Windscribe provider

This commit is contained in:
Davide De Rosa 2019-03-25 22:51:16 +01:00
parent 8f87090587
commit a98ddbb224
6 changed files with 12 additions and 1 deletions

View File

@ -95,6 +95,9 @@ class AccountViewController: UIViewController, TableModelHost {
case .tunnelBear:
guidance = V.Infrastructure.tunnelbear
case .windscribe:
guidance = V.Infrastructure.windscribe
}
model.add(.noAccount)

View File

@ -137,6 +137,7 @@
"account.suggestion_footer.infrastructure.mullvad" = "Use your website account number and password \"m\".";
"account.suggestion_footer.infrastructure.pia" = "Use your website credentials. Your username is usually numeric with a \"p\" prefix.";
"account.suggestion_footer.infrastructure.tunnelbear" = "Use your website credentials. Your username is usually your email.";
"account.suggestion_footer.infrastructure.windscribe" = "Find your credentials in the OpenVPN Config Generator on the website.";
"account.suggestion_footer.guidance_link" = "Tap to open web page.";
"account.suggestion_footer.referral" = "Don't have an account? Tap here to get one.";

View File

@ -164,7 +164,9 @@ public class AppConstants {
return URL(string: "https://itunes.apple.com/app/id\(id)?action=write-review")!
}
public static let guidances: [Infrastructure.Name: String] = [:]
public static let guidances: [Infrastructure.Name: String] = [
.windscribe: "https://windscribe.com/getconfig/openvpn"
]
public static let referrals: [Infrastructure.Name: String] = [
.mullvad: "https://mullvad.net/en/account/create/",

View File

@ -34,6 +34,8 @@ public struct Infrastructure: Codable {
case tunnelBear = "TunnelBear"
case windscribe = "Windscribe"
public var webName: String {
return rawValue.lowercased()
}

View File

@ -60,6 +60,7 @@ public class InfrastructureFactory {
.mullvad,
.pia,
.tunnelBear,
.windscribe
]
private let bundle: [Infrastructure.Name: Infrastructure]

View File

@ -92,6 +92,8 @@ public enum L10n {
public static let pia = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.pia")
/// Use your website credentials. Your username is usually your email.
public static let tunnelbear = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.tunnelbear")
/// Find your credentials in the OpenVPN Config Generator on the website.
public static let windscribe = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.windscribe")
}
}
}