diff --git a/.gitignore b/.gitignore index e4bd44fb0..8b4fce9e4 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ fastlane/report.xml docs/docsets/HaishinKit.docset/Contents/Resources/Documents/undocumented.json Vendor/SRT/OpenSSL/ Vendor/SRT/srt/ +HaishinKit.json +SRTHaishinKit.json diff --git a/Sources/Media/IOMixer.swift b/Sources/Media/IOMixer.swift index 59d5f0616..b94ff5b90 100644 --- a/Sources/Media/IOMixer.swift +++ b/Sources/Media/IOMixer.swift @@ -315,10 +315,10 @@ extension IOMixer: Running { } #else extension IOMixer: Running { - public func startRunning() { + func startRunning() { } - public func stopRunning() { + func stopRunning() { } } #endif diff --git a/Sources/RTMP/EventDispatcher.swift b/Sources/RTMP/EventDispatcher.swift index e6b64bd33..d77789aa3 100644 --- a/Sources/RTMP/EventDispatcher.swift +++ b/Sources/RTMP/EventDispatcher.swift @@ -14,7 +14,7 @@ public protocol EventDispatcherConvertible: AnyObject { // MARK: - /// The Event interface is used to provide information. -open class Event { +public final class Event { /// A structure that defines the name of an event. public struct Name: RawRepresentable, ExpressibleByStringLiteral { // swiftlint:disable:next nesting @@ -78,7 +78,7 @@ extension Event: CustomDebugStringConvertible { /** * The EventDispatcher interface is in implementation which supports the DOM Event Model. */ -open class EventDispatcher: EventDispatcherConvertible { +public class EventDispatcher: EventDispatcherConvertible { private weak var target: AnyObject? /// Creates a new event dispatcher. diff --git a/Sources/RTMP/RTMPSharedObject.swift b/Sources/RTMP/RTMPSharedObject.swift index 998f4c8d4..76e74fc7d 100644 --- a/Sources/RTMP/RTMPSharedObject.swift +++ b/Sources/RTMP/RTMPSharedObject.swift @@ -79,7 +79,7 @@ extension RTMPSharedObjectEvent: CustomDebugStringConvertible { // MARK: - /// The RTMPSharedObject class is used to read and write data on a server. -public class RTMPSharedObject: EventDispatcher { +public final class RTMPSharedObject: EventDispatcher { private static var remoteSharedObjects: [String: RTMPSharedObject] = [:] /// Returns a reference to a shared object on a server. diff --git a/Sources/Util/ByteArray.swift b/Sources/Util/ByteArray.swift index 0bdef86fc..a2b7ddd6a 100644 --- a/Sources/Util/ByteArray.swift +++ b/Sources/Util/ByteArray.swift @@ -72,7 +72,7 @@ protocol ByteArrayConvertible { /** * The ByteArray class provides methods and properties the reading or writing with binary data. */ -open class ByteArray: ByteArrayConvertible { +public class ByteArray: ByteArrayConvertible { static let fillZero: [UInt8] = [0x00] static let sizeOfInt8: Int = 1