@amplitude/plugin-engagement-react-native 3.9.0 → 3.11.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.
Files changed (73) hide show
  1. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/Info.plist +48 -0
  2. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/AmplitudeEngagementSwift +0 -0
  3. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Apache License.txt +203 -0
  4. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Assets.car +0 -0
  5. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Info.plist +0 -0
  6. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios.abi.json +18623 -0
  7. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios.private.swiftinterface +386 -0
  8. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  9. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios.swiftinterface +373 -0
  10. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/Roboto[ital,wdth,wght].ttf +0 -0
  11. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/AmplitudeEngagementSwift.framework/engagement.js +26979 -0
  12. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Info.plist +20 -0
  13. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/DWARF/AmplitudeEngagementSwift +0 -0
  14. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Relocations/aarch64/AmplitudeEngagementSwift.yml +11958 -0
  15. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Swift/aarch64/AmplitudeCore.swiftinterface +268 -0
  16. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/AmplitudeEngagementSwift +0 -0
  17. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Apache License.txt +203 -0
  18. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Assets.car +0 -0
  19. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Info.plist +0 -0
  20. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios-simulator.abi.json +18623 -0
  21. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +386 -0
  22. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface +373 -0
  24. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/x86_64-apple-ios-simulator.abi.json +18623 -0
  25. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +386 -0
  26. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Modules/AmplitudeEngagementSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +373 -0
  28. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/Roboto[ital,wdth,wght].ttf +0 -0
  29. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/_CodeSignature/CodeResources +256 -0
  30. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/AmplitudeEngagementSwift.framework/engagement.js +26979 -0
  31. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Info.plist +20 -0
  32. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/DWARF/AmplitudeEngagementSwift +0 -0
  33. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Relocations/aarch64/AmplitudeEngagementSwift.yml +11958 -0
  34. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Relocations/x86_64/AmplitudeEngagementSwift.yml +11888 -0
  35. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Swift/aarch64/AmplitudeCore.swiftinterface +268 -0
  36. package/ios/Frameworks/AmplitudeEngagementSwift.xcframework/ios-arm64_x86_64-simulator/dSYMs/AmplitudeEngagementSwift.framework.dSYM/Contents/Resources/Swift/x86_64/AmplitudeCore.swiftinterface +268 -0
  37. package/ios/Frameworks/CQuickJS.xcframework/Info.plist +44 -0
  38. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/CQuickJS +0 -0
  39. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/Headers/quickjs-libc.h +66 -0
  40. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/Headers/quickjs.h +1168 -0
  41. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/Info.plist +0 -0
  42. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/Modules/module.modulemap +7 -0
  43. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64/CQuickJS.framework/VERSION +1 -0
  44. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/CQuickJS +0 -0
  45. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/Headers/quickjs-libc.h +66 -0
  46. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/Headers/quickjs.h +1168 -0
  47. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/Info.plist +0 -0
  48. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/Modules/module.modulemap +7 -0
  49. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/VERSION +1 -0
  50. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/_CodeSignature/CodeDirectory +0 -0
  51. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/_CodeSignature/CodeRequirements +0 -0
  52. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/_CodeSignature/CodeResources +146 -0
  53. package/ios/Frameworks/CQuickJS.xcframework/ios-arm64_x86_64-simulator/CQuickJS.framework/_CodeSignature/CodeSignature +0 -0
  54. package/lib/module/build-version-android.json +1 -1
  55. package/lib/module/build-version-ios.json +1 -1
  56. package/lib/module/build-version.json +1 -1
  57. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/AmplitudeEngagement.d.ts +20 -0
  58. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/AmplitudeEngagement.d.ts.map +1 -0
  59. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/AmplitudeEngagementPlugin.d.ts +25 -0
  60. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/AmplitudeEngagementPlugin.d.ts.map +1 -0
  61. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/NativePluginEngagementReactNative.d.ts +32 -0
  62. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/NativePluginEngagementReactNative.d.ts.map +1 -0
  63. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/constants.d.ts +7 -0
  64. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/constants.d.ts.map +1 -0
  65. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/index.d.ts +17 -0
  66. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/index.d.ts.map +1 -0
  67. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/logger.d.ts +28 -0
  68. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/logger.d.ts.map +1 -0
  69. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/types.d.ts +31 -0
  70. package/lib/typescript/__npmjs__@amplitude_plugin-engagement-react-native/package/src/types.d.ts.map +1 -0
  71. package/package.json +1 -1
  72. package/src/build-version-android.json +1 -1
  73. package/src/build-version-ios.json +1 -1
@@ -0,0 +1,268 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
3
+ // swift-module-flags: -target arm64-apple-ios11.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 AmplitudeCore
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1
5
+ import Combine
6
+ import Foundation
7
+ import OSLog
8
+ import Swift
9
+ import SystemConfiguration
10
+ import UIKit
11
+ import _Concurrency
12
+ import _StringProcessing
13
+ import _SwiftConcurrencyShims
14
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
15
+ public struct AmplitudeContext {
16
+ public static var coreLibraryName: Swift.String {
17
+ get
18
+ }
19
+ public static var coreLibraryVersion: Swift.String {
20
+ get
21
+ }
22
+ public let apiKey: Swift.String
23
+ public let instanceName: Swift.String
24
+ public let serverZone: AmplitudeCore.ServerZone
25
+ public let remoteConfigClient: AmplitudeCore.RemoteConfigClient
26
+ public let logger: any AmplitudeCore.CoreLogger
27
+ @_spi(Internal) public let diagnosticsClient: any AmplitudeCore.CoreDiagnostics
28
+ public init(apiKey: Swift.String, instanceName: Swift.String = "$default_instance", serverZone: AmplitudeCore.ServerZone = .US, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error))
29
+ @_spi(Internal) public init(apiKey: Swift.String, instanceName: Swift.String = "$default_instance", serverZone: AmplitudeCore.ServerZone = .US, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error), remoteConfigClient: AmplitudeCore.RemoteConfigClient?, diagnosticsClient: (any AmplitudeCore.CoreDiagnostics)?)
30
+ }
31
+ @_hasMissingDesignatedInitializers @_Concurrency.MainActor public class CoreDevice : Swift.Sendable {
32
+ @objc deinit
33
+ }
34
+ @_spi(Internal) @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
35
+ public protocol CoreDiagnostics : _Concurrency.Actor {
36
+ @_spi(Internal) func setTag(name: Swift.String, value: Swift.String) async
37
+ @_spi(Internal) func setTags(_ tags: [Swift.String : Swift.String]) async
38
+ @_spi(Internal) func increment(name: Swift.String, size: Swift.Int) async
39
+ @_spi(Internal) func recordHistogram(name: Swift.String, value: Swift.Double) async
40
+ @_spi(Internal) func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]?) async
41
+ @_spi(Internal) func flush() async
42
+ @_spi(Internal) var didLastRunCrash: Swift.Bool { get async }
43
+ }
44
+ @_spi(Internal) @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
45
+ extension AmplitudeCore.CoreDiagnostics {
46
+ @_spi(Internal) public func increment(name: Swift.String) async
47
+ @_spi(Internal) nonisolated public func setTag(name: Swift.String, value: Swift.String)
48
+ @_spi(Internal) nonisolated public func setTags(_ tags: [Swift.String : Swift.String])
49
+ @_spi(Internal) nonisolated public func increment(name: Swift.String, size: Swift.Int = 1)
50
+ @_spi(Internal) nonisolated public func recordHistogram(name: Swift.String, value: Swift.Double)
51
+ @_spi(Internal) nonisolated public func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]? = nil)
52
+ }
53
+ @usableFromInline
54
+ internal let DEFAULT_SAMPLE_RATE: Swift.Double
55
+ @usableFromInline
56
+ internal let DEFAULT_FLUSH_INTERVAL: Swift.UInt64
57
+ @_spi(Internal) @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
58
+ public actor DiagnosticsClient : AmplitudeCore.CoreDiagnostics {
59
+ @_spi(Internal) public typealias StateCallback = @Sendable () -> Swift.Void
60
+ @_spi(Internal) public init(apiKey: Swift.String, serverZone: AmplitudeCore.ServerZone = .US, instanceName: Swift.String, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error), enabled: Swift.Bool = true, sampleRate: Swift.Double = DEFAULT_SAMPLE_RATE, crashCaptureEnabled: Swift.Bool = false, remoteConfigClient: AmplitudeCore.RemoteConfigClient?, flushIntervalNanoSec: Swift.UInt64 = DEFAULT_FLUSH_INTERVAL * NSEC_PER_SEC, urlSessionConfiguration: Foundation.URLSessionConfiguration = .ephemeral)
61
+ @_spi(Internal) public var didLastRunCrash: Swift.Bool {
62
+ @_spi(Internal) get async
63
+ }
64
+ @_spi(Internal) public func setTag(name: Swift.String, value: Swift.String) async
65
+ @_spi(Internal) public func setTags(_ tags: [Swift.String : Swift.String]) async
66
+ @_spi(Internal) public func increment(name: Swift.String, size: Swift.Int) async
67
+ @_spi(Internal) public func recordHistogram(name: Swift.String, value: Swift.Double) async
68
+ @_spi(Internal) public func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]? = nil) async
69
+ @_spi(Internal) public func flush() async
70
+ @_spi(Internal) @objc deinit
71
+ @_spi(Internal) @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
72
+ @_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {
73
+ @_spi(Internal) get
74
+ }
75
+ }
76
+ @objc @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
77
+ @objcMembers public class InterfaceChangeSignal : ObjectiveC.NSObject {
78
+ @objc final public let time: Foundation.Date
79
+ @objc public init(time: Foundation.Date)
80
+ @objc deinit
81
+ }
82
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
83
+ public protocol InterfaceSignalProvider : AnyObject {
84
+ var isProviding: Swift.Bool { get }
85
+ func addInterfaceSignalReceiver(_ receiver: any AmplitudeCore.InterfaceSignalReceiver)
86
+ func removeInterfaceSignalReceiver(_ receiver: any AmplitudeCore.InterfaceSignalReceiver)
87
+ }
88
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
89
+ @objc public protocol InterfaceSignalReceiver : Swift.Sendable {
90
+ @objc func onInterfaceChanged(signal: AmplitudeCore.InterfaceChangeSignal)
91
+ @objc func onStartProviding()
92
+ @objc func onStopProviding()
93
+ }
94
+ @objc(AMPCoreLogLevel) public enum LogLevel : Swift.Int, Swift.Comparable, Swift.Sendable {
95
+ case off = 0
96
+ case error = 1
97
+ case warn = 2
98
+ case log = 3
99
+ case debug = 4
100
+ public static func < (lhs: AmplitudeCore.LogLevel, rhs: AmplitudeCore.LogLevel) -> Swift.Bool
101
+ public init?(rawValue: Swift.Int)
102
+ public typealias RawValue = Swift.Int
103
+ public var rawValue: Swift.Int {
104
+ get
105
+ }
106
+ }
107
+ @objc(AMPCoreLogger) @preconcurrency public protocol CoreLogger : Swift.Sendable {
108
+ @objc func error(message: Swift.String)
109
+ @objc func warn(message: Swift.String)
110
+ @objc func log(message: Swift.String)
111
+ @objc func debug(message: Swift.String)
112
+ }
113
+ final public class OSLogger : AmplitudeCore.CoreLogger {
114
+ final public let logLevel: AmplitudeCore.LogLevel
115
+ public init(logLevel: AmplitudeCore.LogLevel = .off)
116
+ @objc final public func error(message: Swift.String)
117
+ @objc final public func warn(message: Swift.String)
118
+ @objc final public func log(message: Swift.String)
119
+ @objc final public func debug(message: Swift.String)
120
+ final public func log(_ logLevel: AmplitudeCore.LogLevel, _ message: Swift.String)
121
+ @objc deinit
122
+ }
123
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
124
+ public protocol AnalyticsClient<Identity> : AnyObject {
125
+ associatedtype Identity : AmplitudeCore.AnalyticsIdentity
126
+ var identity: Self.Identity { get }
127
+ var sessionId: Swift.Int64 { get }
128
+ var optOut: Swift.Bool { get }
129
+ func track(eventType: Swift.String, eventProperties: [Swift.String : Any]?)
130
+ }
131
+ public protocol AnalyticsEvent {
132
+ var userId: Swift.String? { get }
133
+ var deviceId: Swift.String? { get }
134
+ var timestamp: Swift.Int64? { get }
135
+ var sessionId: Swift.Int64? { get }
136
+ var eventType: Swift.String { get }
137
+ var eventProperties: [Swift.String : Any]? { get set }
138
+ }
139
+ public protocol AnalyticsIdentity {
140
+ var deviceId: Swift.String? { get }
141
+ var userId: Swift.String? { get }
142
+ var userProperties: [Swift.String : Any] { get }
143
+ }
144
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
145
+ public protocol PluginHost {
146
+ func plugin(name: Swift.String) -> (any AmplitudeCore.UniversalPlugin)?
147
+ func plugins<PluginType>(type: PluginType.Type) -> [PluginType] where PluginType : AmplitudeCore.UniversalPlugin
148
+ }
149
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
150
+ extension AmplitudeCore.PluginHost {
151
+ public func plugins<PluginType>(type: PluginType.Type) -> [PluginType] where PluginType : AmplitudeCore.UniversalPlugin
152
+ }
153
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
154
+ public protocol UniversalPlugin : AnyObject {
155
+ var name: Swift.String? { get }
156
+ func setup(analyticsClient: any AmplitudeCore.AnalyticsClient, amplitudeContext: AmplitudeCore.AmplitudeContext)
157
+ func execute<Event>(_ event: inout Event) where Event : AmplitudeCore.AnalyticsEvent
158
+ func teardown()
159
+ func onIdentityChanged(_ identity: any AmplitudeCore.AnalyticsIdentity)
160
+ func onSessionIdChanged(_ sessionId: Swift.Int64)
161
+ func onOptOutChanged(_ optOut: Swift.Bool)
162
+ func onReset()
163
+ }
164
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
165
+ extension AmplitudeCore.UniversalPlugin {
166
+ public var name: Swift.String? {
167
+ get
168
+ }
169
+ public func setup(analyticsClient: any AmplitudeCore.AnalyticsClient, amplitudeContext: AmplitudeCore.AmplitudeContext)
170
+ public func execute<Event>(_ event: inout Event) where Event : AmplitudeCore.AnalyticsEvent
171
+ public func teardown()
172
+ public func onIdentityChanged(_ identity: any AmplitudeCore.AnalyticsIdentity)
173
+ public func onSessionIdChanged(_ sessionId: Swift.Int64)
174
+ public func onOptOutChanged(_ optOut: Swift.Bool)
175
+ public func onReset()
176
+ }
177
+ @objc @_hasMissingDesignatedInitializers @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178
+ public actor RemoteConfigClient : ObjectiveC.NSObject {
179
+ public enum DeliveryMode : Swift.Sendable {
180
+ case all
181
+ case waitForRemote(timeout: Foundation.TimeInterval = 3)
182
+ }
183
+ public enum Source : Swift.Sendable {
184
+ case cache
185
+ case remote
186
+ public static func == (a: AmplitudeCore.RemoteConfigClient.Source, b: AmplitudeCore.RemoteConfigClient.Source) -> Swift.Bool
187
+ public func hash(into hasher: inout Swift.Hasher)
188
+ public var hashValue: Swift.Int {
189
+ get
190
+ }
191
+ }
192
+ public enum RemoteConfigError : Swift.Error {
193
+ case notInCache
194
+ case invalidServerURL
195
+ case invalidApiKey
196
+ case badResponse
197
+ case preInit
198
+ case cancelled
199
+ public static func == (a: AmplitudeCore.RemoteConfigClient.RemoteConfigError, b: AmplitudeCore.RemoteConfigClient.RemoteConfigError) -> Swift.Bool
200
+ public func hash(into hasher: inout Swift.Hasher)
201
+ public var hashValue: Swift.Int {
202
+ get
203
+ }
204
+ }
205
+ public typealias RemoteConfig = [Swift.String : any Swift.Sendable]
206
+ public typealias RemoteConfigCallback = @Sendable (AmplitudeCore.RemoteConfigClient.RemoteConfig?, AmplitudeCore.RemoteConfigClient.Source, Foundation.Date?) -> Swift.Void
207
+ public typealias RemoteConfigSubscription = Swift.Sendable
208
+ public convenience init(apiKey: Swift.String, serverZone: AmplitudeCore.ServerZone, instanceName: Swift.String? = nil, logger: any AmplitudeCore.CoreLogger)
209
+ @discardableResult
210
+ nonisolated public func subscribe(key: Swift.String? = nil, deliveryMode: AmplitudeCore.RemoteConfigClient.DeliveryMode = .all, callback: @escaping AmplitudeCore.RemoteConfigClient.RemoteConfigCallback) -> any Swift.Sendable
211
+ nonisolated public func unsubscribe(_ token: any Swift.Sendable)
212
+ nonisolated public func updateConfigs()
213
+ @objc deinit
214
+ @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
215
+ @_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {
216
+ get
217
+ }
218
+ }
219
+ @objc(AMPServerZone) public enum ServerZone : Swift.Int, Swift.Sendable {
220
+ case US
221
+ case EU
222
+ public typealias RawValue = Swift.String
223
+ public var rawValue: AmplitudeCore.ServerZone.RawValue {
224
+ get
225
+ }
226
+ public init?(rawValue: AmplitudeCore.ServerZone.RawValue)
227
+ }
228
+ public enum JSONValue : Swift.Codable, Swift.Sendable {
229
+ case string(Swift.String)
230
+ case int(Swift.Int)
231
+ case double(Swift.Double)
232
+ case bool(Swift.Bool)
233
+ case array([AmplitudeCore.JSONValue])
234
+ case dictionary([Swift.String : AmplitudeCore.JSONValue])
235
+ case null
236
+ public init(from decoder: any Swift.Decoder) throws
237
+ public func encode(to encoder: any Swift.Encoder) throws
238
+ public static func from(_ value: Any) -> AmplitudeCore.JSONValue?
239
+ public func toAny() -> any Swift.Sendable
240
+ }
241
+ @_hasMissingDesignatedInitializers public class Sample {
242
+ public static func isInSample(seed: Swift.String, sampleRate: Swift.Double) -> Swift.Bool
243
+ @objc deinit
244
+ }
245
+ @_spi(Internal) public enum VersionError : Swift.Error, Swift.Equatable {
246
+ @_spi(Internal) case invalidVersionString(Swift.String)
247
+ @_spi(Internal) case emptyVersionString
248
+ @_spi(Internal) public static func == (a: AmplitudeCore.VersionError, b: AmplitudeCore.VersionError) -> Swift.Bool
249
+ }
250
+ @_spi(Internal) extension Swift.String {
251
+ @_spi(Internal) public func isGreaterThanOrEqualToVersion(_ version: Swift.String) throws -> Swift.Bool
252
+ }
253
+ extension Swift.String {
254
+ public func fnv1a64String() -> Swift.String
255
+ }
256
+ extension AmplitudeCore.LogLevel : Swift.Hashable {}
257
+ extension AmplitudeCore.LogLevel : Swift.RawRepresentable {}
258
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
259
+ extension AmplitudeCore.RemoteConfigClient.Source : Swift.Equatable {}
260
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
261
+ extension AmplitudeCore.RemoteConfigClient.Source : Swift.Hashable {}
262
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
263
+ extension AmplitudeCore.RemoteConfigClient.RemoteConfigError : Swift.Equatable {}
264
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
265
+ extension AmplitudeCore.RemoteConfigClient.RemoteConfigError : Swift.Hashable {}
266
+ extension AmplitudeCore.ServerZone : Swift.Equatable {}
267
+ extension AmplitudeCore.ServerZone : Swift.Hashable {}
268
+ extension AmplitudeCore.ServerZone : Swift.RawRepresentable {}
@@ -0,0 +1,268 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
3
+ // swift-module-flags: -target x86_64-apple-ios11.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 AmplitudeCore
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1
5
+ import Combine
6
+ import Foundation
7
+ import OSLog
8
+ import Swift
9
+ import SystemConfiguration
10
+ import UIKit
11
+ import _Concurrency
12
+ import _StringProcessing
13
+ import _SwiftConcurrencyShims
14
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
15
+ public struct AmplitudeContext {
16
+ public static var coreLibraryName: Swift.String {
17
+ get
18
+ }
19
+ public static var coreLibraryVersion: Swift.String {
20
+ get
21
+ }
22
+ public let apiKey: Swift.String
23
+ public let instanceName: Swift.String
24
+ public let serverZone: AmplitudeCore.ServerZone
25
+ public let remoteConfigClient: AmplitudeCore.RemoteConfigClient
26
+ public let logger: any AmplitudeCore.CoreLogger
27
+ @_spi(Internal) public let diagnosticsClient: any AmplitudeCore.CoreDiagnostics
28
+ public init(apiKey: Swift.String, instanceName: Swift.String = "$default_instance", serverZone: AmplitudeCore.ServerZone = .US, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error))
29
+ @_spi(Internal) public init(apiKey: Swift.String, instanceName: Swift.String = "$default_instance", serverZone: AmplitudeCore.ServerZone = .US, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error), remoteConfigClient: AmplitudeCore.RemoteConfigClient?, diagnosticsClient: (any AmplitudeCore.CoreDiagnostics)?)
30
+ }
31
+ @_hasMissingDesignatedInitializers @_Concurrency.MainActor public class CoreDevice : Swift.Sendable {
32
+ @objc deinit
33
+ }
34
+ @_spi(Internal) @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
35
+ public protocol CoreDiagnostics : _Concurrency.Actor {
36
+ @_spi(Internal) func setTag(name: Swift.String, value: Swift.String) async
37
+ @_spi(Internal) func setTags(_ tags: [Swift.String : Swift.String]) async
38
+ @_spi(Internal) func increment(name: Swift.String, size: Swift.Int) async
39
+ @_spi(Internal) func recordHistogram(name: Swift.String, value: Swift.Double) async
40
+ @_spi(Internal) func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]?) async
41
+ @_spi(Internal) func flush() async
42
+ @_spi(Internal) var didLastRunCrash: Swift.Bool { get async }
43
+ }
44
+ @_spi(Internal) @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
45
+ extension AmplitudeCore.CoreDiagnostics {
46
+ @_spi(Internal) public func increment(name: Swift.String) async
47
+ @_spi(Internal) nonisolated public func setTag(name: Swift.String, value: Swift.String)
48
+ @_spi(Internal) nonisolated public func setTags(_ tags: [Swift.String : Swift.String])
49
+ @_spi(Internal) nonisolated public func increment(name: Swift.String, size: Swift.Int = 1)
50
+ @_spi(Internal) nonisolated public func recordHistogram(name: Swift.String, value: Swift.Double)
51
+ @_spi(Internal) nonisolated public func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]? = nil)
52
+ }
53
+ @usableFromInline
54
+ internal let DEFAULT_SAMPLE_RATE: Swift.Double
55
+ @usableFromInline
56
+ internal let DEFAULT_FLUSH_INTERVAL: Swift.UInt64
57
+ @_spi(Internal) @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
58
+ public actor DiagnosticsClient : AmplitudeCore.CoreDiagnostics {
59
+ @_spi(Internal) public typealias StateCallback = @Sendable () -> Swift.Void
60
+ @_spi(Internal) public init(apiKey: Swift.String, serverZone: AmplitudeCore.ServerZone = .US, instanceName: Swift.String, logger: any AmplitudeCore.CoreLogger = OSLogger(logLevel: .error), enabled: Swift.Bool = true, sampleRate: Swift.Double = DEFAULT_SAMPLE_RATE, crashCaptureEnabled: Swift.Bool = false, remoteConfigClient: AmplitudeCore.RemoteConfigClient?, flushIntervalNanoSec: Swift.UInt64 = DEFAULT_FLUSH_INTERVAL * NSEC_PER_SEC, urlSessionConfiguration: Foundation.URLSessionConfiguration = .ephemeral)
61
+ @_spi(Internal) public var didLastRunCrash: Swift.Bool {
62
+ @_spi(Internal) get async
63
+ }
64
+ @_spi(Internal) public func setTag(name: Swift.String, value: Swift.String) async
65
+ @_spi(Internal) public func setTags(_ tags: [Swift.String : Swift.String]) async
66
+ @_spi(Internal) public func increment(name: Swift.String, size: Swift.Int) async
67
+ @_spi(Internal) public func recordHistogram(name: Swift.String, value: Swift.Double) async
68
+ @_spi(Internal) public func recordEvent(name: Swift.String, properties: [Swift.String : any Swift.Sendable]? = nil) async
69
+ @_spi(Internal) public func flush() async
70
+ @_spi(Internal) @objc deinit
71
+ @_spi(Internal) @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
72
+ @_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {
73
+ @_spi(Internal) get
74
+ }
75
+ }
76
+ @objc @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
77
+ @objcMembers public class InterfaceChangeSignal : ObjectiveC.NSObject {
78
+ @objc final public let time: Foundation.Date
79
+ @objc public init(time: Foundation.Date)
80
+ @objc deinit
81
+ }
82
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
83
+ public protocol InterfaceSignalProvider : AnyObject {
84
+ var isProviding: Swift.Bool { get }
85
+ func addInterfaceSignalReceiver(_ receiver: any AmplitudeCore.InterfaceSignalReceiver)
86
+ func removeInterfaceSignalReceiver(_ receiver: any AmplitudeCore.InterfaceSignalReceiver)
87
+ }
88
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
89
+ @objc public protocol InterfaceSignalReceiver : Swift.Sendable {
90
+ @objc func onInterfaceChanged(signal: AmplitudeCore.InterfaceChangeSignal)
91
+ @objc func onStartProviding()
92
+ @objc func onStopProviding()
93
+ }
94
+ @objc(AMPCoreLogLevel) public enum LogLevel : Swift.Int, Swift.Comparable, Swift.Sendable {
95
+ case off = 0
96
+ case error = 1
97
+ case warn = 2
98
+ case log = 3
99
+ case debug = 4
100
+ public static func < (lhs: AmplitudeCore.LogLevel, rhs: AmplitudeCore.LogLevel) -> Swift.Bool
101
+ public init?(rawValue: Swift.Int)
102
+ public typealias RawValue = Swift.Int
103
+ public var rawValue: Swift.Int {
104
+ get
105
+ }
106
+ }
107
+ @objc(AMPCoreLogger) @preconcurrency public protocol CoreLogger : Swift.Sendable {
108
+ @objc func error(message: Swift.String)
109
+ @objc func warn(message: Swift.String)
110
+ @objc func log(message: Swift.String)
111
+ @objc func debug(message: Swift.String)
112
+ }
113
+ final public class OSLogger : AmplitudeCore.CoreLogger {
114
+ final public let logLevel: AmplitudeCore.LogLevel
115
+ public init(logLevel: AmplitudeCore.LogLevel = .off)
116
+ @objc final public func error(message: Swift.String)
117
+ @objc final public func warn(message: Swift.String)
118
+ @objc final public func log(message: Swift.String)
119
+ @objc final public func debug(message: Swift.String)
120
+ final public func log(_ logLevel: AmplitudeCore.LogLevel, _ message: Swift.String)
121
+ @objc deinit
122
+ }
123
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
124
+ public protocol AnalyticsClient<Identity> : AnyObject {
125
+ associatedtype Identity : AmplitudeCore.AnalyticsIdentity
126
+ var identity: Self.Identity { get }
127
+ var sessionId: Swift.Int64 { get }
128
+ var optOut: Swift.Bool { get }
129
+ func track(eventType: Swift.String, eventProperties: [Swift.String : Any]?)
130
+ }
131
+ public protocol AnalyticsEvent {
132
+ var userId: Swift.String? { get }
133
+ var deviceId: Swift.String? { get }
134
+ var timestamp: Swift.Int64? { get }
135
+ var sessionId: Swift.Int64? { get }
136
+ var eventType: Swift.String { get }
137
+ var eventProperties: [Swift.String : Any]? { get set }
138
+ }
139
+ public protocol AnalyticsIdentity {
140
+ var deviceId: Swift.String? { get }
141
+ var userId: Swift.String? { get }
142
+ var userProperties: [Swift.String : Any] { get }
143
+ }
144
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
145
+ public protocol PluginHost {
146
+ func plugin(name: Swift.String) -> (any AmplitudeCore.UniversalPlugin)?
147
+ func plugins<PluginType>(type: PluginType.Type) -> [PluginType] where PluginType : AmplitudeCore.UniversalPlugin
148
+ }
149
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
150
+ extension AmplitudeCore.PluginHost {
151
+ public func plugins<PluginType>(type: PluginType.Type) -> [PluginType] where PluginType : AmplitudeCore.UniversalPlugin
152
+ }
153
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
154
+ public protocol UniversalPlugin : AnyObject {
155
+ var name: Swift.String? { get }
156
+ func setup(analyticsClient: any AmplitudeCore.AnalyticsClient, amplitudeContext: AmplitudeCore.AmplitudeContext)
157
+ func execute<Event>(_ event: inout Event) where Event : AmplitudeCore.AnalyticsEvent
158
+ func teardown()
159
+ func onIdentityChanged(_ identity: any AmplitudeCore.AnalyticsIdentity)
160
+ func onSessionIdChanged(_ sessionId: Swift.Int64)
161
+ func onOptOutChanged(_ optOut: Swift.Bool)
162
+ func onReset()
163
+ }
164
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
165
+ extension AmplitudeCore.UniversalPlugin {
166
+ public var name: Swift.String? {
167
+ get
168
+ }
169
+ public func setup(analyticsClient: any AmplitudeCore.AnalyticsClient, amplitudeContext: AmplitudeCore.AmplitudeContext)
170
+ public func execute<Event>(_ event: inout Event) where Event : AmplitudeCore.AnalyticsEvent
171
+ public func teardown()
172
+ public func onIdentityChanged(_ identity: any AmplitudeCore.AnalyticsIdentity)
173
+ public func onSessionIdChanged(_ sessionId: Swift.Int64)
174
+ public func onOptOutChanged(_ optOut: Swift.Bool)
175
+ public func onReset()
176
+ }
177
+ @objc @_hasMissingDesignatedInitializers @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178
+ public actor RemoteConfigClient : ObjectiveC.NSObject {
179
+ public enum DeliveryMode : Swift.Sendable {
180
+ case all
181
+ case waitForRemote(timeout: Foundation.TimeInterval = 3)
182
+ }
183
+ public enum Source : Swift.Sendable {
184
+ case cache
185
+ case remote
186
+ public static func == (a: AmplitudeCore.RemoteConfigClient.Source, b: AmplitudeCore.RemoteConfigClient.Source) -> Swift.Bool
187
+ public func hash(into hasher: inout Swift.Hasher)
188
+ public var hashValue: Swift.Int {
189
+ get
190
+ }
191
+ }
192
+ public enum RemoteConfigError : Swift.Error {
193
+ case notInCache
194
+ case invalidServerURL
195
+ case invalidApiKey
196
+ case badResponse
197
+ case preInit
198
+ case cancelled
199
+ public static func == (a: AmplitudeCore.RemoteConfigClient.RemoteConfigError, b: AmplitudeCore.RemoteConfigClient.RemoteConfigError) -> Swift.Bool
200
+ public func hash(into hasher: inout Swift.Hasher)
201
+ public var hashValue: Swift.Int {
202
+ get
203
+ }
204
+ }
205
+ public typealias RemoteConfig = [Swift.String : any Swift.Sendable]
206
+ public typealias RemoteConfigCallback = @Sendable (AmplitudeCore.RemoteConfigClient.RemoteConfig?, AmplitudeCore.RemoteConfigClient.Source, Foundation.Date?) -> Swift.Void
207
+ public typealias RemoteConfigSubscription = Swift.Sendable
208
+ public convenience init(apiKey: Swift.String, serverZone: AmplitudeCore.ServerZone, instanceName: Swift.String? = nil, logger: any AmplitudeCore.CoreLogger)
209
+ @discardableResult
210
+ nonisolated public func subscribe(key: Swift.String? = nil, deliveryMode: AmplitudeCore.RemoteConfigClient.DeliveryMode = .all, callback: @escaping AmplitudeCore.RemoteConfigClient.RemoteConfigCallback) -> any Swift.Sendable
211
+ nonisolated public func unsubscribe(_ token: any Swift.Sendable)
212
+ nonisolated public func updateConfigs()
213
+ @objc deinit
214
+ @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
215
+ @_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {
216
+ get
217
+ }
218
+ }
219
+ @objc(AMPServerZone) public enum ServerZone : Swift.Int, Swift.Sendable {
220
+ case US
221
+ case EU
222
+ public typealias RawValue = Swift.String
223
+ public var rawValue: AmplitudeCore.ServerZone.RawValue {
224
+ get
225
+ }
226
+ public init?(rawValue: AmplitudeCore.ServerZone.RawValue)
227
+ }
228
+ public enum JSONValue : Swift.Codable, Swift.Sendable {
229
+ case string(Swift.String)
230
+ case int(Swift.Int)
231
+ case double(Swift.Double)
232
+ case bool(Swift.Bool)
233
+ case array([AmplitudeCore.JSONValue])
234
+ case dictionary([Swift.String : AmplitudeCore.JSONValue])
235
+ case null
236
+ public init(from decoder: any Swift.Decoder) throws
237
+ public func encode(to encoder: any Swift.Encoder) throws
238
+ public static func from(_ value: Any) -> AmplitudeCore.JSONValue?
239
+ public func toAny() -> any Swift.Sendable
240
+ }
241
+ @_hasMissingDesignatedInitializers public class Sample {
242
+ public static func isInSample(seed: Swift.String, sampleRate: Swift.Double) -> Swift.Bool
243
+ @objc deinit
244
+ }
245
+ @_spi(Internal) public enum VersionError : Swift.Error, Swift.Equatable {
246
+ @_spi(Internal) case invalidVersionString(Swift.String)
247
+ @_spi(Internal) case emptyVersionString
248
+ @_spi(Internal) public static func == (a: AmplitudeCore.VersionError, b: AmplitudeCore.VersionError) -> Swift.Bool
249
+ }
250
+ @_spi(Internal) extension Swift.String {
251
+ @_spi(Internal) public func isGreaterThanOrEqualToVersion(_ version: Swift.String) throws -> Swift.Bool
252
+ }
253
+ extension Swift.String {
254
+ public func fnv1a64String() -> Swift.String
255
+ }
256
+ extension AmplitudeCore.LogLevel : Swift.Hashable {}
257
+ extension AmplitudeCore.LogLevel : Swift.RawRepresentable {}
258
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
259
+ extension AmplitudeCore.RemoteConfigClient.Source : Swift.Equatable {}
260
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
261
+ extension AmplitudeCore.RemoteConfigClient.Source : Swift.Hashable {}
262
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
263
+ extension AmplitudeCore.RemoteConfigClient.RemoteConfigError : Swift.Equatable {}
264
+ @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
265
+ extension AmplitudeCore.RemoteConfigClient.RemoteConfigError : Swift.Hashable {}
266
+ extension AmplitudeCore.ServerZone : Swift.Equatable {}
267
+ extension AmplitudeCore.ServerZone : Swift.Hashable {}
268
+ extension AmplitudeCore.ServerZone : Swift.RawRepresentable {}
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>CQuickJS.framework/CQuickJS</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64</string>
12
+ <key>LibraryPath</key>
13
+ <string>CQuickJS.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ </array>
18
+ <key>SupportedPlatform</key>
19
+ <string>ios</string>
20
+ </dict>
21
+ <dict>
22
+ <key>BinaryPath</key>
23
+ <string>CQuickJS.framework/CQuickJS</string>
24
+ <key>LibraryIdentifier</key>
25
+ <string>ios-arm64_x86_64-simulator</string>
26
+ <key>LibraryPath</key>
27
+ <string>CQuickJS.framework</string>
28
+ <key>SupportedArchitectures</key>
29
+ <array>
30
+ <string>arm64</string>
31
+ <string>x86_64</string>
32
+ </array>
33
+ <key>SupportedPlatform</key>
34
+ <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
+ </dict>
38
+ </array>
39
+ <key>CFBundlePackageType</key>
40
+ <string>XFWK</string>
41
+ <key>XCFrameworkFormatVersion</key>
42
+ <string>1.0</string>
43
+ </dict>
44
+ </plist>
@@ -0,0 +1,66 @@
1
+ /*
2
+ * QuickJS C library
3
+ *
4
+ * Copyright (c) 2017-2018 Fabrice Bellard
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */
24
+ #ifndef QUICKJS_LIBC_H
25
+ #define QUICKJS_LIBC_H
26
+
27
+ #include <stdio.h>
28
+ #include <stdlib.h>
29
+
30
+ #include "quickjs.h"
31
+
32
+ #ifdef __cplusplus
33
+ extern "C" {
34
+ #endif
35
+
36
+ JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name);
37
+ JSModuleDef *js_init_module_os(JSContext *ctx, const char *module_name);
38
+ void js_std_add_helpers(JSContext *ctx, int argc, char **argv);
39
+ void js_std_loop(JSContext *ctx);
40
+ JSValue js_std_await(JSContext *ctx, JSValue obj);
41
+ void js_std_init_handlers(JSRuntime *rt);
42
+ void js_std_free_handlers(JSRuntime *rt);
43
+ void js_std_dump_error(JSContext *ctx);
44
+ uint8_t *js_load_file(JSContext *ctx, size_t *pbuf_len, const char *filename);
45
+ int js_module_set_import_meta(JSContext *ctx, JSValueConst func_val,
46
+ JS_BOOL use_realpath, JS_BOOL is_main);
47
+ int js_module_test_json(JSContext *ctx, JSValueConst attributes);
48
+ int js_module_check_attributes(JSContext *ctx, void *opaque, JSValueConst attributes);
49
+ JSModuleDef *js_module_loader(JSContext *ctx,
50
+ const char *module_name, void *opaque,
51
+ JSValueConst attributes);
52
+ void js_std_eval_binary(JSContext *ctx, const uint8_t *buf, size_t buf_len,
53
+ int flags);
54
+ void js_std_eval_binary_json_module(JSContext *ctx,
55
+ const uint8_t *buf, size_t buf_len,
56
+ const char *module_name);
57
+ void js_std_promise_rejection_tracker(JSContext *ctx, JSValueConst promise,
58
+ JSValueConst reason,
59
+ JS_BOOL is_handled, void *opaque);
60
+ void js_std_set_worker_new_context_func(JSContext *(*func)(JSRuntime *rt));
61
+
62
+ #ifdef __cplusplus
63
+ } /* extern "C" { */
64
+ #endif
65
+
66
+ #endif /* QUICKJS_LIBC_H */