@pnlight/sdk-react-native 0.3.8 → 0.4.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/PNLight.xcframework/Info.plist +5 -5
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Headers/PNLight-Swift.h +2 -0
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios.abi.json +1019 -47
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios.private.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64/PNLight.framework/PNLight +0 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Headers/PNLight-Swift.h +4 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios-simulator.abi.json +1019 -47
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios-simulator.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.abi.json +1019 -47
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +35 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/PNLight +0 -0
- package/PNLightSDK-ReactNative.podspec +5 -2
- package/index.d.ts +34 -1
- package/index.js +18 -2
- package/ios/PNLightSDK.m +2 -0
- package/ios/PNLightSDK.swift +43 -2
- package/ios/RemoteUiView.swift +48 -0
- package/ios/RemoteUiViewManager.m +6 -0
- package/ios/RemoteUiViewManager.swift +18 -0
- package/package.json +27 -27
- package/README.md +0 -83
|
@@ -14,6 +14,23 @@ import _Concurrency
|
|
|
14
14
|
import _StringProcessing
|
|
15
15
|
import _SwiftConcurrencyShims
|
|
16
16
|
import os
|
|
17
|
+
extension PNLight.PNLightSDK {
|
|
18
|
+
public enum AttributionProvider : Swift.String, Swift.Codable {
|
|
19
|
+
case appsFlyer
|
|
20
|
+
case adjust
|
|
21
|
+
case firebase
|
|
22
|
+
case appleAdsAttribution
|
|
23
|
+
case custom
|
|
24
|
+
case facebook
|
|
25
|
+
public init?(rawValue: Swift.String)
|
|
26
|
+
public typealias RawValue = Swift.String
|
|
27
|
+
public var rawValue: Swift.String {
|
|
28
|
+
get
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@discardableResult
|
|
32
|
+
final public func addAttribution(provider: PNLight.PNLightSDK.AttributionProvider, data: [Swift.String : Any]? = nil, identifier: Swift.String? = nil) async -> Swift.Bool
|
|
33
|
+
}
|
|
17
34
|
extension PNLight.PNLightSDK {
|
|
18
35
|
final public func logEvent(_ eventName: Swift.String, eventArgs: [Swift.String : Any]? = nil) async
|
|
19
36
|
}
|
|
@@ -26,14 +43,31 @@ extension PNLight.PNLightSDK {
|
|
|
26
43
|
extension PNLight.PNLightSDK {
|
|
27
44
|
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
45
|
}
|
|
46
|
+
public struct UIConfig {
|
|
47
|
+
public let config: Swift.String?
|
|
48
|
+
public let parameters: [Swift.String : Any]?
|
|
49
|
+
}
|
|
50
|
+
extension PNLight.PNLightSDK {
|
|
51
|
+
final public func getUIConfig(placement: Swift.String) async -> PNLight.UIConfig?
|
|
52
|
+
final public func prefetchUIConfig(placement: Swift.String)
|
|
53
|
+
final public func clearUIConfigCache()
|
|
54
|
+
}
|
|
29
55
|
extension PNLight.PNLightSDK {
|
|
30
56
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
57
|
+
final public func resetUserId()
|
|
58
|
+
}
|
|
59
|
+
public struct PNLightConfig {
|
|
60
|
+
public var baseDomain: Swift.String?
|
|
61
|
+
public init(baseDomain: Swift.String? = nil)
|
|
31
62
|
}
|
|
32
63
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class PNLightSDK : ObjectiveC.NSObject {
|
|
33
64
|
public static let shared: PNLight.PNLightSDK
|
|
34
|
-
final public func initialize(apiKey: Swift.String) async
|
|
65
|
+
final public func initialize(apiKey: Swift.String, config: PNLight.PNLightConfig? = nil) async
|
|
35
66
|
@objc deinit
|
|
36
67
|
}
|
|
37
68
|
extension PNLight.PNLightSDK : StoreKit.SKPaymentTransactionObserver {
|
|
38
69
|
@objc final public func paymentQueue(_ queue: StoreKit.SKPaymentQueue, updatedTransactions transactions: [StoreKit.SKPaymentTransaction])
|
|
39
70
|
}
|
|
71
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.Equatable {}
|
|
72
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.Hashable {}
|
|
73
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -14,6 +14,23 @@ import _Concurrency
|
|
|
14
14
|
import _StringProcessing
|
|
15
15
|
import _SwiftConcurrencyShims
|
|
16
16
|
import os
|
|
17
|
+
extension PNLight.PNLightSDK {
|
|
18
|
+
public enum AttributionProvider : Swift.String, Swift.Codable {
|
|
19
|
+
case appsFlyer
|
|
20
|
+
case adjust
|
|
21
|
+
case firebase
|
|
22
|
+
case appleAdsAttribution
|
|
23
|
+
case custom
|
|
24
|
+
case facebook
|
|
25
|
+
public init?(rawValue: Swift.String)
|
|
26
|
+
public typealias RawValue = Swift.String
|
|
27
|
+
public var rawValue: Swift.String {
|
|
28
|
+
get
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@discardableResult
|
|
32
|
+
final public func addAttribution(provider: PNLight.PNLightSDK.AttributionProvider, data: [Swift.String : Any]? = nil, identifier: Swift.String? = nil) async -> Swift.Bool
|
|
33
|
+
}
|
|
17
34
|
extension PNLight.PNLightSDK {
|
|
18
35
|
final public func logEvent(_ eventName: Swift.String, eventArgs: [Swift.String : Any]? = nil) async
|
|
19
36
|
}
|
|
@@ -26,14 +43,31 @@ extension PNLight.PNLightSDK {
|
|
|
26
43
|
extension PNLight.PNLightSDK {
|
|
27
44
|
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
45
|
}
|
|
46
|
+
public struct UIConfig {
|
|
47
|
+
public let config: Swift.String?
|
|
48
|
+
public let parameters: [Swift.String : Any]?
|
|
49
|
+
}
|
|
50
|
+
extension PNLight.PNLightSDK {
|
|
51
|
+
final public func getUIConfig(placement: Swift.String) async -> PNLight.UIConfig?
|
|
52
|
+
final public func prefetchUIConfig(placement: Swift.String)
|
|
53
|
+
final public func clearUIConfigCache()
|
|
54
|
+
}
|
|
29
55
|
extension PNLight.PNLightSDK {
|
|
30
56
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
57
|
+
final public func resetUserId()
|
|
58
|
+
}
|
|
59
|
+
public struct PNLightConfig {
|
|
60
|
+
public var baseDomain: Swift.String?
|
|
61
|
+
public init(baseDomain: Swift.String? = nil)
|
|
31
62
|
}
|
|
32
63
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class PNLightSDK : ObjectiveC.NSObject {
|
|
33
64
|
public static let shared: PNLight.PNLightSDK
|
|
34
|
-
final public func initialize(apiKey: Swift.String) async
|
|
65
|
+
final public func initialize(apiKey: Swift.String, config: PNLight.PNLightConfig? = nil) async
|
|
35
66
|
@objc deinit
|
|
36
67
|
}
|
|
37
68
|
extension PNLight.PNLightSDK : StoreKit.SKPaymentTransactionObserver {
|
|
38
69
|
@objc final public func paymentQueue(_ queue: StoreKit.SKPaymentQueue, updatedTransactions transactions: [StoreKit.SKPaymentTransaction])
|
|
39
70
|
}
|
|
71
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.Equatable {}
|
|
72
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.Hashable {}
|
|
73
|
+
extension PNLight.PNLightSDK.AttributionProvider : Swift.RawRepresentable {}
|