Merge pull request #35 from passepartoutvpn/integrate-tunnel-bear
Integrate TunnelBear provider
This commit is contained in:
commit
693a59d0a5
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- TunnelBear provider.
|
||||||
|
|
||||||
## 1.0.3 (2019-03-06)
|
## 1.0.3 (2019-03-06)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -55,6 +55,9 @@ class AccountViewController: UIViewController, TableModelHost {
|
||||||
switch name {
|
switch name {
|
||||||
case .pia:
|
case .pia:
|
||||||
guidance = V.Infrastructure.pia
|
guidance = V.Infrastructure.pia
|
||||||
|
|
||||||
|
case .tunnelBear:
|
||||||
|
guidance = V.Infrastructure.tunnelbear
|
||||||
}
|
}
|
||||||
|
|
||||||
if guidance != nil {
|
if guidance != nil {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -123,6 +123,7 @@
|
||||||
//"account.cells.password_confirm.caption" = "Confirm";
|
//"account.cells.password_confirm.caption" = "Confirm";
|
||||||
//"account.cells.password_confirm.mismatch" = "Passwords don't match!";
|
//"account.cells.password_confirm.mismatch" = "Passwords don't match!";
|
||||||
"account.suggestion_footer.infrastructure.pia" = "Use your website credentials. Your username is usually numeric with a \"p\" prefix.";
|
"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.referral" = "Don't have an account? Tap here to get one.";
|
"account.suggestion_footer.referral" = "Don't have an account? Tap here to get one.";
|
||||||
|
|
||||||
"endpoint.sections.location_addresses.header" = "Addresses";
|
"endpoint.sections.location_addresses.header" = "Addresses";
|
||||||
|
|
|
@ -30,6 +30,8 @@ struct Infrastructure: Codable {
|
||||||
enum Name: String, Codable, Comparable {
|
enum Name: String, Codable, Comparable {
|
||||||
case pia = "PIA"
|
case pia = "PIA"
|
||||||
|
|
||||||
|
case tunnelBear = "TunnelBear"
|
||||||
|
|
||||||
var webName: String {
|
var webName: String {
|
||||||
return rawValue.lowercased()
|
return rawValue.lowercased()
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,8 @@ class InfrastructureFactory {
|
||||||
static let shared = InfrastructureFactory()
|
static let shared = InfrastructureFactory()
|
||||||
|
|
||||||
let allNames: [Infrastructure.Name] = [
|
let allNames: [Infrastructure.Name] = [
|
||||||
.pia
|
.pia,
|
||||||
|
.tunnelBear
|
||||||
]
|
]
|
||||||
|
|
||||||
private let bundle: [Infrastructure.Name: Infrastructure]
|
private let bundle: [Infrastructure.Name: Infrastructure]
|
||||||
|
|
|
@ -86,6 +86,8 @@ internal enum L10n {
|
||||||
internal enum Infrastructure {
|
internal enum Infrastructure {
|
||||||
/// Use your website credentials. Your username is usually numeric with a "p" prefix.
|
/// Use your website credentials. Your username is usually numeric with a "p" prefix.
|
||||||
internal static let pia = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.pia")
|
internal static let pia = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.pia")
|
||||||
|
/// Use your website credentials. Your username is usually your email.
|
||||||
|
internal static let tunnelbear = L10n.tr("Localizable", "account.suggestion_footer.infrastructure.tunnelbear")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue