Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Rebuild with Xcode 11.3, module stability (#176)
Browse files Browse the repository at this point in the history
* Framework dependencies BUILD_LIBRARY_FOR_DISTRIBUTION = YES

* Set BUILD_LIBRARY_FOR_DISTRIBUTION
  • Loading branch information
pvzig committed Dec 20, 2019
1 parent b8c3c4a commit 3089435
Show file tree
Hide file tree
Showing 120 changed files with 11,929 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#if TARGET_OS_SIMULATOR
#if 0
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand Down Expand Up @@ -228,7 +228,7 @@ SWIFT_CLASS("_TtC10Starscream9WebSocket")
#pragma clang diagnostic pop

#elif defined(__i386__) && __i386__
// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand Down Expand Up @@ -456,7 +456,7 @@ SWIFT_CLASS("_TtC10Starscream9WebSocket")
#else
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand Down Expand Up @@ -680,7 +680,7 @@ SWIFT_CLASS("_TtC10Starscream9WebSocket")
#pragma clang diagnostic pop

#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
// Generated by Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

Expand Down
Binary file modified Frameworks/iOS/Starscream.framework/Info.plist
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
// swift-module-flags: -target armv7-apple-ios8.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name Starscream
import CommonCrypto
import CoreFoundation
import Foundation
import Security
@_exported import Starscream
import Swift
import zlib
public let WebsocketDidConnectNotification: Swift.String
public let WebsocketDidDisconnectNotification: Swift.String
public let WebsocketDisconnectionErrorKeyName: Swift.String
public enum CloseCode : Swift.UInt16 {
case normal
case goingAway
case protocolError
case protocolUnhandledType
case noStatusReceived
case encoding
case policyViolated
case messageTooBig
public typealias RawValue = Swift.UInt16
public init?(rawValue: Swift.UInt16)
public var rawValue: Swift.UInt16 {
get
}
}
public enum ErrorType : Swift.Error {
case outputStreamWriteError
case compressionError
case invalidSSLError
case writeTimeoutError
case protocolError
case upgradeError
case closeError
public static func == (a: Starscream.ErrorType, b: Starscream.ErrorType) -> Swift.Bool
public var hashValue: Swift.Int {
get
}
public func hash(into hasher: inout Swift.Hasher)
}
public struct WSError : Swift.Error {
public let type: Starscream.ErrorType
public let message: Swift.String
public let code: Swift.Int
}
public protocol WebSocketClient : AnyObject {
var delegate: Starscream.WebSocketDelegate? { get set }
var pongDelegate: Starscream.WebSocketPongDelegate? { get set }
var disableSSLCertValidation: Swift.Bool { get set }
var overrideTrustHostname: Swift.Bool { get set }
var desiredTrustHostname: Swift.String? { get set }
var sslClientCertificate: Starscream.SSLClientCertificate? { get set }
var security: Starscream.SSLTrustValidator? { get set }
var enabledSSLCipherSuites: [Security.SSLCipherSuite]? { get set }
var isConnected: Swift.Bool { get }
func connect()
func disconnect(forceTimeout: Foundation.TimeInterval?, closeCode: Swift.UInt16)
func write(string: Swift.String, completion: (() -> ())?)
func write(data: Foundation.Data, completion: (() -> ())?)
func write(ping: Foundation.Data, completion: (() -> ())?)
func write(pong: Foundation.Data, completion: (() -> ())?)
}
extension WebSocketClient {
public func write(string: Swift.String)
public func write(data: Foundation.Data)
public func write(ping: Foundation.Data)
public func write(pong: Foundation.Data)
public func disconnect()
}
public struct SSLSettings {
public let useSSL: Swift.Bool
public let disableCertValidation: Swift.Bool
public var overrideTrustHostname: Swift.Bool
public var desiredTrustHostname: Swift.String?
public let sslClientCertificate: Starscream.SSLClientCertificate?
public let cipherSuites: [Security.SSLCipherSuite]?
}
public protocol WSStreamDelegate : AnyObject {
func newBytesInStream()
func streamDidError(error: Swift.Error?)
}
public protocol WSStream {
var delegate: Starscream.WSStreamDelegate? { get set }
func connect(url: Foundation.URL, port: Swift.Int, timeout: Foundation.TimeInterval, ssl: Starscream.SSLSettings, completion: @escaping ((Swift.Error?) -> Swift.Void))
func write(data: Foundation.Data) -> Swift.Int
func read() -> Foundation.Data?
func cleanup()
func sslTrust() -> (trust: Security.SecTrust?, domain: Swift.String?)
}
@objc open class FoundationStream : ObjectiveC.NSObject, Starscream.WSStream, Foundation.StreamDelegate {
weak public var delegate: Starscream.WSStreamDelegate?
public var enableSOCKSProxy: Swift.Bool
public func connect(url: Foundation.URL, port: Swift.Int, timeout: Foundation.TimeInterval, ssl: Starscream.SSLSettings, completion: @escaping ((Swift.Error?) -> Swift.Void))
public func write(data: Foundation.Data) -> Swift.Int
public func read() -> Foundation.Data?
public func cleanup()
public func sslTrust() -> (trust: Security.SecTrust?, domain: Swift.String?)
@objc open func stream(_ aStream: Foundation.Stream, handle eventCode: Foundation.Stream.Event)
@objc override dynamic public init()
@objc deinit
}
public protocol WebSocketDelegate : AnyObject {
func websocketDidConnect(socket: Starscream.WebSocketClient)
func websocketDidDisconnect(socket: Starscream.WebSocketClient, error: Swift.Error?)
func websocketDidReceiveMessage(socket: Starscream.WebSocketClient, text: Swift.String)
func websocketDidReceiveData(socket: Starscream.WebSocketClient, data: Foundation.Data)
}
public protocol WebSocketPongDelegate : AnyObject {
func websocketDidReceivePong(socket: Starscream.WebSocketClient, data: Foundation.Data?)
}
public protocol WebSocketAdvancedDelegate : AnyObject {
func websocketDidConnect(socket: Starscream.WebSocket)
func websocketDidDisconnect(socket: Starscream.WebSocket, error: Swift.Error?)
func websocketDidReceiveMessage(socket: Starscream.WebSocket, text: Swift.String, response: Starscream.WebSocket.WSResponse)
func websocketDidReceiveData(socket: Starscream.WebSocket, data: Foundation.Data, response: Starscream.WebSocket.WSResponse)
func websocketHttpUpgrade(socket: Starscream.WebSocket, request: Swift.String)
func websocketHttpUpgrade(socket: Starscream.WebSocket, response: Swift.String)
}
@objc open class WebSocket : ObjectiveC.NSObject, Foundation.StreamDelegate, Starscream.WebSocketClient, Starscream.WSStreamDelegate {
public enum OpCode : Swift.UInt8 {
case continueFrame
case textFrame
case binaryFrame
case connectionClose
case ping
case pong
public typealias RawValue = Swift.UInt8
public init?(rawValue: Swift.UInt8)
public var rawValue: Swift.UInt8 {
get
}
}
public static let ErrorDomain: Swift.String
public var callbackQueue: Dispatch.DispatchQueue
public class WSResponse {
public var code: Starscream.WebSocket.OpCode
public var frameCount: Swift.Int
public var buffer: Foundation.NSMutableData?
final public let firstFrame: Foundation.Date
@objc deinit
}
weak public var delegate: Starscream.WebSocketDelegate?
weak public var advancedDelegate: Starscream.WebSocketAdvancedDelegate?
weak public var pongDelegate: Starscream.WebSocketPongDelegate?
public var onConnect: (() -> Swift.Void)?
public var onDisconnect: ((Swift.Error?) -> Swift.Void)?
public var onText: ((Swift.String) -> Swift.Void)?
public var onData: ((Foundation.Data) -> Swift.Void)?
public var onPong: ((Foundation.Data?) -> Swift.Void)?
public var onHttpResponseHeaders: (([Swift.String : Swift.String]) -> Swift.Void)?
public var disableSSLCertValidation: Swift.Bool
public var overrideTrustHostname: Swift.Bool
public var desiredTrustHostname: Swift.String?
public var sslClientCertificate: Starscream.SSLClientCertificate?
public var enableCompression: Swift.Bool
public var security: Starscream.SSLTrustValidator?
public var enabledSSLCipherSuites: [Security.SSLCipherSuite]?
public var isConnected: Swift.Bool {
get
}
public var request: Foundation.URLRequest
public var currentURL: Foundation.URL {
get
}
public var respondToPingWithPong: Swift.Bool
public init(request: Foundation.URLRequest, protocols: [Swift.String]? = nil, stream: Starscream.WSStream = FoundationStream())
convenience public init(url: Foundation.URL, protocols: [Swift.String]? = nil)
convenience public init(url: Foundation.URL, writeQueueQOS: Foundation.QualityOfService, protocols: [Swift.String]? = nil)
open func connect()
open func disconnect(forceTimeout: Foundation.TimeInterval? = nil, closeCode: Swift.UInt16 = CloseCode.normal.rawValue)
open func write(string: Swift.String, completion: (() -> ())? = nil)
open func write(data: Foundation.Data, completion: (() -> ())? = nil)
open func write(ping: Foundation.Data, completion: (() -> ())? = nil)
open func write(pong: Foundation.Data, completion: (() -> ())? = nil)
public func newBytesInStream()
public func streamDidError(error: Swift.Error?)
@objc deinit
@objc override dynamic public init()
}
public protocol SSLTrustValidator {
func isValid(_ trust: Security.SecTrust, domain: Swift.String?) -> Swift.Bool
}
open class SSLCert {
public init(data: Foundation.Data)
public init(key: Security.SecKey)
@objc deinit
}
open class SSLSecurity : Starscream.SSLTrustValidator {
public var validatedDN: Swift.Bool
public var validateEntireChain: Swift.Bool
convenience public init(usePublicKeys: Swift.Bool = false)
public init(certs: [Starscream.SSLCert], usePublicKeys: Swift.Bool)
open func isValid(_ trust: Security.SecTrust, domain: Swift.String?) -> Swift.Bool
public func extractPublicKey(_ data: Foundation.Data) -> Security.SecKey?
public func extractPublicKey(_ cert: Security.SecCertificate, policy: Security.SecPolicy) -> Security.SecKey?
public func certificateChain(_ trust: Security.SecTrust) -> [Foundation.Data]
public func publicKeyChain(_ trust: Security.SecTrust) -> [Security.SecKey]
@objc deinit
}
public struct SSLClientCertificateError : Foundation.LocalizedError {
public var errorDescription: Swift.String?
}
public class SSLClientCertificate {
convenience public init(pkcs12Path: Swift.String, password: Swift.String) throws
public init(identity: Security.SecIdentity, identityCertificate: Security.SecCertificate)
convenience public init(pkcs12Url: Foundation.URL, password: Swift.String) throws
public init(pkcs12Url: Foundation.URL, importOptions: CoreFoundation.CFDictionary) throws
@objc deinit
}
extension Starscream.CloseCode : Swift.Equatable {}
extension Starscream.CloseCode : Swift.Hashable {}
extension Starscream.CloseCode : Swift.RawRepresentable {}
extension Starscream.ErrorType : Swift.Equatable {}
extension Starscream.ErrorType : Swift.Hashable {}
extension Starscream.WebSocket.OpCode : Swift.Equatable {}
extension Starscream.WebSocket.OpCode : Swift.Hashable {}
extension Starscream.WebSocket.OpCode : Swift.RawRepresentable {}
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 3089435

Please sign in to comment.