This commit is contained in:
2026-03-20 11:04:19 +07:00
parent e6c206197c
commit cd16fd3ce3
32 changed files with 1775 additions and 111 deletions

View File

@ -12650,7 +12650,8 @@
"HasInitialValue",
"HasStorage",
"Custom",
"AccessControl"
"AccessControl",
"RawDocComment"
],
"isLet": true,
"hasStorage": true,
@ -12698,7 +12699,8 @@
"HasInitialValue",
"HasStorage",
"Custom",
"AccessControl"
"AccessControl",
"RawDocComment"
],
"isLet": true,
"hasStorage": true,
@ -12746,7 +12748,8 @@
"HasInitialValue",
"HasStorage",
"Custom",
"AccessControl"
"AccessControl",
"RawDocComment"
],
"isLet": true,
"hasStorage": true,
@ -12794,7 +12797,8 @@
"HasInitialValue",
"HasStorage",
"Custom",
"AccessControl"
"AccessControl",
"RawDocComment"
],
"isLet": true,
"hasStorage": true,
@ -12820,6 +12824,208 @@
"accessorKind": "get"
}
]
},
{
"kind": "Function",
"name": "setup",
"printedName": "setup(iapId:)",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"declKind": "Func",
"usr": "s:5M2Kit0A3IAPV5setup5iapIdySS_tFZ",
"mangledName": "$s5M2Kit0A3IAPV5setup5iapIdySS_tFZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"funcSelfKind": "NonMutating"
},
{
"kind": "Var",
"name": "isProVersion",
"printedName": "isProVersion",
"children": [
{
"kind": "TypeNominal",
"name": "Bool",
"printedName": "Swift.Bool",
"usr": "s:Sb"
}
],
"declKind": "Var",
"usr": "s:5M2Kit0A3IAPV12isProVersionSbvpZ",
"mangledName": "$s5M2Kit0A3IAPV12isProVersionSbvpZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"accessors": [
{
"kind": "Accessor",
"name": "Get",
"printedName": "Get()",
"children": [
{
"kind": "TypeNominal",
"name": "Bool",
"printedName": "Swift.Bool",
"usr": "s:Sb"
}
],
"declKind": "Accessor",
"usr": "s:5M2Kit0A3IAPV12isProVersionSbvgZ",
"mangledName": "$s5M2Kit0A3IAPV12isProVersionSbvgZ",
"moduleName": "M2Kit",
"static": true,
"accessorKind": "get"
}
]
},
{
"kind": "Var",
"name": "priceProVersion",
"printedName": "priceProVersion",
"children": [
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "Swift.String?",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:Sq"
}
],
"declKind": "Var",
"usr": "s:5M2Kit0A3IAPV15priceProVersionSSSgvpZ",
"mangledName": "$s5M2Kit0A3IAPV15priceProVersionSSSgvpZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"accessors": [
{
"kind": "Accessor",
"name": "Get",
"printedName": "Get()",
"children": [
{
"kind": "TypeNominal",
"name": "Optional",
"printedName": "Swift.String?",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:Sq"
}
],
"declKind": "Accessor",
"usr": "s:5M2Kit0A3IAPV15priceProVersionSSSgvgZ",
"mangledName": "$s5M2Kit0A3IAPV15priceProVersionSSSgvgZ",
"moduleName": "M2Kit",
"static": true,
"accessorKind": "get"
}
]
},
{
"kind": "Function",
"name": "fetch",
"printedName": "fetch()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
}
],
"declKind": "Func",
"usr": "s:5M2Kit0A3IAPV5fetchyyFZ",
"mangledName": "$s5M2Kit0A3IAPV5fetchyyFZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "purchaseProVersion",
"printedName": "purchaseProVersion()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
}
],
"declKind": "Func",
"usr": "s:5M2Kit0A3IAPV18purchaseProVersionyyFZ",
"mangledName": "$s5M2Kit0A3IAPV18purchaseProVersionyyFZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "restorePurchase",
"printedName": "restorePurchase()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
}
],
"declKind": "Func",
"usr": "s:5M2Kit0A3IAPV15restorePurchaseyyFZ",
"mangledName": "$s5M2Kit0A3IAPV15restorePurchaseyyFZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"AccessControl",
"RawDocComment"
],
"funcSelfKind": "NonMutating"
}
],
"declKind": "Struct",
@ -12828,7 +13034,8 @@
"moduleName": "M2Kit",
"declAttributes": [
"AccessControl",
"Custom"
"Custom",
"RawDocComment"
],
"conformances": [
{
@ -20585,6 +20792,58 @@
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
},
{
"kind": "Function",
"name": "weightedRandom",
"printedName": "weightedRandom(from:weights:)",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
},
{
"kind": "TypeNominal",
"name": "Array",
"printedName": "[Swift.String]",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"usr": "s:Sa"
},
{
"kind": "TypeNominal",
"name": "Array",
"printedName": "[Swift.Int]",
"children": [
{
"kind": "TypeNominal",
"name": "Int",
"printedName": "Swift.Int",
"usr": "s:Si"
}
],
"usr": "s:Sa"
}
],
"declKind": "Func",
"usr": "s:5M2Kit0A5UtilsV14weightedRandom4from7weightsSSSaySSG_SaySiGtFZ",
"mangledName": "$s5M2Kit0A5UtilsV14weightedRandom4from7weightsSSSaySSG_SaySiGtFZ",
"moduleName": "M2Kit",
"static": true,
"declAttributes": [
"Custom",
"RawDocComment"
],
"isFromExtension": true,
"funcSelfKind": "NonMutating"
}
],
"declKind": "Struct",
@ -21519,6 +21778,13 @@
"declKind": "Import",
"moduleName": "M2Kit"
},
{
"kind": "Import",
"name": "StoreKit",
"printedName": "StoreKit",
"declKind": "Import",
"moduleName": "M2Kit"
},
{
"kind": "Import",
"name": "Foundation",
@ -25063,33 +25329,33 @@
"kind": "StringLiteral",
"offset": 131,
"length": 6,
"value": "\"5.24\""
"value": "\"5.25\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Public\/M2IAP.swift",
"kind": "StringLiteral",
"offset": 209,
"offset": 400,
"length": 33,
"value": "\"IAPPurchasedSuccessNotification\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Public\/M2IAP.swift",
"kind": "StringLiteral",
"offset": 315,
"offset": 545,
"length": 30,
"value": "\"IAPPurchasedFailNotification\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Public\/M2IAP.swift",
"kind": "StringLiteral",
"offset": 430,
"offset": 752,
"length": 37,
"value": "\"IAPProductStatusUpdatedNotification\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Public\/M2IAP.swift",
"kind": "StringLiteral",
"offset": 551,
"offset": 945,
"length": 41,
"value": "\"IAPProductsAvailableChangedNotification\""
},
@ -26031,6 +26297,34 @@
"length": 42,
"value": "\"https:\/\/storage.g7software.net\/microblog\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/IAPService.swift",
"kind": "Array",
"offset": 268,
"length": 2,
"value": "[]"
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/IAPService.swift",
"kind": "Array",
"offset": 309,
"length": 2,
"value": "[]"
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/IAPService.swift",
"kind": "Array",
"offset": 359,
"length": 2,
"value": "[]"
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/IAPService.swift",
"kind": "StringLiteral",
"offset": 403,
"length": 30,
"value": "\"M2Kit.IAPService.isPurchased\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/IntCounter.swift",
"kind": "StringLiteral",
@ -26185,31 +26479,38 @@
"length": 1,
"value": "0"
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Utils.swift",
"kind": "StringLiteral",
"offset": 946,
"length": 18,
"value": "\"yt51.product.pro\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Utils.swift",
"kind": "IntegerLiteral",
"offset": 1372,
"offset": 1420,
"length": 1,
"value": "0"
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Utils.swift",
"kind": "StringLiteral",
"offset": 1310,
"offset": 1358,
"length": 22,
"value": "\".kSavedCfgVersionKey\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Utils.swift",
"kind": "StringLiteral",
"offset": 1409,
"offset": 1457,
"length": 15,
"value": "\".kSavedCfgKey\""
},
{
"filePath": "\/Users\/cuongkc\/Projects\/M2Kit\/M2Kit\/Utils.swift",
"kind": "StringLiteral",
"offset": 8284,
"offset": 8452,
"length": 11,
"value": "\"123aA@123\""
},

View File

@ -600,6 +600,18 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: 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 isProVersion: Swift.Bool {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
#endif
@_Concurrency.MainActor public static func fetch()
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@ -994,6 +1006,9 @@ 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

View File

@ -600,6 +600,18 @@ public let m2Version: Swift.String
@_Concurrency.MainActor public static let IAPPurchasedFailNotification: 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 isProVersion: Swift.Bool {
get
}
#if compiler(>=5.3) && $NonescapableTypes
@_Concurrency.MainActor public static var priceProVersion: Swift.String? {
get
}
#endif
@_Concurrency.MainActor public static func fetch()
@_Concurrency.MainActor public static func purchaseProVersion()
@_Concurrency.MainActor public static func restorePurchase()
}
@_Concurrency.MainActor public struct M2Image {
#if compiler(>=5.3) && $NonescapableTypes
@ -994,6 +1006,9 @@ 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