Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6629cdff9a | |||
| 262eb45dee |
@ -4,20 +4,6 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>AvailableLibraries</key>
|
<key>AvailableLibraries</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
|
||||||
<key>BinaryPath</key>
|
|
||||||
<string>M2Kit.framework/M2Kit</string>
|
|
||||||
<key>LibraryIdentifier</key>
|
|
||||||
<string>ios-arm64</string>
|
|
||||||
<key>LibraryPath</key>
|
|
||||||
<string>M2Kit.framework</string>
|
|
||||||
<key>SupportedArchitectures</key>
|
|
||||||
<array>
|
|
||||||
<string>arm64</string>
|
|
||||||
</array>
|
|
||||||
<key>SupportedPlatform</key>
|
|
||||||
<string>ios</string>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
<dict>
|
||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
<string>M2Kit.framework/M2Kit</string>
|
<string>M2Kit.framework/M2Kit</string>
|
||||||
@ -35,6 +21,20 @@
|
|||||||
<key>SupportedPlatformVariant</key>
|
<key>SupportedPlatformVariant</key>
|
||||||
<string>simulator</string>
|
<string>simulator</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>BinaryPath</key>
|
||||||
|
<string>M2Kit.framework/M2Kit</string>
|
||||||
|
<key>LibraryIdentifier</key>
|
||||||
|
<string>ios-arm64</string>
|
||||||
|
<key>LibraryPath</key>
|
||||||
|
<string>M2Kit.framework</string>
|
||||||
|
<key>SupportedArchitectures</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>SupportedPlatform</key>
|
||||||
|
<string>ios</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
<string>M2Kit.framework/Versions/A/M2Kit</string>
|
<string>M2Kit.framework/Versions/A/M2Kit</string>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>FMWK</string>
|
<string>FMWK</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>5.8</string>
|
<string>5.10</string>
|
||||||
<key>CFBundleSupportedPlatforms</key>
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
<array>
|
<array>
|
||||||
<string>MacOSX</string>
|
<string>MacOSX</string>
|
||||||
@ -37,9 +37,9 @@
|
|||||||
<key>DTSDKName</key>
|
<key>DTSDKName</key>
|
||||||
<string>macosx26.1</string>
|
<string>macosx26.1</string>
|
||||||
<key>DTXcode</key>
|
<key>DTXcode</key>
|
||||||
<string>2610</string>
|
<string>2611</string>
|
||||||
<key>DTXcodeBuild</key>
|
<key>DTXcodeBuild</key>
|
||||||
<string>17B55</string>
|
<string>17B100</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>12.0</string>
|
<string>12.0</string>
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -15,6 +15,407 @@ import WebKit
|
|||||||
import _Concurrency
|
import _Concurrency
|
||||||
import _StringProcessing
|
import _StringProcessing
|
||||||
import _SwiftConcurrencyShims
|
import _SwiftConcurrencyShims
|
||||||
|
public enum SwiftyJSONError : Swift.Int, Swift.Error {
|
||||||
|
case unsupportedType
|
||||||
|
case indexOutOfBounds
|
||||||
|
case elementTooDeep
|
||||||
|
case wrongType
|
||||||
|
case notExist
|
||||||
|
case invalidJSON
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Foundation.CustomNSError {
|
||||||
|
public static var errorDomain: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorCode: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var errorUserInfo: [Swift.String : Any] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Type : Swift.Int {
|
||||||
|
case number
|
||||||
|
case string
|
||||||
|
case bool
|
||||||
|
case array
|
||||||
|
case dictionary
|
||||||
|
case null
|
||||||
|
case unknown
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Swift.Int)
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Swift.Int
|
||||||
|
public var rawValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct JSON {
|
||||||
|
public init(data: Foundation.Data, options opt: Foundation.JSONSerialization.ReadingOptions = []) throws
|
||||||
|
public init(_ object: Any)
|
||||||
|
public init(parseJSON jsonString: Swift.String)
|
||||||
|
public mutating func merge(with other: M2Kit.JSON) throws
|
||||||
|
public func merged(with other: M2Kit.JSON) throws -> M2Kit.JSON
|
||||||
|
public var type: M2Kit.`Type` {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var error: M2Kit.SwiftyJSONError? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var object: Any {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
@available(*, unavailable, renamed: "null")
|
||||||
|
public static var nullJSON: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static var null: M2Kit.JSON {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum Index<T> : Swift.Comparable {
|
||||||
|
case array(Swift.Int)
|
||||||
|
case dictionary(Swift.DictionaryIndex<Swift.String, T>)
|
||||||
|
case null
|
||||||
|
public static func == (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
public static func < (lhs: M2Kit.Index<T>, rhs: M2Kit.Index<T>) -> Swift.Bool
|
||||||
|
}
|
||||||
|
public typealias JSONIndex = M2Kit.Index<M2Kit.JSON>
|
||||||
|
public typealias JSONRawIndex = M2Kit.Index<Any>
|
||||||
|
extension M2Kit.JSON : Swift.Collection {
|
||||||
|
public typealias Index = M2Kit.JSONRawIndex
|
||||||
|
public var startIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var endIndex: M2Kit.JSON.Index {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func index(after i: M2Kit.JSON.Index) -> M2Kit.JSON.Index
|
||||||
|
public subscript(position: M2Kit.JSON.Index) -> (Swift.String, M2Kit.JSON) {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public typealias Element = (Swift.String, M2Kit.JSON)
|
||||||
|
public typealias Indices = Swift.DefaultIndices<M2Kit.JSON>
|
||||||
|
public typealias Iterator = Swift.IndexingIterator<M2Kit.JSON>
|
||||||
|
public typealias SubSequence = Swift.Slice<M2Kit.JSON>
|
||||||
|
}
|
||||||
|
public enum JSONKey {
|
||||||
|
case index(Swift.Int)
|
||||||
|
case key(Swift.String)
|
||||||
|
}
|
||||||
|
public protocol JSONSubscriptType {
|
||||||
|
var jsonKey: M2Kit.JSONKey { get }
|
||||||
|
}
|
||||||
|
extension Swift.Int : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension Swift.String : M2Kit.JSONSubscriptType {
|
||||||
|
public var jsonKey: M2Kit.JSONKey {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
public subscript(path: [any M2Kit.JSONSubscriptType]) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
public subscript(path: any M2Kit.JSONSubscriptType...) -> M2Kit.JSON {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByStringLiteral {
|
||||||
|
public init(stringLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(extendedGraphemeClusterLiteral value: Swift.StringLiteralType)
|
||||||
|
public init(unicodeScalarLiteral value: Swift.StringLiteralType)
|
||||||
|
public typealias ExtendedGraphemeClusterLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias StringLiteralType = Swift.StringLiteralType
|
||||||
|
public typealias UnicodeScalarLiteralType = Swift.StringLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByIntegerLiteral {
|
||||||
|
public init(integerLiteral value: Swift.IntegerLiteralType)
|
||||||
|
public typealias IntegerLiteralType = Swift.IntegerLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByBooleanLiteral {
|
||||||
|
public init(booleanLiteral value: Swift.BooleanLiteralType)
|
||||||
|
public typealias BooleanLiteralType = Swift.BooleanLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByFloatLiteral {
|
||||||
|
public init(floatLiteral value: Swift.FloatLiteralType)
|
||||||
|
public typealias FloatLiteralType = Swift.FloatLiteralType
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByDictionaryLiteral {
|
||||||
|
public init(dictionaryLiteral elements: (Swift.String, Any)...)
|
||||||
|
public typealias Key = Swift.String
|
||||||
|
public typealias Value = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
|
||||||
|
public init(arrayLiteral elements: Any...)
|
||||||
|
public typealias ArrayLiteralElement = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.RawRepresentable {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public init?(rawValue: Any)
|
||||||
|
#endif
|
||||||
|
public var rawValue: Any {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public func rawData(options opt: Foundation.JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Foundation.Data
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ encoding: Swift.String.Encoding = .utf8, options opt: Foundation.JSONSerialization.WritingOptions = .prettyPrinted) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public func rawString(_ options: [M2Kit.writingOptionsKeys : Any]) -> Swift.String?
|
||||||
|
#endif
|
||||||
|
public typealias RawValue = Any
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
|
||||||
|
public var description: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public var debugDescription: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var array: [M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var arrayValue: [M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var arrayObject: [Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionary: [Swift.String : M2Kit.JSON]? {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var dictionaryValue: [Swift.String : M2Kit.JSON] {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var dictionaryObject: [Swift.String : Any]? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var bool: Swift.Bool? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var boolValue: Swift.Bool {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var string: Swift.String? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var stringValue: Swift.String {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var number: Foundation.NSNumber? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var numberValue: Foundation.NSNumber {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var null: Foundation.NSNull? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public func exists() -> Swift.Bool
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var url: Foundation.URL? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON {
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var double: Swift.Double? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var doubleValue: Swift.Double {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var float: Swift.Float? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var floatValue: Swift.Float {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int: Swift.Int? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var intValue: Swift.Int {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt: Swift.UInt? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uIntValue: Swift.UInt {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int8: Swift.Int8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int8Value: Swift.Int8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt8: Swift.UInt8? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt8Value: Swift.UInt8 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int16: Swift.Int16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int16Value: Swift.Int16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt16: Swift.UInt16? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt16Value: Swift.UInt16 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int32: Swift.Int32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int32Value: Swift.Int32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt32: Swift.UInt32? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt32Value: Swift.UInt32 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var int64: Swift.Int64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var int64Value: Swift.Int64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public var uInt64: Swift.UInt64? {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
public var uInt64Value: Swift.UInt64 {
|
||||||
|
get
|
||||||
|
set
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Comparable {
|
||||||
|
}
|
||||||
|
public func == (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func <= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func >= (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func > (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public func < (lhs: M2Kit.JSON, rhs: M2Kit.JSON) -> Swift.Bool
|
||||||
|
public enum writingOptionsKeys {
|
||||||
|
case jsonSerialization
|
||||||
|
case castNilToNSNull
|
||||||
|
case maxObjextDepth
|
||||||
|
case encoding
|
||||||
|
public static func == (a: M2Kit.writingOptionsKeys, b: M2Kit.writingOptionsKeys) -> Swift.Bool
|
||||||
|
public func hash(into hasher: inout Swift.Hasher)
|
||||||
|
public var hashValue: Swift.Int {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extension M2Kit.JSON : Swift.Codable {
|
||||||
|
public init(from decoder: any Swift.Decoder) throws
|
||||||
|
public func encode(to encoder: any Swift.Encoder) throws
|
||||||
|
}
|
||||||
public struct M2API {
|
public struct M2API {
|
||||||
}
|
}
|
||||||
extension M2Kit.M2API {
|
extension M2Kit.M2API {
|
||||||
@ -97,6 +498,7 @@ extension M2Kit.M2API {
|
|||||||
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@available(*, deprecated, message: "M2Backup is deprecated. Use M2Backup instead.")
|
||||||
public struct M2Backup {
|
public struct M2Backup {
|
||||||
public static var backupCode: Swift.String {
|
public static var backupCode: Swift.String {
|
||||||
get
|
get
|
||||||
@ -113,6 +515,19 @@ public struct M2Backup {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public struct M2Backup2 {
|
public struct M2Backup2 {
|
||||||
|
public static var backupCode: Swift.String {
|
||||||
|
get
|
||||||
|
}
|
||||||
|
public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
|
||||||
|
#endif
|
||||||
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
|
public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
|
||||||
|
#endif
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
@ -160,6 +575,11 @@ public struct M2Image2 {
|
|||||||
public struct M2K {
|
public struct M2K {
|
||||||
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
|
||||||
}
|
}
|
||||||
|
public struct M2Log {
|
||||||
|
public static func send(event: Swift.String, count: Swift.Int = 1, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
public static func lazyLog(event: Swift.String, count: Swift.Int = 1)
|
||||||
|
public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
|
||||||
|
}
|
||||||
public struct M2Musi {
|
public struct M2Musi {
|
||||||
#if compiler(>=5.3) && $NonescapableTypes
|
#if compiler(>=5.3) && $NonescapableTypes
|
||||||
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
@ -560,6 +980,14 @@ public struct M2YT {
|
|||||||
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
|
||||||
|
extension M2Kit.SwiftyJSONError : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Equatable {}
|
||||||
|
extension M2Kit.`Type` : Swift.Hashable {}
|
||||||
|
extension M2Kit.`Type` : Swift.RawRepresentable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Equatable {}
|
||||||
|
extension M2Kit.writingOptionsKeys : Swift.Hashable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
|
||||||
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
|
||||||
extension M2Kit.M2WebView : Swift.Sendable {}
|
extension M2Kit.M2WebView : Swift.Sendable {}
|
||||||
|
|||||||
Binary file not shown.
@ -10,47 +10,47 @@
|
|||||||
</data>
|
</data>
|
||||||
<key>Info.plist</key>
|
<key>Info.plist</key>
|
||||||
<data>
|
<data>
|
||||||
xN4GDcUeZ9JhZpxdf+KxcQLNKxo=
|
a7qF5PYL8uEVvW3cxy+avYhbSCg=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
||||||
<data>
|
<data>
|
||||||
Q/heEcDPyytObAHeOk+wtFBIydY=
|
RysJp8xxX8fA6YLdai411u6QLH8=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
4nv/pfwNXzenr0LFsy1hkd2gTEQ=
|
AEmHfBNGXnc2LgcG4WDv2nKn/lk=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||||
<data>
|
<data>
|
||||||
gAYKkXI9dIODG5xP0AUaUnC1QiA=
|
jVzRhlrdZiD/DiubSnWdivWZqJ8=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
4nv/pfwNXzenr0LFsy1hkd2gTEQ=
|
AEmHfBNGXnc2LgcG4WDv2nKn/lk=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||||
<data>
|
<data>
|
||||||
IpdvIwowB0x7rDXcjzuc1I9gUKw=
|
lu0HMQKANSFyWxWsqAuQcMEV5ho=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||||
<data>
|
<data>
|
||||||
Q/heEcDPyytObAHeOk+wtFBIydY=
|
RysJp8xxX8fA6YLdai411u6QLH8=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
89dyWTGJPeQ7KagK3sNb5ZEvzrs=
|
UF0QfVyDlt3bHRbSD84nuw6kGR0=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||||
<data>
|
<data>
|
||||||
YQ2Xic1Ncz3oyq8iKnGEFmGpmIE=
|
k0T6WFb7wWUMfmlyLXeWCHXI38Y=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||||
<data>
|
<data>
|
||||||
89dyWTGJPeQ7KagK3sNb5ZEvzrs=
|
UF0QfVyDlt3bHRbSD84nuw6kGR0=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||||
<data>
|
<data>
|
||||||
0sjeLIa5X7X8wWLyZG8j7IvG0Fo=
|
MHy0LGW9A0YW03b6wxowEOTGMqY=
|
||||||
</data>
|
</data>
|
||||||
<key>Modules/module.modulemap</key>
|
<key>Modules/module.modulemap</key>
|
||||||
<data>
|
<data>
|
||||||
@ -70,70 +70,70 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
0NuiNCJtSAlbG43SjD/j7ey2lEk+djmS339Ob/d6iA4=
|
DH2T7n1atLMt8O7/exZxO6p8Nb1WPrTIPn4PLkHtLig=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
bM30wqXEcLMaTKL4HEhp8Pcg0vVyeRbjkpF96PGn9Xc=
|
vACXnmy1tt9nQ9q9ieI349GyrdOWn4GEqVZh5J4uq+Y=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
dFiycdXiCzP77in6R4xTAya9ds2n/FBIvoi823ab1ME=
|
Ht9sZQSZorMOJT8q6t1gRumY3C6ijcW4lE4Ze4Y1gdo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
bM30wqXEcLMaTKL4HEhp8Pcg0vVyeRbjkpF96PGn9Xc=
|
vACXnmy1tt9nQ9q9ieI349GyrdOWn4GEqVZh5J4uq+Y=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
oAK2RWToJqjmL56Zyqi+hqo1p1BL/rA65RiXvxIVzVs=
|
vrhDR3rpZro/TqR7ZhKUrekMrUDDYIQFyZlKP9vX3gA=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
0NuiNCJtSAlbG43SjD/j7ey2lEk+djmS339Ob/d6iA4=
|
DH2T7n1atLMt8O7/exZxO6p8Nb1WPrTIPn4PLkHtLig=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
HlsXKKcH0SN7XjcnnjWbAQH1nL0SJ0Nk6ky8VDeQg5Q=
|
ra9xPxuNkyIz9MnkW6hbtxP3DLKJ9v09o9ujvkVgFWo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
WHNTWHjfhTYqvh2ej76LAVNbjiNAK/BNghzWOQbsm24=
|
+nVXla5t1CEQA4KUGbZbqTO1t6PxGfes549ADpAIbOQ=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
HlsXKKcH0SN7XjcnnjWbAQH1nL0SJ0Nk6ky8VDeQg5Q=
|
ra9xPxuNkyIz9MnkW6hbtxP3DLKJ9v09o9ujvkVgFWo=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>hash2</key>
|
<key>hash2</key>
|
||||||
<data>
|
<data>
|
||||||
jly+13iFa+sNeVAiSIA9Y2fdo0IcCc4+CnNybyIWHxk=
|
lY3vnzPDMd+gav7DidsvBzX4SMB8s+LmzU9292mQ+LY=
|
||||||
</data>
|
</data>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Modules/module.modulemap</key>
|
<key>Modules/module.modulemap</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user