appsprint-react-native 0.2.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 +173 -0
- package/android/build.gradle +39 -0
- package/android/libs/appsprint-sdk.aar +0 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/kotlin/com/appsprint/AppSprintBridgeModule.kt +182 -0
- package/android/src/main/kotlin/com/appsprint/AppSprintPackage.kt +16 -0
- package/app.plugin.js +3 -0
- package/appsprint-react-native.podspec +23 -0
- package/ios/AppSprintBridge.m +59 -0
- package/ios/AppSprintBridge.swift +210 -0
- package/ios/AppSprintSDK.xcframework/Info.plist +44 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/AppSprintSDK +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Headers/AppSprintSDK-Swift.h +3 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Info.plist +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios.abi.json +4952 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios.package.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64/AppSprintSDK.framework/Modules/module.modulemap +4 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/AppSprintSDK +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Headers/AppSprintSDK-Swift.h +3 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Info.plist +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +4952 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4952 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/AppSprintSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +165 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/Modules/module.modulemap +4 -0
- package/ios/AppSprintSDK.xcframework/ios-arm64_x86_64-simulator/AppSprintSDK.framework/_CodeSignature/CodeResources +101 -0
- package/lib/commonjs/AppSprint.js +50 -0
- package/lib/commonjs/NativeAppSprint.js +50 -0
- package/lib/commonjs/index.js +20 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/module/AppSprint.js +46 -0
- package/lib/module/NativeAppSprint.js +47 -0
- package/lib/module/index.js +5 -0
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +2 -0
- package/lib/typescript/AppSprint.d.ts +18 -0
- package/lib/typescript/NativeAppSprint.d.ts +4 -0
- package/lib/typescript/index.d.ts +4 -0
- package/lib/typescript/types.d.ts +60 -0
- package/package.json +56 -0
- package/plugin/build/index.d.ts +10 -0
- package/plugin/build/index.js +22 -0
- package/plugin/src/index.ts +27 -0
- package/src/AppSprint.ts +74 -0
- package/src/NativeAppSprint.ts +52 -0
- package/src/index.ts +13 -0
- package/src/types.ts +93 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name AppSprintSDK -package-name appsprint_ios
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
|
+
import AdServices
|
|
6
|
+
import AdSupport
|
|
7
|
+
import AppTrackingTransparency
|
|
8
|
+
import Foundation
|
|
9
|
+
import Swift
|
|
10
|
+
import UIKit
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class AppSprint {
|
|
15
|
+
@_Concurrency.MainActor public static let shared: AppSprintSDK.AppSprint
|
|
16
|
+
@_Concurrency.MainActor final public var isInitialized: Swift.Bool {
|
|
17
|
+
get
|
|
18
|
+
}
|
|
19
|
+
@_Concurrency.MainActor public init()
|
|
20
|
+
@_Concurrency.MainActor final public func configure(_ config: AppSprintSDK.AppSprintConfig) async
|
|
21
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
22
|
+
@_Concurrency.MainActor final public func sendEvent(_ eventType: AppSprintSDK.AppSprintEventType, name: Swift.String? = nil, params: [Swift.String : Any]? = nil) async
|
|
23
|
+
#endif
|
|
24
|
+
@_Concurrency.MainActor final public func flush() async
|
|
25
|
+
@_Concurrency.MainActor final public func clearData()
|
|
26
|
+
@_Concurrency.MainActor final public func isSdkDisabled() -> Swift.Bool
|
|
27
|
+
@_Concurrency.MainActor final public func setCustomerUserId(_ userId: Swift.String) async
|
|
28
|
+
@_Concurrency.MainActor final public func sendTestEvent() async -> AppSprintSDK.TestEventResult
|
|
29
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
30
|
+
@_Concurrency.MainActor final public func getAppSprintId() -> Swift.String?
|
|
31
|
+
#endif
|
|
32
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
33
|
+
@_Concurrency.MainActor final public func getAttribution() -> AppSprintSDK.AttributionResult?
|
|
34
|
+
#endif
|
|
35
|
+
@_Concurrency.MainActor final public func enableAppleAdsAttribution()
|
|
36
|
+
@_Concurrency.MainActor final public func destroy()
|
|
37
|
+
@objc deinit
|
|
38
|
+
}
|
|
39
|
+
public struct AppSprintConfig : Swift.Sendable {
|
|
40
|
+
public var apiKey: Swift.String
|
|
41
|
+
public var apiURL: Foundation.URL
|
|
42
|
+
public var enableAppleAdsAttribution: Swift.Bool
|
|
43
|
+
public var isDebug: Swift.Bool
|
|
44
|
+
public var logLevel: AppSprintSDK.AppSprintLogLevel
|
|
45
|
+
public var customerUserId: Swift.String?
|
|
46
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
|
+
public init(apiKey: Swift.String, apiURL: Foundation.URL = URL(string: "https://api.appsprint.app")!, enableAppleAdsAttribution: Swift.Bool = true, isDebug: Swift.Bool = false, logLevel: AppSprintSDK.AppSprintLogLevel = .warn, customerUserId: Swift.String? = nil)
|
|
48
|
+
#endif
|
|
49
|
+
}
|
|
50
|
+
public enum AppSprintNative {
|
|
51
|
+
@_Concurrency.MainActor public static func getDeviceInfo() -> AppSprintSDK.DeviceInfo
|
|
52
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
53
|
+
public static func getAdServicesToken() -> Swift.String?
|
|
54
|
+
#endif
|
|
55
|
+
public static func requestTrackingAuthorization() async -> Swift.Bool
|
|
56
|
+
public static func storageSet(_ key: Swift.String, value: Swift.String)
|
|
57
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
58
|
+
public static func storageGet(_ key: Swift.String) -> Swift.String?
|
|
59
|
+
#endif
|
|
60
|
+
public static func storageRemove(_ key: Swift.String)
|
|
61
|
+
}
|
|
62
|
+
public enum AppSprintLogLevel : Swift.Int, Swift.Codable, Swift.Sendable {
|
|
63
|
+
case debug
|
|
64
|
+
case info
|
|
65
|
+
case warn
|
|
66
|
+
case error
|
|
67
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
68
|
+
public init?(rawValue: Swift.Int)
|
|
69
|
+
#endif
|
|
70
|
+
public typealias RawValue = Swift.Int
|
|
71
|
+
public var rawValue: Swift.Int {
|
|
72
|
+
get
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
public enum AppSprintEventType : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Sendable {
|
|
76
|
+
case login
|
|
77
|
+
case signUp
|
|
78
|
+
case register
|
|
79
|
+
case purchase
|
|
80
|
+
case subscribe
|
|
81
|
+
case startTrial
|
|
82
|
+
case addToCart
|
|
83
|
+
case addToWishlist
|
|
84
|
+
case initiateCheckout
|
|
85
|
+
case viewContent
|
|
86
|
+
case viewItem
|
|
87
|
+
case search
|
|
88
|
+
case share
|
|
89
|
+
case tutorialComplete
|
|
90
|
+
case levelStart
|
|
91
|
+
case levelComplete
|
|
92
|
+
case custom
|
|
93
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
94
|
+
public init?(rawValue: Swift.String)
|
|
95
|
+
#endif
|
|
96
|
+
public typealias AllCases = [AppSprintSDK.AppSprintEventType]
|
|
97
|
+
public typealias RawValue = Swift.String
|
|
98
|
+
nonisolated public static var allCases: [AppSprintSDK.AppSprintEventType] {
|
|
99
|
+
get
|
|
100
|
+
}
|
|
101
|
+
public var rawValue: Swift.String {
|
|
102
|
+
get
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
public struct AttributionResult : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
106
|
+
public let source: Swift.String
|
|
107
|
+
public let confidence: Swift.Double
|
|
108
|
+
public let campaignName: Swift.String?
|
|
109
|
+
public let utmSource: Swift.String?
|
|
110
|
+
public let utmMedium: Swift.String?
|
|
111
|
+
public let utmCampaign: Swift.String?
|
|
112
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
113
|
+
public init(source: Swift.String, confidence: Swift.Double, campaignName: Swift.String? = nil, utmSource: Swift.String? = nil, utmMedium: Swift.String? = nil, utmCampaign: Swift.String? = nil)
|
|
114
|
+
#endif
|
|
115
|
+
public static func == (a: AppSprintSDK.AttributionResult, b: AppSprintSDK.AttributionResult) -> Swift.Bool
|
|
116
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
117
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
118
|
+
}
|
|
119
|
+
public struct InstallResponse : Swift.Codable, Swift.Sendable {
|
|
120
|
+
public let appsprintId: Swift.String
|
|
121
|
+
public let attribution: AppSprintSDK.AttributionResult
|
|
122
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
123
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
124
|
+
}
|
|
125
|
+
public struct TestEventResult : Swift.Equatable, Swift.Sendable {
|
|
126
|
+
public let success: Swift.Bool
|
|
127
|
+
public let message: Swift.String
|
|
128
|
+
public init(success: Swift.Bool, message: Swift.String)
|
|
129
|
+
public static func == (a: AppSprintSDK.TestEventResult, b: AppSprintSDK.TestEventResult) -> Swift.Bool
|
|
130
|
+
}
|
|
131
|
+
public struct DeviceInfo : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
132
|
+
public let deviceModel: Swift.String?
|
|
133
|
+
public let screenWidth: Swift.Int?
|
|
134
|
+
public let screenHeight: Swift.Int?
|
|
135
|
+
public let locale: Swift.String?
|
|
136
|
+
public let timezone: Swift.String?
|
|
137
|
+
public let osVersion: Swift.String?
|
|
138
|
+
public let idfv: Swift.String?
|
|
139
|
+
public let idfa: Swift.String?
|
|
140
|
+
public let adServicesToken: Swift.String?
|
|
141
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
142
|
+
public init(deviceModel: Swift.String? = nil, screenWidth: Swift.Int? = nil, screenHeight: Swift.Int? = nil, locale: Swift.String? = nil, timezone: Swift.String? = nil, osVersion: Swift.String? = nil, idfv: Swift.String? = nil, idfa: Swift.String? = nil, adServicesToken: Swift.String? = nil)
|
|
143
|
+
#endif
|
|
144
|
+
public static func == (a: AppSprintSDK.DeviceInfo, b: AppSprintSDK.DeviceInfo) -> Swift.Bool
|
|
145
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
146
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
147
|
+
}
|
|
148
|
+
public struct AnyCodable : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
149
|
+
public let value: AppSprintSDK.AnySendable
|
|
150
|
+
public init(_ value: some Sendable)
|
|
151
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
152
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
153
|
+
public static func == (a: AppSprintSDK.AnyCodable, b: AppSprintSDK.AnyCodable) -> Swift.Bool
|
|
154
|
+
}
|
|
155
|
+
public struct AnySendable : @unchecked Swift.Sendable, Swift.Equatable {
|
|
156
|
+
public init(_ base: Any)
|
|
157
|
+
public static func == (lhs: AppSprintSDK.AnySendable, rhs: AppSprintSDK.AnySendable) -> Swift.Bool
|
|
158
|
+
}
|
|
159
|
+
extension AppSprintSDK.AppSprint : Swift.Sendable {}
|
|
160
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Equatable {}
|
|
161
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Hashable {}
|
|
162
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.RawRepresentable {}
|
|
163
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Equatable {}
|
|
164
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Hashable {}
|
|
165
|
+
extension AppSprintSDK.AppSprintEventType : Swift.RawRepresentable {}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name AppSprintSDK -package-name appsprint_ios
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
|
+
import AdServices
|
|
6
|
+
import AdSupport
|
|
7
|
+
import AppTrackingTransparency
|
|
8
|
+
import Foundation
|
|
9
|
+
import Swift
|
|
10
|
+
import UIKit
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class AppSprint {
|
|
15
|
+
@_Concurrency.MainActor public static let shared: AppSprintSDK.AppSprint
|
|
16
|
+
@_Concurrency.MainActor final public var isInitialized: Swift.Bool {
|
|
17
|
+
get
|
|
18
|
+
}
|
|
19
|
+
@_Concurrency.MainActor public init()
|
|
20
|
+
@_Concurrency.MainActor final public func configure(_ config: AppSprintSDK.AppSprintConfig) async
|
|
21
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
22
|
+
@_Concurrency.MainActor final public func sendEvent(_ eventType: AppSprintSDK.AppSprintEventType, name: Swift.String? = nil, params: [Swift.String : Any]? = nil) async
|
|
23
|
+
#endif
|
|
24
|
+
@_Concurrency.MainActor final public func flush() async
|
|
25
|
+
@_Concurrency.MainActor final public func clearData()
|
|
26
|
+
@_Concurrency.MainActor final public func isSdkDisabled() -> Swift.Bool
|
|
27
|
+
@_Concurrency.MainActor final public func setCustomerUserId(_ userId: Swift.String) async
|
|
28
|
+
@_Concurrency.MainActor final public func sendTestEvent() async -> AppSprintSDK.TestEventResult
|
|
29
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
30
|
+
@_Concurrency.MainActor final public func getAppSprintId() -> Swift.String?
|
|
31
|
+
#endif
|
|
32
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
33
|
+
@_Concurrency.MainActor final public func getAttribution() -> AppSprintSDK.AttributionResult?
|
|
34
|
+
#endif
|
|
35
|
+
@_Concurrency.MainActor final public func enableAppleAdsAttribution()
|
|
36
|
+
@_Concurrency.MainActor final public func destroy()
|
|
37
|
+
@objc deinit
|
|
38
|
+
}
|
|
39
|
+
public struct AppSprintConfig : Swift.Sendable {
|
|
40
|
+
public var apiKey: Swift.String
|
|
41
|
+
public var apiURL: Foundation.URL
|
|
42
|
+
public var enableAppleAdsAttribution: Swift.Bool
|
|
43
|
+
public var isDebug: Swift.Bool
|
|
44
|
+
public var logLevel: AppSprintSDK.AppSprintLogLevel
|
|
45
|
+
public var customerUserId: Swift.String?
|
|
46
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
|
+
public init(apiKey: Swift.String, apiURL: Foundation.URL = URL(string: "https://api.appsprint.app")!, enableAppleAdsAttribution: Swift.Bool = true, isDebug: Swift.Bool = false, logLevel: AppSprintSDK.AppSprintLogLevel = .warn, customerUserId: Swift.String? = nil)
|
|
48
|
+
#endif
|
|
49
|
+
}
|
|
50
|
+
public enum AppSprintNative {
|
|
51
|
+
@_Concurrency.MainActor public static func getDeviceInfo() -> AppSprintSDK.DeviceInfo
|
|
52
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
53
|
+
public static func getAdServicesToken() -> Swift.String?
|
|
54
|
+
#endif
|
|
55
|
+
public static func requestTrackingAuthorization() async -> Swift.Bool
|
|
56
|
+
public static func storageSet(_ key: Swift.String, value: Swift.String)
|
|
57
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
58
|
+
public static func storageGet(_ key: Swift.String) -> Swift.String?
|
|
59
|
+
#endif
|
|
60
|
+
public static func storageRemove(_ key: Swift.String)
|
|
61
|
+
}
|
|
62
|
+
public enum AppSprintLogLevel : Swift.Int, Swift.Codable, Swift.Sendable {
|
|
63
|
+
case debug
|
|
64
|
+
case info
|
|
65
|
+
case warn
|
|
66
|
+
case error
|
|
67
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
68
|
+
public init?(rawValue: Swift.Int)
|
|
69
|
+
#endif
|
|
70
|
+
public typealias RawValue = Swift.Int
|
|
71
|
+
public var rawValue: Swift.Int {
|
|
72
|
+
get
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
public enum AppSprintEventType : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Sendable {
|
|
76
|
+
case login
|
|
77
|
+
case signUp
|
|
78
|
+
case register
|
|
79
|
+
case purchase
|
|
80
|
+
case subscribe
|
|
81
|
+
case startTrial
|
|
82
|
+
case addToCart
|
|
83
|
+
case addToWishlist
|
|
84
|
+
case initiateCheckout
|
|
85
|
+
case viewContent
|
|
86
|
+
case viewItem
|
|
87
|
+
case search
|
|
88
|
+
case share
|
|
89
|
+
case tutorialComplete
|
|
90
|
+
case levelStart
|
|
91
|
+
case levelComplete
|
|
92
|
+
case custom
|
|
93
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
94
|
+
public init?(rawValue: Swift.String)
|
|
95
|
+
#endif
|
|
96
|
+
public typealias AllCases = [AppSprintSDK.AppSprintEventType]
|
|
97
|
+
public typealias RawValue = Swift.String
|
|
98
|
+
nonisolated public static var allCases: [AppSprintSDK.AppSprintEventType] {
|
|
99
|
+
get
|
|
100
|
+
}
|
|
101
|
+
public var rawValue: Swift.String {
|
|
102
|
+
get
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
public struct AttributionResult : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
106
|
+
public let source: Swift.String
|
|
107
|
+
public let confidence: Swift.Double
|
|
108
|
+
public let campaignName: Swift.String?
|
|
109
|
+
public let utmSource: Swift.String?
|
|
110
|
+
public let utmMedium: Swift.String?
|
|
111
|
+
public let utmCampaign: Swift.String?
|
|
112
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
113
|
+
public init(source: Swift.String, confidence: Swift.Double, campaignName: Swift.String? = nil, utmSource: Swift.String? = nil, utmMedium: Swift.String? = nil, utmCampaign: Swift.String? = nil)
|
|
114
|
+
#endif
|
|
115
|
+
public static func == (a: AppSprintSDK.AttributionResult, b: AppSprintSDK.AttributionResult) -> Swift.Bool
|
|
116
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
117
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
118
|
+
}
|
|
119
|
+
public struct InstallResponse : Swift.Codable, Swift.Sendable {
|
|
120
|
+
public let appsprintId: Swift.String
|
|
121
|
+
public let attribution: AppSprintSDK.AttributionResult
|
|
122
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
123
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
124
|
+
}
|
|
125
|
+
public struct TestEventResult : Swift.Equatable, Swift.Sendable {
|
|
126
|
+
public let success: Swift.Bool
|
|
127
|
+
public let message: Swift.String
|
|
128
|
+
public init(success: Swift.Bool, message: Swift.String)
|
|
129
|
+
public static func == (a: AppSprintSDK.TestEventResult, b: AppSprintSDK.TestEventResult) -> Swift.Bool
|
|
130
|
+
}
|
|
131
|
+
public struct DeviceInfo : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
132
|
+
public let deviceModel: Swift.String?
|
|
133
|
+
public let screenWidth: Swift.Int?
|
|
134
|
+
public let screenHeight: Swift.Int?
|
|
135
|
+
public let locale: Swift.String?
|
|
136
|
+
public let timezone: Swift.String?
|
|
137
|
+
public let osVersion: Swift.String?
|
|
138
|
+
public let idfv: Swift.String?
|
|
139
|
+
public let idfa: Swift.String?
|
|
140
|
+
public let adServicesToken: Swift.String?
|
|
141
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
142
|
+
public init(deviceModel: Swift.String? = nil, screenWidth: Swift.Int? = nil, screenHeight: Swift.Int? = nil, locale: Swift.String? = nil, timezone: Swift.String? = nil, osVersion: Swift.String? = nil, idfv: Swift.String? = nil, idfa: Swift.String? = nil, adServicesToken: Swift.String? = nil)
|
|
143
|
+
#endif
|
|
144
|
+
public static func == (a: AppSprintSDK.DeviceInfo, b: AppSprintSDK.DeviceInfo) -> Swift.Bool
|
|
145
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
146
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
147
|
+
}
|
|
148
|
+
public struct AnyCodable : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
149
|
+
public let value: AppSprintSDK.AnySendable
|
|
150
|
+
public init(_ value: some Sendable)
|
|
151
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
152
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
153
|
+
public static func == (a: AppSprintSDK.AnyCodable, b: AppSprintSDK.AnyCodable) -> Swift.Bool
|
|
154
|
+
}
|
|
155
|
+
public struct AnySendable : @unchecked Swift.Sendable, Swift.Equatable {
|
|
156
|
+
public init(_ base: Any)
|
|
157
|
+
public static func == (lhs: AppSprintSDK.AnySendable, rhs: AppSprintSDK.AnySendable) -> Swift.Bool
|
|
158
|
+
}
|
|
159
|
+
extension AppSprintSDK.AppSprint : Swift.Sendable {}
|
|
160
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Equatable {}
|
|
161
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Hashable {}
|
|
162
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.RawRepresentable {}
|
|
163
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Equatable {}
|
|
164
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Hashable {}
|
|
165
|
+
extension AppSprintSDK.AppSprintEventType : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -module-name AppSprintSDK -package-name appsprint_ios
|
|
4
|
+
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.3
|
|
5
|
+
import AdServices
|
|
6
|
+
import AdSupport
|
|
7
|
+
import AppTrackingTransparency
|
|
8
|
+
import Foundation
|
|
9
|
+
import Swift
|
|
10
|
+
import UIKit
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
@_hasMissingDesignatedInitializers @_Concurrency.MainActor final public class AppSprint {
|
|
15
|
+
@_Concurrency.MainActor public static let shared: AppSprintSDK.AppSprint
|
|
16
|
+
@_Concurrency.MainActor final public var isInitialized: Swift.Bool {
|
|
17
|
+
get
|
|
18
|
+
}
|
|
19
|
+
@_Concurrency.MainActor public init()
|
|
20
|
+
@_Concurrency.MainActor final public func configure(_ config: AppSprintSDK.AppSprintConfig) async
|
|
21
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
22
|
+
@_Concurrency.MainActor final public func sendEvent(_ eventType: AppSprintSDK.AppSprintEventType, name: Swift.String? = nil, params: [Swift.String : Any]? = nil) async
|
|
23
|
+
#endif
|
|
24
|
+
@_Concurrency.MainActor final public func flush() async
|
|
25
|
+
@_Concurrency.MainActor final public func clearData()
|
|
26
|
+
@_Concurrency.MainActor final public func isSdkDisabled() -> Swift.Bool
|
|
27
|
+
@_Concurrency.MainActor final public func setCustomerUserId(_ userId: Swift.String) async
|
|
28
|
+
@_Concurrency.MainActor final public func sendTestEvent() async -> AppSprintSDK.TestEventResult
|
|
29
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
30
|
+
@_Concurrency.MainActor final public func getAppSprintId() -> Swift.String?
|
|
31
|
+
#endif
|
|
32
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
33
|
+
@_Concurrency.MainActor final public func getAttribution() -> AppSprintSDK.AttributionResult?
|
|
34
|
+
#endif
|
|
35
|
+
@_Concurrency.MainActor final public func enableAppleAdsAttribution()
|
|
36
|
+
@_Concurrency.MainActor final public func destroy()
|
|
37
|
+
@objc deinit
|
|
38
|
+
}
|
|
39
|
+
public struct AppSprintConfig : Swift.Sendable {
|
|
40
|
+
public var apiKey: Swift.String
|
|
41
|
+
public var apiURL: Foundation.URL
|
|
42
|
+
public var enableAppleAdsAttribution: Swift.Bool
|
|
43
|
+
public var isDebug: Swift.Bool
|
|
44
|
+
public var logLevel: AppSprintSDK.AppSprintLogLevel
|
|
45
|
+
public var customerUserId: Swift.String?
|
|
46
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
47
|
+
public init(apiKey: Swift.String, apiURL: Foundation.URL = URL(string: "https://api.appsprint.app")!, enableAppleAdsAttribution: Swift.Bool = true, isDebug: Swift.Bool = false, logLevel: AppSprintSDK.AppSprintLogLevel = .warn, customerUserId: Swift.String? = nil)
|
|
48
|
+
#endif
|
|
49
|
+
}
|
|
50
|
+
public enum AppSprintNative {
|
|
51
|
+
@_Concurrency.MainActor public static func getDeviceInfo() -> AppSprintSDK.DeviceInfo
|
|
52
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
53
|
+
public static func getAdServicesToken() -> Swift.String?
|
|
54
|
+
#endif
|
|
55
|
+
public static func requestTrackingAuthorization() async -> Swift.Bool
|
|
56
|
+
public static func storageSet(_ key: Swift.String, value: Swift.String)
|
|
57
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
58
|
+
public static func storageGet(_ key: Swift.String) -> Swift.String?
|
|
59
|
+
#endif
|
|
60
|
+
public static func storageRemove(_ key: Swift.String)
|
|
61
|
+
}
|
|
62
|
+
public enum AppSprintLogLevel : Swift.Int, Swift.Codable, Swift.Sendable {
|
|
63
|
+
case debug
|
|
64
|
+
case info
|
|
65
|
+
case warn
|
|
66
|
+
case error
|
|
67
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
68
|
+
public init?(rawValue: Swift.Int)
|
|
69
|
+
#endif
|
|
70
|
+
public typealias RawValue = Swift.Int
|
|
71
|
+
public var rawValue: Swift.Int {
|
|
72
|
+
get
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
public enum AppSprintEventType : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Sendable {
|
|
76
|
+
case login
|
|
77
|
+
case signUp
|
|
78
|
+
case register
|
|
79
|
+
case purchase
|
|
80
|
+
case subscribe
|
|
81
|
+
case startTrial
|
|
82
|
+
case addToCart
|
|
83
|
+
case addToWishlist
|
|
84
|
+
case initiateCheckout
|
|
85
|
+
case viewContent
|
|
86
|
+
case viewItem
|
|
87
|
+
case search
|
|
88
|
+
case share
|
|
89
|
+
case tutorialComplete
|
|
90
|
+
case levelStart
|
|
91
|
+
case levelComplete
|
|
92
|
+
case custom
|
|
93
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
94
|
+
public init?(rawValue: Swift.String)
|
|
95
|
+
#endif
|
|
96
|
+
public typealias AllCases = [AppSprintSDK.AppSprintEventType]
|
|
97
|
+
public typealias RawValue = Swift.String
|
|
98
|
+
nonisolated public static var allCases: [AppSprintSDK.AppSprintEventType] {
|
|
99
|
+
get
|
|
100
|
+
}
|
|
101
|
+
public var rawValue: Swift.String {
|
|
102
|
+
get
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
public struct AttributionResult : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
106
|
+
public let source: Swift.String
|
|
107
|
+
public let confidence: Swift.Double
|
|
108
|
+
public let campaignName: Swift.String?
|
|
109
|
+
public let utmSource: Swift.String?
|
|
110
|
+
public let utmMedium: Swift.String?
|
|
111
|
+
public let utmCampaign: Swift.String?
|
|
112
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
113
|
+
public init(source: Swift.String, confidence: Swift.Double, campaignName: Swift.String? = nil, utmSource: Swift.String? = nil, utmMedium: Swift.String? = nil, utmCampaign: Swift.String? = nil)
|
|
114
|
+
#endif
|
|
115
|
+
public static func == (a: AppSprintSDK.AttributionResult, b: AppSprintSDK.AttributionResult) -> Swift.Bool
|
|
116
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
117
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
118
|
+
}
|
|
119
|
+
public struct InstallResponse : Swift.Codable, Swift.Sendable {
|
|
120
|
+
public let appsprintId: Swift.String
|
|
121
|
+
public let attribution: AppSprintSDK.AttributionResult
|
|
122
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
123
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
124
|
+
}
|
|
125
|
+
public struct TestEventResult : Swift.Equatable, Swift.Sendable {
|
|
126
|
+
public let success: Swift.Bool
|
|
127
|
+
public let message: Swift.String
|
|
128
|
+
public init(success: Swift.Bool, message: Swift.String)
|
|
129
|
+
public static func == (a: AppSprintSDK.TestEventResult, b: AppSprintSDK.TestEventResult) -> Swift.Bool
|
|
130
|
+
}
|
|
131
|
+
public struct DeviceInfo : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
132
|
+
public let deviceModel: Swift.String?
|
|
133
|
+
public let screenWidth: Swift.Int?
|
|
134
|
+
public let screenHeight: Swift.Int?
|
|
135
|
+
public let locale: Swift.String?
|
|
136
|
+
public let timezone: Swift.String?
|
|
137
|
+
public let osVersion: Swift.String?
|
|
138
|
+
public let idfv: Swift.String?
|
|
139
|
+
public let idfa: Swift.String?
|
|
140
|
+
public let adServicesToken: Swift.String?
|
|
141
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
142
|
+
public init(deviceModel: Swift.String? = nil, screenWidth: Swift.Int? = nil, screenHeight: Swift.Int? = nil, locale: Swift.String? = nil, timezone: Swift.String? = nil, osVersion: Swift.String? = nil, idfv: Swift.String? = nil, idfa: Swift.String? = nil, adServicesToken: Swift.String? = nil)
|
|
143
|
+
#endif
|
|
144
|
+
public static func == (a: AppSprintSDK.DeviceInfo, b: AppSprintSDK.DeviceInfo) -> Swift.Bool
|
|
145
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
146
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
147
|
+
}
|
|
148
|
+
public struct AnyCodable : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
149
|
+
public let value: AppSprintSDK.AnySendable
|
|
150
|
+
public init(_ value: some Sendable)
|
|
151
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
152
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
153
|
+
public static func == (a: AppSprintSDK.AnyCodable, b: AppSprintSDK.AnyCodable) -> Swift.Bool
|
|
154
|
+
}
|
|
155
|
+
public struct AnySendable : @unchecked Swift.Sendable, Swift.Equatable {
|
|
156
|
+
public init(_ base: Any)
|
|
157
|
+
public static func == (lhs: AppSprintSDK.AnySendable, rhs: AppSprintSDK.AnySendable) -> Swift.Bool
|
|
158
|
+
}
|
|
159
|
+
extension AppSprintSDK.AppSprint : Swift.Sendable {}
|
|
160
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Equatable {}
|
|
161
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.Hashable {}
|
|
162
|
+
extension AppSprintSDK.AppSprintLogLevel : Swift.RawRepresentable {}
|
|
163
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Equatable {}
|
|
164
|
+
extension AppSprintSDK.AppSprintEventType : Swift.Hashable {}
|
|
165
|
+
extension AppSprintSDK.AppSprintEventType : Swift.RawRepresentable {}
|