gomarketme-react-native 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +89 -51
- package/android/build.gradle +46 -0
- package/android/libs/core-5.0.0.jar +0 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/co/gomarketme/reactnative/GoMarketMeReactNativeModule.kt +184 -0
- package/android/src/main/java/co/gomarketme/reactnative/GoMarketMeReactNativePackage.kt +16 -0
- package/gomarketme-react-native.podspec +18 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/Info.plist +44 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/GoMarketMeAppleCoreKit +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Info.plist +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios.abi.json +2932 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios.package.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios.private.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/GoMarketMeAppleCoreKit +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Info.plist +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios-simulator.abi.json +2932 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +2932 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/Modules/GoMarketMeAppleCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +86 -0
- package/ios/Frameworks/GoMarketMeAppleCoreKit.xcframework/ios-arm64_x86_64-simulator/GoMarketMeAppleCoreKit.framework/_CodeSignature/CodeResources +101 -0
- package/ios/GoMarketMeReactNative.swift +133 -0
- package/ios/GoMarketMeReactNativeBridge.m +17 -0
- package/{dist → lib}/index.d.ts +27 -30
- package/lib/index.js +172 -0
- package/package.json +41 -18
- package/react-native.config.js +12 -0
- package/.editorconfig +0 -15
- package/.gitattributes +0 -3
- package/.github/actions/setup/action.yml +0 -27
- package/.github/workflows/ci.yml +0 -157
- package/.nvmrc +0 -1
- package/.watchmanconfig +0 -1
- package/.yarn/releases/yarn-4.3.1-git.20240705.hash-35167b2.cjs +0 -894
- package/.yarnrc.yml +0 -5
- package/dist/index.js +0 -544
- package/lefthook.yml +0 -35
- package/src/index.tsx +0 -392
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name GoMarketMeAppleCoreKit -package-name apple
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
|
+
import Foundation
|
|
6
|
+
import StoreKit
|
|
7
|
+
import Swift
|
|
8
|
+
import UIKit
|
|
9
|
+
import _Concurrency
|
|
10
|
+
import _StringProcessing
|
|
11
|
+
import _SwiftConcurrencyShims
|
|
12
|
+
final public class GoMarketMeAppleApiClient : @unchecked Swift.Sendable {
|
|
13
|
+
public init(session: Foundation.URLSession = .shared)
|
|
14
|
+
final public func postSDKInitialization(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async throws
|
|
15
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
16
|
+
final public func postSystemInfo(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, payload: [Swift.String : Any]) async throws -> [Swift.String : Any]?
|
|
17
|
+
#endif
|
|
18
|
+
final public func sendPurchaseEvent(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async throws
|
|
19
|
+
@objc deinit
|
|
20
|
+
}
|
|
21
|
+
public struct GoMarketMeAppleCurrentPurchaseSyncResult : Swift.Sendable {
|
|
22
|
+
public let fetchedCount: Swift.Int
|
|
23
|
+
public let sentCount: Swift.Int
|
|
24
|
+
public let failedCount: Swift.Int
|
|
25
|
+
public let success: Swift.Bool
|
|
26
|
+
public init(fetchedCount: Swift.Int, sentCount: Swift.Int, failedCount: Swift.Int, success: Swift.Bool)
|
|
27
|
+
}
|
|
28
|
+
@available(iOS 15.0, *)
|
|
29
|
+
final public class GoMarketMeAppleCore : @unchecked Swift.Sendable {
|
|
30
|
+
public static let isDebugLoggingEnabled: Swift.Bool
|
|
31
|
+
final public var onPurchase: ((GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) -> Swift.Void)?
|
|
32
|
+
final public var onError: ((any Swift.Error) -> Swift.Void)?
|
|
33
|
+
public init(apiClient: GoMarketMeAppleCoreKit.GoMarketMeAppleApiClient = GoMarketMeAppleApiClient())
|
|
34
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
35
|
+
final public func prepareAttribution(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async -> (configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, affiliateMarketingData: [Swift.String : Any]?)
|
|
36
|
+
#endif
|
|
37
|
+
final public func configure(_ configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration)
|
|
38
|
+
final public func start()
|
|
39
|
+
final public func stop()
|
|
40
|
+
final public func syncAllTransactions() async -> GoMarketMeAppleCoreKit.GoMarketMeAppleCurrentPurchaseSyncResult
|
|
41
|
+
final public func currentPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
42
|
+
final public func unfinishedPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
43
|
+
final public func allPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
44
|
+
final public func send(_ event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async
|
|
45
|
+
final public func debugAllTransactions() async -> [[Swift.String : Any]]
|
|
46
|
+
@objc deinit
|
|
47
|
+
}
|
|
48
|
+
public enum GoMarketMeAppleCoreEndpoints {
|
|
49
|
+
public static let sdkInitialization: Foundation.URL
|
|
50
|
+
public static let systemInfo: Foundation.URL
|
|
51
|
+
public static let event: Foundation.URL
|
|
52
|
+
}
|
|
53
|
+
public struct GoMarketMeAppleCoreConfiguration : Swift.Sendable {
|
|
54
|
+
public let apiKey: Swift.String
|
|
55
|
+
public let affiliateCampaignCode: Swift.String?
|
|
56
|
+
public let deviceId: Swift.String?
|
|
57
|
+
public let sourceName: Swift.String
|
|
58
|
+
public let sdkType: Swift.String?
|
|
59
|
+
public let sdkVersion: Swift.String?
|
|
60
|
+
public let packageName: Swift.String?
|
|
61
|
+
public let eventEndpoint: Foundation.URL
|
|
62
|
+
public let sdkInitializationEndpoint: Foundation.URL
|
|
63
|
+
public let systemInfoEndpoint: Foundation.URL
|
|
64
|
+
public let isProduction: Swift.Bool?
|
|
65
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
66
|
+
public init(apiKey: Swift.String, affiliateCampaignCode: Swift.String? = nil, deviceId: Swift.String? = nil, sourceName: Swift.String = "app_store", sdkType: Swift.String? = nil, sdkVersion: Swift.String? = nil, packageName: Swift.String? = nil, eventEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.event, sdkInitializationEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.sdkInitialization, systemInfoEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.systemInfo, isProduction: Swift.Bool? = nil)
|
|
67
|
+
#endif
|
|
68
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
69
|
+
public func withAttribution(affiliateCampaignCode: Swift.String?, deviceId: Swift.String?, packageName: Swift.String?) -> GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration
|
|
70
|
+
#endif
|
|
71
|
+
}
|
|
72
|
+
@available(iOS 15.0, *)
|
|
73
|
+
public struct GoMarketMeApplePurchaseEvent {
|
|
74
|
+
public let productID: Swift.String
|
|
75
|
+
public let transactionID: Swift.String
|
|
76
|
+
public let originalTransactionID: Swift.String
|
|
77
|
+
public let signedTransaction: Swift.String?
|
|
78
|
+
public let purchaseDate: Foundation.Date
|
|
79
|
+
public let expirationDate: Foundation.Date?
|
|
80
|
+
public let productType: Swift.String
|
|
81
|
+
public let products: [[Swift.String : Any]]
|
|
82
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
83
|
+
public init(productID: Swift.String, transactionID: Swift.String, originalTransactionID: Swift.String, signedTransaction: Swift.String?, purchaseDate: Foundation.Date, expirationDate: Foundation.Date?, productType: Swift.String, products: [[Swift.String : Any]] = [])
|
|
84
|
+
#endif
|
|
85
|
+
public func toDictionary() -> [Swift.String : Any]
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name GoMarketMeAppleCoreKit -package-name apple
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
|
+
import Foundation
|
|
6
|
+
import StoreKit
|
|
7
|
+
import Swift
|
|
8
|
+
import UIKit
|
|
9
|
+
import _Concurrency
|
|
10
|
+
import _StringProcessing
|
|
11
|
+
import _SwiftConcurrencyShims
|
|
12
|
+
final public class GoMarketMeAppleApiClient : @unchecked Swift.Sendable {
|
|
13
|
+
public init(session: Foundation.URLSession = .shared)
|
|
14
|
+
final public func postSDKInitialization(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async throws
|
|
15
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
16
|
+
final public func postSystemInfo(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, payload: [Swift.String : Any]) async throws -> [Swift.String : Any]?
|
|
17
|
+
#endif
|
|
18
|
+
final public func sendPurchaseEvent(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async throws
|
|
19
|
+
@objc deinit
|
|
20
|
+
}
|
|
21
|
+
public struct GoMarketMeAppleCurrentPurchaseSyncResult : Swift.Sendable {
|
|
22
|
+
public let fetchedCount: Swift.Int
|
|
23
|
+
public let sentCount: Swift.Int
|
|
24
|
+
public let failedCount: Swift.Int
|
|
25
|
+
public let success: Swift.Bool
|
|
26
|
+
public init(fetchedCount: Swift.Int, sentCount: Swift.Int, failedCount: Swift.Int, success: Swift.Bool)
|
|
27
|
+
}
|
|
28
|
+
@available(iOS 15.0, *)
|
|
29
|
+
final public class GoMarketMeAppleCore : @unchecked Swift.Sendable {
|
|
30
|
+
public static let isDebugLoggingEnabled: Swift.Bool
|
|
31
|
+
final public var onPurchase: ((GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) -> Swift.Void)?
|
|
32
|
+
final public var onError: ((any Swift.Error) -> Swift.Void)?
|
|
33
|
+
public init(apiClient: GoMarketMeAppleCoreKit.GoMarketMeAppleApiClient = GoMarketMeAppleApiClient())
|
|
34
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
35
|
+
final public func prepareAttribution(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async -> (configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, affiliateMarketingData: [Swift.String : Any]?)
|
|
36
|
+
#endif
|
|
37
|
+
final public func configure(_ configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration)
|
|
38
|
+
final public func start()
|
|
39
|
+
final public func stop()
|
|
40
|
+
final public func syncAllTransactions() async -> GoMarketMeAppleCoreKit.GoMarketMeAppleCurrentPurchaseSyncResult
|
|
41
|
+
final public func currentPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
42
|
+
final public func unfinishedPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
43
|
+
final public func allPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
44
|
+
final public func send(_ event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async
|
|
45
|
+
final public func debugAllTransactions() async -> [[Swift.String : Any]]
|
|
46
|
+
@objc deinit
|
|
47
|
+
}
|
|
48
|
+
public enum GoMarketMeAppleCoreEndpoints {
|
|
49
|
+
public static let sdkInitialization: Foundation.URL
|
|
50
|
+
public static let systemInfo: Foundation.URL
|
|
51
|
+
public static let event: Foundation.URL
|
|
52
|
+
}
|
|
53
|
+
public struct GoMarketMeAppleCoreConfiguration : Swift.Sendable {
|
|
54
|
+
public let apiKey: Swift.String
|
|
55
|
+
public let affiliateCampaignCode: Swift.String?
|
|
56
|
+
public let deviceId: Swift.String?
|
|
57
|
+
public let sourceName: Swift.String
|
|
58
|
+
public let sdkType: Swift.String?
|
|
59
|
+
public let sdkVersion: Swift.String?
|
|
60
|
+
public let packageName: Swift.String?
|
|
61
|
+
public let eventEndpoint: Foundation.URL
|
|
62
|
+
public let sdkInitializationEndpoint: Foundation.URL
|
|
63
|
+
public let systemInfoEndpoint: Foundation.URL
|
|
64
|
+
public let isProduction: Swift.Bool?
|
|
65
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
66
|
+
public init(apiKey: Swift.String, affiliateCampaignCode: Swift.String? = nil, deviceId: Swift.String? = nil, sourceName: Swift.String = "app_store", sdkType: Swift.String? = nil, sdkVersion: Swift.String? = nil, packageName: Swift.String? = nil, eventEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.event, sdkInitializationEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.sdkInitialization, systemInfoEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.systemInfo, isProduction: Swift.Bool? = nil)
|
|
67
|
+
#endif
|
|
68
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
69
|
+
public func withAttribution(affiliateCampaignCode: Swift.String?, deviceId: Swift.String?, packageName: Swift.String?) -> GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration
|
|
70
|
+
#endif
|
|
71
|
+
}
|
|
72
|
+
@available(iOS 15.0, *)
|
|
73
|
+
public struct GoMarketMeApplePurchaseEvent {
|
|
74
|
+
public let productID: Swift.String
|
|
75
|
+
public let transactionID: Swift.String
|
|
76
|
+
public let originalTransactionID: Swift.String
|
|
77
|
+
public let signedTransaction: Swift.String?
|
|
78
|
+
public let purchaseDate: Foundation.Date
|
|
79
|
+
public let expirationDate: Foundation.Date?
|
|
80
|
+
public let productType: Swift.String
|
|
81
|
+
public let products: [[Swift.String : Any]]
|
|
82
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
83
|
+
public init(productID: Swift.String, transactionID: Swift.String, originalTransactionID: Swift.String, signedTransaction: Swift.String?, purchaseDate: Foundation.Date, expirationDate: Foundation.Date?, productType: Swift.String, products: [[Swift.String : Any]] = [])
|
|
84
|
+
#endif
|
|
85
|
+
public func toDictionary() -> [Swift.String : Any]
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name GoMarketMeAppleCoreKit -package-name apple
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2
|
|
5
|
+
import Foundation
|
|
6
|
+
import StoreKit
|
|
7
|
+
import Swift
|
|
8
|
+
import UIKit
|
|
9
|
+
import _Concurrency
|
|
10
|
+
import _StringProcessing
|
|
11
|
+
import _SwiftConcurrencyShims
|
|
12
|
+
final public class GoMarketMeAppleApiClient : @unchecked Swift.Sendable {
|
|
13
|
+
public init(session: Foundation.URLSession = .shared)
|
|
14
|
+
final public func postSDKInitialization(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async throws
|
|
15
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
16
|
+
final public func postSystemInfo(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, payload: [Swift.String : Any]) async throws -> [Swift.String : Any]?
|
|
17
|
+
#endif
|
|
18
|
+
final public func sendPurchaseEvent(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async throws
|
|
19
|
+
@objc deinit
|
|
20
|
+
}
|
|
21
|
+
public struct GoMarketMeAppleCurrentPurchaseSyncResult : Swift.Sendable {
|
|
22
|
+
public let fetchedCount: Swift.Int
|
|
23
|
+
public let sentCount: Swift.Int
|
|
24
|
+
public let failedCount: Swift.Int
|
|
25
|
+
public let success: Swift.Bool
|
|
26
|
+
public init(fetchedCount: Swift.Int, sentCount: Swift.Int, failedCount: Swift.Int, success: Swift.Bool)
|
|
27
|
+
}
|
|
28
|
+
@available(iOS 15.0, *)
|
|
29
|
+
final public class GoMarketMeAppleCore : @unchecked Swift.Sendable {
|
|
30
|
+
public static let isDebugLoggingEnabled: Swift.Bool
|
|
31
|
+
final public var onPurchase: ((GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) -> Swift.Void)?
|
|
32
|
+
final public var onError: ((any Swift.Error) -> Swift.Void)?
|
|
33
|
+
public init(apiClient: GoMarketMeAppleCoreKit.GoMarketMeAppleApiClient = GoMarketMeAppleApiClient())
|
|
34
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
35
|
+
final public func prepareAttribution(configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration) async -> (configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration, affiliateMarketingData: [Swift.String : Any]?)
|
|
36
|
+
#endif
|
|
37
|
+
final public func configure(_ configuration: GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration)
|
|
38
|
+
final public func start()
|
|
39
|
+
final public func stop()
|
|
40
|
+
final public func syncAllTransactions() async -> GoMarketMeAppleCoreKit.GoMarketMeAppleCurrentPurchaseSyncResult
|
|
41
|
+
final public func currentPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
42
|
+
final public func unfinishedPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
43
|
+
final public func allPurchases() async throws -> [GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent]
|
|
44
|
+
final public func send(_ event: GoMarketMeAppleCoreKit.GoMarketMeApplePurchaseEvent) async
|
|
45
|
+
final public func debugAllTransactions() async -> [[Swift.String : Any]]
|
|
46
|
+
@objc deinit
|
|
47
|
+
}
|
|
48
|
+
public enum GoMarketMeAppleCoreEndpoints {
|
|
49
|
+
public static let sdkInitialization: Foundation.URL
|
|
50
|
+
public static let systemInfo: Foundation.URL
|
|
51
|
+
public static let event: Foundation.URL
|
|
52
|
+
}
|
|
53
|
+
public struct GoMarketMeAppleCoreConfiguration : Swift.Sendable {
|
|
54
|
+
public let apiKey: Swift.String
|
|
55
|
+
public let affiliateCampaignCode: Swift.String?
|
|
56
|
+
public let deviceId: Swift.String?
|
|
57
|
+
public let sourceName: Swift.String
|
|
58
|
+
public let sdkType: Swift.String?
|
|
59
|
+
public let sdkVersion: Swift.String?
|
|
60
|
+
public let packageName: Swift.String?
|
|
61
|
+
public let eventEndpoint: Foundation.URL
|
|
62
|
+
public let sdkInitializationEndpoint: Foundation.URL
|
|
63
|
+
public let systemInfoEndpoint: Foundation.URL
|
|
64
|
+
public let isProduction: Swift.Bool?
|
|
65
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
66
|
+
public init(apiKey: Swift.String, affiliateCampaignCode: Swift.String? = nil, deviceId: Swift.String? = nil, sourceName: Swift.String = "app_store", sdkType: Swift.String? = nil, sdkVersion: Swift.String? = nil, packageName: Swift.String? = nil, eventEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.event, sdkInitializationEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.sdkInitialization, systemInfoEndpoint: Foundation.URL = GoMarketMeAppleCoreEndpoints.systemInfo, isProduction: Swift.Bool? = nil)
|
|
67
|
+
#endif
|
|
68
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
69
|
+
public func withAttribution(affiliateCampaignCode: Swift.String?, deviceId: Swift.String?, packageName: Swift.String?) -> GoMarketMeAppleCoreKit.GoMarketMeAppleCoreConfiguration
|
|
70
|
+
#endif
|
|
71
|
+
}
|
|
72
|
+
@available(iOS 15.0, *)
|
|
73
|
+
public struct GoMarketMeApplePurchaseEvent {
|
|
74
|
+
public let productID: Swift.String
|
|
75
|
+
public let transactionID: Swift.String
|
|
76
|
+
public let originalTransactionID: Swift.String
|
|
77
|
+
public let signedTransaction: Swift.String?
|
|
78
|
+
public let purchaseDate: Foundation.Date
|
|
79
|
+
public let expirationDate: Foundation.Date?
|
|
80
|
+
public let productType: Swift.String
|
|
81
|
+
public let products: [[Swift.String : Any]]
|
|
82
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
83
|
+
public init(productID: Swift.String, transactionID: Swift.String, originalTransactionID: Swift.String, signedTransaction: Swift.String?, purchaseDate: Foundation.Date, expirationDate: Foundation.Date?, productType: Swift.String, products: [[Swift.String : Any]] = [])
|
|
84
|
+
#endif
|
|
85
|
+
public func toDictionary() -> [Swift.String : Any]
|
|
86
|
+
}
|
|
Binary file
|