19 Commits

Author SHA1 Message Date
64da58b93a 5.35 2026-06-26 16:44:13 +07:00
9414c887e4 5.34 2026-06-24 17:56:03 +07:00
9ba9c99815 5.33 2026-05-29 11:24:43 +07:00
39728313b6 5.32 2026-05-26 14:54:41 +07:00
ee793de89d 5.31 2026-05-14 11:08:16 +07:00
63522ae598 5.30 2026-04-03 14:23:55 +07:00
d02221f9cd 5.29 2026-03-28 16:48:32 +07:00
0a3921b586 5.28 2026-03-27 10:43:41 +07:00
4fc9504766 5.27 2026-03-27 10:12:24 +07:00
c6664ebf22 5.26 2026-03-20 11:34:26 +07:00
f53ed7d815 update 2026-03-20 11:24:29 +07:00
cd16fd3ce3 5.25 2026-03-20 11:04:19 +07:00
e6c206197c 5.24 2026-03-12 22:41:32 +07:00
a53e238bb1 5.23 2026-03-05 12:25:08 +07:00
affc334c65 5.22 2026-03-03 19:09:22 +07:00
32e26138f9 5.21 2026-02-26 15:24:11 +07:00
23a9ea0820 5.20 2026-02-26 14:58:55 +07:00
28534ab6aa 5.19 2026-02-18 08:00:12 +07:00
11c95a7569 5.18 2026-02-10 10:23:05 +07:00
35 changed files with 24679 additions and 10657 deletions

View File

@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// Generated by Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
#ifndef M2KIT_SWIFT_H
#define M2KIT_SWIFT_H
#pragma clang diagnostic push
@ -26,7 +26,7 @@
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#endif // defined(__OBJC__)
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
# else
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM_TAG)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_TAG enum
# else
# define SWIFT_ENUM_TAG
# endif
#endif
#if !defined(SWIFT_ENUM_FWD_DECL)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
# else
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if !__has_feature(nullability)
# define _Nonnull
# define _Nullable
# define _Null_unspecified
#elif !defined(__OBJC__)
# pragma clang diagnostic ignored "-Wnullability-extension"
#endif
#if !__has_feature(nullability_nullable_result)
# define _Nullable_result _Nullable
#endif
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="M2Kit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
} // extern "C"
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
@ -284,7 +349,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif
#endif
#endif // defined(__OBJC__)
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
@ -314,7 +379,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#endif // defined(__OBJC__)
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,4 +1,3 @@
framework module M2Kit {
header "M2Kit-Swift.h"
requires objc
}

View File

@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// Generated by Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
#ifndef M2KIT_SWIFT_H
#define M2KIT_SWIFT_H
#pragma clang diagnostic push
@ -26,7 +26,7 @@
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#endif // defined(__OBJC__)
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
# else
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM_TAG)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_TAG enum
# else
# define SWIFT_ENUM_TAG
# endif
#endif
#if !defined(SWIFT_ENUM_FWD_DECL)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
# else
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if !__has_feature(nullability)
# define _Nonnull
# define _Nullable
# define _Null_unspecified
#elif !defined(__OBJC__)
# pragma clang diagnostic ignored "-Wnullability-extension"
#endif
#if !__has_feature(nullability_nullable_result)
# define _Nullable_result _Nullable
#endif
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="M2Kit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
} // extern "C"
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
@ -284,7 +349,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif
#endif
#endif // defined(__OBJC__)
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
@ -314,7 +379,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#endif // defined(__OBJC__)
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
@ -324,7 +389,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
#endif
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// Generated by Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
#ifndef M2KIT_SWIFT_H
#define M2KIT_SWIFT_H
#pragma clang diagnostic push
@ -350,7 +415,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#endif // defined(__OBJC__)
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
@ -519,13 +584,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
# else
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM_TAG)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_TAG enum
# else
# define SWIFT_ENUM_TAG
# endif
#endif
#if !defined(SWIFT_ENUM_FWD_DECL)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
# else
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
@ -535,6 +619,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
@ -600,6 +687,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if !__has_feature(nullability)
# define _Nonnull
# define _Nullable
# define _Null_unspecified
#elif !defined(__OBJC__)
# pragma clang diagnostic ignored "-Wnullability-extension"
#endif
#if !__has_feature(nullability_nullable_result)
# define _Nullable_result _Nullable
#endif
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="M2Kit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
} // extern "C"
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
@ -608,7 +738,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif
#endif
#endif // defined(__OBJC__)
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
@ -638,7 +768,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#endif // defined(__OBJC__)
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target x86_64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target x86_64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target x86_64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target x86_64-apple-ios16.0-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,4 +1,3 @@
framework module M2Kit {
header "M2Kit-Swift.h"
requires objc
}

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>25C56</string>
<string>25F80</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>5.17</string>
<string>5.35</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
@ -27,19 +27,19 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>25C57</string>
<string>25F70</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>26.2</string>
<string>26.5</string>
<key>DTSDKBuild</key>
<string>25C57</string>
<string>25F70</string>
<key>DTSDKName</key>
<string>macosx26.2</string>
<string>macosx26.5</string>
<key>DTXcode</key>
<string>2620</string>
<string>2650</string>
<key>DTXcodeBuild</key>
<string>17C52</string>
<string>17F42</string>
<key>LSMinimumSystemVersion</key>
<string>13.0</string>
<key>UIDeviceFamily</key>

View File

@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// Generated by Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
#ifndef M2KIT_SWIFT_H
#define M2KIT_SWIFT_H
#pragma clang diagnostic push
@ -26,7 +26,7 @@
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#endif // defined(__OBJC__)
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
# else
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM_TAG)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_TAG enum
# else
# define SWIFT_ENUM_TAG
# endif
#endif
#if !defined(SWIFT_ENUM_FWD_DECL)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
# else
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if !__has_feature(nullability)
# define _Nonnull
# define _Nullable
# define _Null_unspecified
#elif !defined(__OBJC__)
# pragma clang diagnostic ignored "-Wnullability-extension"
#endif
#if !__has_feature(nullability_nullable_result)
# define _Nullable_result _Nullable
#endif
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="M2Kit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
} // extern "C"
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
@ -284,7 +349,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif
#endif
#endif // defined(__OBJC__)
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
@ -314,7 +379,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#endif // defined(__OBJC__)
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
@ -324,7 +389,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
#endif
#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// Generated by Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
#ifndef M2KIT_SWIFT_H
#define M2KIT_SWIFT_H
#pragma clang diagnostic push
@ -350,7 +415,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#endif // defined(__OBJC__)
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
@ -519,13 +584,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
# else
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM_TAG)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_TAG enum
# else
# define SWIFT_ENUM_TAG
# endif
#endif
#if !defined(SWIFT_ENUM_FWD_DECL)
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
# else
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
@ -535,6 +619,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
@ -600,6 +687,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# define SWIFT_IMPORT_STDLIB_SYMBOL
#endif
#endif
#if !__has_feature(nullability)
# define _Nonnull
# define _Nullable
# define _Null_unspecified
#elif !defined(__OBJC__)
# pragma clang diagnostic ignored "-Wnullability-extension"
#endif
#if !__has_feature(nullability_nullable_result)
# define _Nullable_result _Nullable
#endif
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="M2Kit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__cplusplus)
} // extern "C"
#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
@ -608,7 +738,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif
#endif
#endif // defined(__OBJC__)
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
@ -638,7 +768,7 @@ SWIFT_CLASS("_TtC5M2Kit7M2WebVC")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
#endif
#endif // defined(__OBJC__)
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,7 +1,8 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
// swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name M2Kit
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
import AVFoundation
import Combine
import CommonCrypto
import Foundation
@ -22,9 +23,7 @@ public enum SwiftyJSONError : Swift.Int, Swift.Error {
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
@ -49,9 +48,7 @@ public enum Type : Swift.Int {
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
@ -164,19 +161,13 @@ extension M2Kit.JSON : Swift.ExpressibleByArrayLiteral {
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 {
@ -188,207 +179,165 @@ extension M2Kit.JSON : Swift.CustomStringConvertible, Swift.CustomDebugStringCon
}
}
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
@ -419,44 +368,38 @@ extension M2Kit.JSON : Swift.Codable {
@_Concurrency.MainActor public struct M2API {
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideosEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylistsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ playlists: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistEx(playlistId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannelsEx(title: Swift.String, nextToken: Swift.String?, result: @escaping (_ channels: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@available(*, deprecated, message: "Use getVideosOfChannelEx(channelId:nextToken:result:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelName: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getVideosOfChannelEx(channelId: Swift.String, nextToken: Swift.String?, result: @escaping (_ videos: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
@_Concurrency.MainActor public static func getAllVideosOfPlaylistEx(playlistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topSongsEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytTrendingEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func trendingVideosEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@available(*, deprecated, message: "Use ytArtistsEx(countrycode:result:) instead.")
@_Concurrency.MainActor public static func topChannelsEx(result: @escaping (_ channels: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategoryEx(result: @escaping (_ categories: [(category_id: Swift.String, title: Swift.String)]) -> Swift.Void)
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategoryEx(categoryId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearchEx(_ text: Swift.String, result: @escaping (_ listSuggestion: [Swift.String]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocationEx(result: @escaping (_ countryCode: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func getTrendingSearchEx(result: @escaping (_ titles: [Swift.String]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(videoId: Swift.String, result: @escaping (_ videoUrl: Foundation.URL?, _ videoId: Swift.String, _ metadata: [Swift.AnyHashable : Any]?) -> Swift.Void)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWWEx(result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
@ -476,44 +419,38 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static func ytArtistDetailEx(artistId: Swift.String, result: @escaping (_ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchVideos(title: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPlaylists(title: Swift.String, nextToken: Swift.String?) async -> (playlists: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylist(playlistId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchChannels(title: Swift.String, nextToken: Swift.String?) async -> (channels: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfChannel(_ channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
#endif
@available(*, deprecated, message: "Use getVideosOfChannel(channelId:nextToken:) instead.")
@_Concurrency.MainActor public static func getVideosOfChannel(channelName: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getVideosOfChannel(channelId: Swift.String, nextToken: Swift.String?) async -> (videos: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func getAllVideosOfPlaylist(_ playlistId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Use ytSongs(countrycode) instead.")
@_Concurrency.MainActor public static func topSongs() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytMusicVideosEx(countrycode) instead.")
@_Concurrency.MainActor public static func topVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytTrendingEx(countrycode) instead.")
@_Concurrency.MainActor public static func trendingVideos() async -> [[Swift.AnyHashable : Any]]
@available(*, deprecated, message: "Use ytArtistsEx(countrycode) instead.")
@_Concurrency.MainActor public static func topChannels() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func listCategory() async -> [(category_id: Swift.String, title: Swift.String)]
@available(*, deprecated, message: "Old API, not used.")
@_Concurrency.MainActor public static func getVideosOfCategory(categoryId: Swift.String) async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func autocompleteSearch(_ text: Swift.String) async -> [Swift.String]
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLocation() async -> Swift.String?
#endif
@_Concurrency.MainActor public static func getTrendingSearch() async -> [Swift.String]
}
extension M2Kit.M2API {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlay(videoId: Swift.String) async -> (videoUrl: Foundation.URL?, videoId: Swift.String, metadata: [Swift.AnyHashable : Any]?)
#endif
}
extension M2Kit.M2API {
@_Concurrency.MainActor public static func kworbMusicVideoWW() async -> [[Swift.AnyHashable : Any]]
@ -536,24 +473,12 @@ extension M2Kit.M2API {
@_Concurrency.MainActor public static var backupCode: Swift.String {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackup(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackup(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersion(code: Swift.String, result: @escaping (_ num: Swift.Int?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupVersions(codes: [Swift.String], result: @escaping (_ results: [Swift.String : Swift.Int?]) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadBackupPlaylist(code: Swift.String, data: Foundation.Data, result: @escaping (_ url: Swift.String?, _ version: Swift.Int) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getBackupPlaylist(code: Swift.String, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
}
public let m2Version: Swift.String
@_Concurrency.MainActor public func setServiceType(_ type: Swift.String)
@ -562,26 +487,33 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendFeedback(content: Swift.String, result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2HTTP {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getData(url: Foundation.URL) async -> Foundation.Data?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageDataEx(url: Foundation.URL, result: @escaping (_ data: Foundation.Data?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getImageData(url: Foundation.URL) async -> Foundation.Data?
#endif
}
@_Concurrency.MainActor public struct M2IAP {
@_Concurrency.MainActor public static let IAPPurchasedSuccessNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPUserCancelActionNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductStatusUpdatedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let IAPProductsAvailableChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func setup(iapId: Swift.String)
@_Concurrency.MainActor public static var isEnable: Swift.Bool {
get
}
@_Concurrency.MainActor public static var isProVersion: Swift.Bool {
get
}
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage, result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func uploadImage(_ image: UIKit.UIImage) async -> Swift.String?
#endif
}
@_Concurrency.MainActor public struct M2K {
@_Concurrency.MainActor public static func start(c: Swift.String = "", t: Swift.String = "", d: Swift.Int = 0, result: @escaping () -> Swift.Void)
@ -592,9 +524,7 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static func sendAllEvents(result: @escaping (_ isOK: Swift.Bool) -> Swift.Void)
}
@_Concurrency.MainActor public struct M2Musi {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistWithCode(_ code: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
public enum M2NetConnecttionType {
case wifi
@ -607,15 +537,28 @@ public enum M2NetConnecttionType {
get
}
}
@_Concurrency.MainActor public struct M2NetMonitor {
@_Concurrency.MainActor public func start(monitorHandler: @escaping (_ isConnected: Swift.Bool) -> Swift.Void)
@_Concurrency.MainActor public var isConnected: Swift.Bool {
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class M2NetMonitor : Foundation.ObservableObject {
@_Concurrency.MainActor public static let shared: M2Kit.M2NetMonitor
@Combine.Published<Swift.Bool> @_projectedValueProperty($isConnected) @_Concurrency.MainActor final public var isConnected: Swift.Bool {
get
}
@_Concurrency.MainActor public var connectionType: M2Kit.M2NetConnecttionType {
@_Concurrency.MainActor final public var $isConnected: Combine.Published<Swift.Bool>.Publisher {
get
}
@_Concurrency.MainActor public func stop()
@Combine.Published<M2Kit.M2NetConnecttionType> @_projectedValueProperty($connectionType) @_Concurrency.MainActor final public var connectionType: M2Kit.M2NetConnecttionType {
get
}
@_Concurrency.MainActor final public var $connectionType: Combine.Published<M2Kit.M2NetConnecttionType>.Publisher {
get
}
@Combine.Published<Swift.Bool> @_projectedValueProperty($isReady) @_Concurrency.MainActor final public var isReady: Swift.Bool {
get
}
@_Concurrency.MainActor final public var $isReady: Combine.Published<Swift.Bool>.Publisher {
get
}
public typealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
@objc deinit
}
@_Concurrency.MainActor public struct M2Radio {
}
@ -626,45 +569,45 @@ extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getCurrentRadioCountryCode() -> Swift.String
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchStationsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topStationsEx(token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForRadioEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listStationsByGenresEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ stations: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func stationInfoEx(station: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func searchPodcastsEx(title: Swift.String, token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listEpisodesOfPodcastEx(podcast: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ episodes: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func topPodcastsEx(token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
@_Concurrency.MainActor public static func listGenresForPodcastEx(result: @escaping (_ genres: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func listPodcastsByGenreEx(genre: [Swift.AnyHashable : Any], token: Swift.String?, result: @escaping (_ podcasts: [[Swift.AnyHashable : Any]], _ nextToken: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func podcastInfoEx(podcast: [Swift.AnyHashable : Any], result: @escaping (_ info: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(station: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getLinkPlayEx(episode: [Swift.AnyHashable : Any], result: @escaping (_ url: Swift.String?) -> Swift.Void)
#endif
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func countriesSupported() async -> [[Swift.AnyHashable : Any]]
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchStations(title: Swift.String, token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topStations(token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForRadio() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listStationsByGenres(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (stations: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func stationInfo(station: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func searchPodcasts(title: Swift.String, token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listEpisodesOfPodcast(podcast: [Swift.AnyHashable : Any], token: Swift.String?) async -> (episodes: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func topPodcasts(token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func listGenresForPodcast() async -> [[Swift.AnyHashable : Any]]
@_Concurrency.MainActor public static func listPodcastsByGenre(genre: [Swift.AnyHashable : Any], token: Swift.String?) async -> (podcasts: [[Swift.AnyHashable : Any]], nextToken: Swift.String?)
@_Concurrency.MainActor public static func podcastInfo(podcast: [Swift.AnyHashable : Any]) async -> Swift.String?
}
extension M2Kit.M2Radio {
@_Concurrency.MainActor public static func getLinkPlay(station: [Swift.AnyHashable : Any]) async -> Swift.String?
@_Concurrency.MainActor public static func getLinkPlay(episode: [Swift.AnyHashable : Any]) async -> Swift.String?
}
@_hasMissingDesignatedInitializers public class M2Setting {
public static var option10: Swift.String {
@ -939,12 +882,26 @@ extension M2Kit.M2Radio {
}
@objc deinit
}
public enum M2VideoStatus {
case none
case queueing
case loading
case done
public static func == (a: M2Kit.M2VideoStatus, b: M2Kit.M2VideoStatus) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
get
}
}
@_Concurrency.MainActor public struct M2Utils {
@_Concurrency.MainActor public static func workFor(trackID: Swift.String)
@_Concurrency.MainActor public static let workForChangedNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static let workForBeginNotification: Foundation.Notification.Name
@_Concurrency.MainActor public static func checkExisted(trackID: Swift.String) -> Swift.Bool
@_Concurrency.MainActor public static func checkStatus(trackID: Swift.String) -> M2Kit.M2VideoStatus
@_Concurrency.MainActor public static func deleteDataOf(trackID: Swift.String)
@_Concurrency.MainActor public static func filePathOf(trackID: Swift.String) -> Swift.String
@_Concurrency.MainActor public static func enableWorkForInCellularNetwork(_ enable: Swift.Bool)
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static var countryCode: Swift.String {
@ -955,14 +912,13 @@ extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func randomCode7() -> Swift.String
@_Concurrency.MainActor public static func randomCode11() -> Swift.String
}
extension M2Kit.M2Utils {
@_Concurrency.MainActor public static func weightedRandom(from items: [Swift.String], weights: [Swift.Int]) -> Swift.String
}
@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class M2WebVC : UIKit.UIViewController {
@_Concurrency.MainActor @objc override dynamic public func viewDidLoad()
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor @objc required dynamic public init?(coder: Foundation.NSCoder)
#endif
@objc deinit
}
@_Concurrency.MainActor public struct M2WebView : SwiftUI.UIViewControllerRepresentable {
@ -976,21 +932,15 @@ extension M2Kit.M2Utils {
public enum M2YTIDType : Swift.String {
case video
case playlist
#if compiler(>=5.3) && $NonescapableTypes
public init?(rawValue: Swift.String)
#endif
public typealias RawValue = Swift.String
public var rawValue: Swift.String {
get
}
}
@_Concurrency.MainActor public struct M2YT {
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func extractId(fromUrl: Swift.String) -> (id: Swift.String, type: M2Kit.M2YTIDType)?
#endif
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static func getVideosOfPlaylistId(_ playlistId: Swift.String, result: @escaping (_ title: Swift.String?, _ videos: [[Swift.AnyHashable : Any]]) -> Swift.Void)
#endif
}
extension M2Kit.SwiftyJSONError : Swift.Equatable {}
extension M2Kit.SwiftyJSONError : Swift.Hashable {}
@ -1004,6 +954,7 @@ extension M2Kit.M2API : Swift.Sendable {}
extension M2Kit.M2Backup : Swift.Sendable {}
extension M2Kit.M2Feedback : Swift.Sendable {}
extension M2Kit.M2HTTP : Swift.Sendable {}
extension M2Kit.M2IAP : Swift.Sendable {}
extension M2Kit.M2Image : Swift.Sendable {}
extension M2Kit.M2K : Swift.Sendable {}
extension M2Kit.M2Log : Swift.Sendable {}
@ -1012,6 +963,8 @@ extension M2Kit.M2NetConnecttionType : Swift.Equatable {}
extension M2Kit.M2NetConnecttionType : Swift.Hashable {}
extension M2Kit.M2NetMonitor : Swift.Sendable {}
extension M2Kit.M2Radio : Swift.Sendable {}
extension M2Kit.M2VideoStatus : Swift.Equatable {}
extension M2Kit.M2VideoStatus : Swift.Hashable {}
extension M2Kit.M2Utils : Swift.Sendable {}
extension M2Kit.M2WebView : Swift.Sendable {}
extension M2Kit.M2YTIDType : Swift.Equatable {}

View File

@ -1,4 +1,3 @@
framework module M2Kit {
header "M2Kit-Swift.h"
requires objc
}

View File

@ -6,55 +6,55 @@
<dict>
<key>Headers/M2Kit-Swift.h</key>
<data>
7Rdmc7huiI6sKd5bwPLEoLlkiYc=
kmG9FyD9DX6qXcD4xPSiHdPdJno=
</data>
<key>Info.plist</key>
<data>
qjZiqtpkjhuy8q3xK6+SiVJSmos=
PYogd+hy6knzlZMlZqnt/6otXqQ=
</data>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
<data>
w9o8sJIFRxlPLqXJY4kcydj734c=
Fva/KBWcztni5NvNeTyWvX2WlF4=
</data>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
<data>
BlhDlg7XWIRjWzJOBVWQQvSN5cM=
8buWAw/ZK6G+N23carWf9WBJBU8=
</data>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<data>
w1AZ1HcCk4KRPz2B6UQZhBjGwms=
S9OsWJUQD1hEJGWTQaX8blYkrGc=
</data>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
<data>
BlhDlg7XWIRjWzJOBVWQQvSN5cM=
8buWAw/ZK6G+N23carWf9WBJBU8=
</data>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<data>
QWlKeousIOWdmxhhNw75cQyQSL4=
jZHFLq5c1zmMK8xKduqxECWpHRQ=
</data>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
<data>
w9o8sJIFRxlPLqXJY4kcydj734c=
Fva/KBWcztni5NvNeTyWvX2WlF4=
</data>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
<data>
Q4xigWfSaq+1lnfBsd0Xrk/t7/o=
BB78lMYBU4kDVqmC87ESvGuk5qI=
</data>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
<data>
8HjONwDd23zXEEoiIU4Jrj5mXOs=
jK7v8hdpcUDe+oT6qlP+LLeC6IA=
</data>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
<data>
Q4xigWfSaq+1lnfBsd0Xrk/t7/o=
BB78lMYBU4kDVqmC87ESvGuk5qI=
</data>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<data>
2rsOy3F4x+2dplH3vqhXI03rBEI=
ty9IdDafmqG0c3249Xyb0YCiuOM=
</data>
<key>Modules/module.modulemap</key>
<data>
n8UZhGfofoCUF2Y9arJmb3ut22Y=
qXD3pnLRLPT3qWO+Wr+SjQp8yNw=
</data>
</dict>
<key>files2</key>
@ -63,84 +63,84 @@
<dict>
<key>hash2</key>
<data>
SzL7aZykET1tYTLu2DE+CPYFwYoxjE/pNa2/+qsMmJk=
3evUDBP/zWRzYV+plW5UscRxYX/JefrPAAkcJBYkCC0=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
<dict>
<key>hash2</key>
<data>
KNdXrWpqrRc3vCyehmUsODAyi2ndGzb5O91EOGyTTC8=
98NrTOHY6D0BRebJlQsytBo5Ma+HcHhZ6gR6K/LUI1M=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
C9WkYmmVBYgunQMeJMw9Mt+i0pOCqnyYVGY4zelwDD4=
jEC4CyJZ9gD0BWPhiZcDKH1h4HyjH7xm73QW2rYFfDc=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<dict>
<key>hash2</key>
<data>
vlp/WLTrp9AaFH+eBhU+ribJIxx97WOIfhj9J8Ne0qg=
uAT9a3g3MJTMtQ7sftLak3vUNNfZf+A85/ZxU1IXW/g=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
C9WkYmmVBYgunQMeJMw9Mt+i0pOCqnyYVGY4zelwDD4=
jEC4CyJZ9gD0BWPhiZcDKH1h4HyjH7xm73QW2rYFfDc=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
SWvhEydjIAKVwOBuJRwvfcikmaTyNeqbm1+WudgCGsQ=
90ZfrZAPW5D3dN7yK92i2mNKBtZKeXAX2PGiAmbR9q0=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
<dict>
<key>hash2</key>
<data>
KNdXrWpqrRc3vCyehmUsODAyi2ndGzb5O91EOGyTTC8=
98NrTOHY6D0BRebJlQsytBo5Ma+HcHhZ6gR6K/LUI1M=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
E01EpI7kKlXb2jh1tiU90/AEqp3qcsQntjEqqhZYl3U=
Ab5oE/nYcAnFUkTWbAAe4wkbiFrJjiUJU2UoLHZW21c=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
<dict>
<key>hash2</key>
<data>
uSc+3ySjVwQvGACoK3UqinGz0SlBzalOgSf515UU1lY=
IqxkHSi13uvRbjPTExbZYmIViVLJRKvDO1oi2+WA/D4=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
E01EpI7kKlXb2jh1tiU90/AEqp3qcsQntjEqqhZYl3U=
Ab5oE/nYcAnFUkTWbAAe4wkbiFrJjiUJU2UoLHZW21c=
</data>
</dict>
<key>Modules/M2Kit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
8VMY7mqWpMVlQ+6iOU8nvqVjS+NWZc4GR5L84n3dmGc=
87Iq9BBtBpOJAK30WqkITfkM0hisfhk4VskgvOkDrRk=
</data>
</dict>
<key>Modules/module.modulemap</key>
<dict>
<key>hash2</key>
<data>
P0GTeNVvyR+ml51cVmqnRlvKjJYeeF4GdLyZwo9Knw4=
UMwtPXwWD0/VtYisYFVpQZPhMH1Ms3EaM5hY0M6giKY=
</data>
</dict>
</dict>

View File

@ -1,3 +1,3 @@
M2Kit
=====
5.17
5.35