Remove deprecated API

Should have done so in 1.5.0
This commit is contained in:
Davide De Rosa 2019-03-21 17:43:16 +01:00
parent 79509a1ea1
commit f32c231b90
3 changed files with 2 additions and 24 deletions

View File

@ -99,7 +99,6 @@ extension ViewController {
builder.endpointProtocols = [EndpointProtocol(socketType, port)]
builder.mtu = 1350
builder.shouldDebug = true
builder.debugLogKey = "Log"
let configuration = builder.build()
return try! configuration.generatedTunnelProtocol(

View File

@ -100,7 +100,6 @@ extension ViewController {
builder.endpointProtocols = [EndpointProtocol(socketType, port)]
builder.mtu = 1350
builder.shouldDebug = true
builder.debugLogKey = "Log"
let configuration = builder.build()
return try! configuration.generatedTunnelProtocol(

View File

@ -70,9 +70,7 @@ extension TunnelKitProvider {
dnsServers: nil
),
shouldDebug: false,
debugLogKey: nil,
debugLogFormat: nil,
lastErrorKey: nil
debugLogFormat: nil
)
/// Prefers resolved addresses over DNS resolution. `resolvedAddresses` must be set and non-empty. Default is `false`.
@ -97,17 +95,9 @@ extension TunnelKitProvider {
/// Enables debugging.
public var shouldDebug: Bool
/// This attribute is ignored and deprecated. Use `urlForLog(...)` or `existingLog(...)` to access the debug log.
@available(*, deprecated)
public var debugLogKey: String?
/// Optional debug log format (SwiftyBeaver format).
public var debugLogFormat: String?
/// This attribute is ignored and deprecated. Use `lastError(...)` to access the last error.
@available(*, deprecated)
public var lastErrorKey: String?
// MARK: Building
/**
@ -220,9 +210,7 @@ extension TunnelKitProvider {
mtu: mtu,
sessionConfiguration: sessionConfiguration,
shouldDebug: shouldDebug,
debugLogKey: nil,
debugLogFormat: shouldDebug ? debugLogFormat : nil,
lastErrorKey: nil
debugLogFormat: shouldDebug ? debugLogFormat : nil
)
}
}
@ -291,17 +279,9 @@ extension TunnelKitProvider {
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.shouldDebug`
public let shouldDebug: Bool
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.debugLogKey`
@available(*, deprecated)
public let debugLogKey: String?
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.debugLogFormat`
public let debugLogFormat: String?
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.lastErrorKey`
@available(*, deprecated)
public let lastErrorKey: String?
// MARK: Shortcuts
static let debugLogFilename = "debug.log"