Merge branch 'constraint-api-to-app-build'
This commit is contained in:
commit
d6886cad37
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -5,6 +5,19 @@ 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).
|
||||||
|
|
||||||
|
## 1.0 beta 1012 (2018-10-18)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- AES-GCM and new enpoints to PIA network preset.
|
||||||
|
- Disclosure indicators in profile organizer (Samuel Michaels).
|
||||||
|
- Disclaimer for app usage.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Can now import .ovpn files from Apple Files app.
|
||||||
|
- Reject unrecognized values for `cipher`, `auth` and `proto`.
|
||||||
|
|
||||||
## 1.0 beta 989 (2018-10-16)
|
## 1.0 beta 989 (2018-10-16)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -27,9 +27,7 @@ import TunnelKit
|
||||||
|
|
||||||
class PacketTunnelProvider: TunnelKitProvider {
|
class PacketTunnelProvider: TunnelKitProvider {
|
||||||
override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) {
|
override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) {
|
||||||
if let version = GroupConstants.App.version {
|
appVersion = "\(GroupConstants.App.name) \(GroupConstants.App.versionString)"
|
||||||
appVersion = "\(GroupConstants.App.name) \(version)"
|
|
||||||
}
|
|
||||||
dnsTimeout = GroupConstants.VPN.dnsTimeout
|
dnsTimeout = GroupConstants.VPN.dnsTimeout
|
||||||
logSeparator = GroupConstants.VPN.sessionMarker
|
logSeparator = GroupConstants.VPN.sessionMarker
|
||||||
super.startTunnel(options: options, completionHandler: completionHandler)
|
super.startTunnel(options: options, completionHandler: completionHandler)
|
||||||
|
|
|
@ -64,7 +64,7 @@ class AppConstants {
|
||||||
}
|
}
|
||||||
|
|
||||||
class Web {
|
class Web {
|
||||||
private static let version = "v1"
|
private static let version = "v2"
|
||||||
|
|
||||||
private static let baseURL = Repos.passepartoutAPI.appendingPathComponent("api/\(version)")
|
private static let baseURL = Repos.passepartoutAPI.appendingPathComponent("api/\(version)")
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,11 @@ class GroupConstants {
|
||||||
static let title = name
|
static let title = name
|
||||||
// static let title = "\u{1F511}"
|
// static let title = "\u{1F511}"
|
||||||
|
|
||||||
static var version: String? {
|
static let versionNumber = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
|
||||||
guard let info = Bundle.main.infoDictionary else {
|
|
||||||
return nil
|
static let buildNumber = Int(Bundle.main.infoDictionary![kCFBundleVersionKey as String] as! String)!
|
||||||
}
|
|
||||||
let versionNumber = info["CFBundleShortVersionString"] as! String
|
static let versionString = "\(versionNumber) (\(buildNumber))"
|
||||||
let buildNumber = info[kCFBundleVersionKey as String] as! String
|
|
||||||
return "\(versionNumber) (\(buildNumber))"
|
|
||||||
}
|
|
||||||
|
|
||||||
static let teamId = "5357M5NW9W"
|
static let teamId = "5357M5NW9W"
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,8 @@ struct DebugLog {
|
||||||
}
|
}
|
||||||
|
|
||||||
func decoratedString() -> String {
|
func decoratedString() -> String {
|
||||||
guard let appVersion = GroupConstants.App.version else {
|
|
||||||
fatalError("Could not find bundle app version?")
|
|
||||||
}
|
|
||||||
let appName = GroupConstants.App.name
|
let appName = GroupConstants.App.name
|
||||||
|
let appVersion = GroupConstants.App.versionString
|
||||||
|
|
||||||
var metadata: [String] = []
|
var metadata: [String] = []
|
||||||
let osVersion: String
|
let osVersion: String
|
||||||
|
|
|
@ -43,6 +43,8 @@ struct Infrastructure: Codable {
|
||||||
let preset: String
|
let preset: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let build: Int
|
||||||
|
|
||||||
let name: Name
|
let name: Name
|
||||||
|
|
||||||
let pools: [Pool]
|
let pools: [Pool]
|
||||||
|
|
|
@ -143,6 +143,14 @@ class InfrastructureFactory {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let appBuild = GroupConstants.App.buildNumber
|
||||||
|
guard appBuild >= infra.build else {
|
||||||
|
log.error("Response requires app build >= \(infra.build) (found \(appBuild))")
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
completionHandler(nil, error)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var isNewer = true
|
var isNewer = true
|
||||||
if let bundleDate = self.bundleModificationDate(for: name) {
|
if let bundleDate = self.bundleModificationDate(for: name) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
BASE=`agvtool what-version -terse`
|
BASE=`agvtool what-version -terse`
|
||||||
COUNT=`git rev-list --count master`
|
COUNT=`git rev-list --count HEAD`
|
||||||
echo $((BASE + COUNT))
|
echo $((BASE + COUNT))
|
||||||
|
|
Loading…
Reference in New Issue