This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild with Xcode 11.3, module stability (#176)
* Framework dependencies BUILD_LIBRARY_FOR_DISTRIBUTION = YES * Set BUILD_LIBRARY_FOR_DISTRIBUTION
- Loading branch information
Showing
120 changed files
with
11,929 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
Frameworks/iOS/Starscream.framework/Modules/Starscream.swiftmodule/arm.swiftdoc
Binary file not shown.
219 changes: 219 additions & 0 deletions
219
Frameworks/iOS/Starscream.framework/Modules/Starscream.swiftmodule/arm.swiftinterface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 modified
BIN
-49.6 KB
(69%)
Frameworks/iOS/Starscream.framework/Modules/Starscream.swiftmodule/arm.swiftmodule
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
Frameworks/iOS/Starscream.framework/Modules/Starscream.swiftmodule/arm64-apple-ios.swiftdoc
Binary file not shown.
Oops, something went wrong.