@pnlight/sdk-react-native 0.3.5 → 0.3.7
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/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 +17 -3
- package/PNLight.xcframework/ios-arm64/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -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 +1 -1
- package/PNLight.xcframework/ios-arm64/PNLight.framework/PNLight +0 -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 +17 -3
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -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 +1 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.abi.json +17 -3
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/Modules/PNLight.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -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 +1 -1
- package/PNLight.xcframework/ios-arm64_x86_64-simulator/PNLight.framework/PNLight +0 -0
- package/PNLightSDK-ReactNative.podspec +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/ios/PNLightSDK.m +1 -1
- package/ios/PNLightSDK.swift +2 -2
- package/package.json +1 -1
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>PNLight.framework/PNLight</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>PNLight.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>PNLight.framework/PNLight</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>PNLight.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -398,18 +398,25 @@
|
|
|
398
398
|
{
|
|
399
399
|
"kind": "Function",
|
|
400
400
|
"name": "validatePurchase",
|
|
401
|
-
"printedName": "validatePurchase()",
|
|
401
|
+
"printedName": "validatePurchase(captcha:)",
|
|
402
402
|
"children": [
|
|
403
403
|
{
|
|
404
404
|
"kind": "TypeNominal",
|
|
405
405
|
"name": "Bool",
|
|
406
406
|
"printedName": "Swift.Bool",
|
|
407
407
|
"usr": "s:Sb"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"kind": "TypeNominal",
|
|
411
|
+
"name": "Bool",
|
|
412
|
+
"printedName": "Swift.Bool",
|
|
413
|
+
"hasDefaultArg": true,
|
|
414
|
+
"usr": "s:Sb"
|
|
408
415
|
}
|
|
409
416
|
],
|
|
410
417
|
"declKind": "Func",
|
|
411
|
-
"usr": "s:
|
|
412
|
-
"mangledName": "$
|
|
418
|
+
"usr": "s:7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
419
|
+
"mangledName": "$s7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
413
420
|
"moduleName": "PNLight",
|
|
414
421
|
"declAttributes": [
|
|
415
422
|
"Final",
|
|
@@ -586,6 +593,13 @@
|
|
|
586
593
|
"json_format_version": 8
|
|
587
594
|
},
|
|
588
595
|
"ConstValues": [
|
|
596
|
+
{
|
|
597
|
+
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight+PurchaseValidation.swift",
|
|
598
|
+
"kind": "BooleanLiteral",
|
|
599
|
+
"offset": 3295,
|
|
600
|
+
"length": 4,
|
|
601
|
+
"value": "true"
|
|
602
|
+
},
|
|
589
603
|
{
|
|
590
604
|
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight.swift",
|
|
591
605
|
"kind": "StringLiteral",
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
Binary file
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -398,18 +398,25 @@
|
|
|
398
398
|
{
|
|
399
399
|
"kind": "Function",
|
|
400
400
|
"name": "validatePurchase",
|
|
401
|
-
"printedName": "validatePurchase()",
|
|
401
|
+
"printedName": "validatePurchase(captcha:)",
|
|
402
402
|
"children": [
|
|
403
403
|
{
|
|
404
404
|
"kind": "TypeNominal",
|
|
405
405
|
"name": "Bool",
|
|
406
406
|
"printedName": "Swift.Bool",
|
|
407
407
|
"usr": "s:Sb"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"kind": "TypeNominal",
|
|
411
|
+
"name": "Bool",
|
|
412
|
+
"printedName": "Swift.Bool",
|
|
413
|
+
"hasDefaultArg": true,
|
|
414
|
+
"usr": "s:Sb"
|
|
408
415
|
}
|
|
409
416
|
],
|
|
410
417
|
"declKind": "Func",
|
|
411
|
-
"usr": "s:
|
|
412
|
-
"mangledName": "$
|
|
418
|
+
"usr": "s:7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
419
|
+
"mangledName": "$s7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
413
420
|
"moduleName": "PNLight",
|
|
414
421
|
"declAttributes": [
|
|
415
422
|
"Final",
|
|
@@ -586,6 +593,13 @@
|
|
|
586
593
|
"json_format_version": 8
|
|
587
594
|
},
|
|
588
595
|
"ConstValues": [
|
|
596
|
+
{
|
|
597
|
+
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight+PurchaseValidation.swift",
|
|
598
|
+
"kind": "BooleanLiteral",
|
|
599
|
+
"offset": 3295,
|
|
600
|
+
"length": 4,
|
|
601
|
+
"value": "true"
|
|
602
|
+
},
|
|
589
603
|
{
|
|
590
604
|
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight.swift",
|
|
591
605
|
"kind": "StringLiteral",
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
Binary file
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
@@ -398,18 +398,25 @@
|
|
|
398
398
|
{
|
|
399
399
|
"kind": "Function",
|
|
400
400
|
"name": "validatePurchase",
|
|
401
|
-
"printedName": "validatePurchase()",
|
|
401
|
+
"printedName": "validatePurchase(captcha:)",
|
|
402
402
|
"children": [
|
|
403
403
|
{
|
|
404
404
|
"kind": "TypeNominal",
|
|
405
405
|
"name": "Bool",
|
|
406
406
|
"printedName": "Swift.Bool",
|
|
407
407
|
"usr": "s:Sb"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"kind": "TypeNominal",
|
|
411
|
+
"name": "Bool",
|
|
412
|
+
"printedName": "Swift.Bool",
|
|
413
|
+
"hasDefaultArg": true,
|
|
414
|
+
"usr": "s:Sb"
|
|
408
415
|
}
|
|
409
416
|
],
|
|
410
417
|
"declKind": "Func",
|
|
411
|
-
"usr": "s:
|
|
412
|
-
"mangledName": "$
|
|
418
|
+
"usr": "s:7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
419
|
+
"mangledName": "$s7PNLight0A3SDKC16validatePurchase7captchaS2b_tYaF",
|
|
413
420
|
"moduleName": "PNLight",
|
|
414
421
|
"declAttributes": [
|
|
415
422
|
"Final",
|
|
@@ -586,6 +593,13 @@
|
|
|
586
593
|
"json_format_version": 8
|
|
587
594
|
},
|
|
588
595
|
"ConstValues": [
|
|
596
|
+
{
|
|
597
|
+
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight+PurchaseValidation.swift",
|
|
598
|
+
"kind": "BooleanLiteral",
|
|
599
|
+
"offset": 3295,
|
|
600
|
+
"length": 4,
|
|
601
|
+
"value": "true"
|
|
602
|
+
},
|
|
589
603
|
{
|
|
590
604
|
"filePath": "\/Users\/kirillzaidulin\/Documents\/work\/pnlight-sdk\/Sources\/PNLight\/PNLight.swift",
|
|
591
605
|
"kind": "StringLiteral",
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
Binary file
|
|
@@ -24,7 +24,7 @@ extension PNLight.PNLightSDK {
|
|
|
24
24
|
final public func onPurchased() async
|
|
25
25
|
}
|
|
26
26
|
extension PNLight.PNLightSDK {
|
|
27
|
-
final public func validatePurchase() async -> Swift.Bool
|
|
27
|
+
final public func validatePurchase(captcha: Swift.Bool = true) async -> Swift.Bool
|
|
28
28
|
}
|
|
29
29
|
extension PNLight.PNLightSDK {
|
|
30
30
|
final public func getOrCreateUserId() -> (id: Swift.String, isNew: Swift.Bool)
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function initialize(apiKey: string): Promise<void>;
|
|
2
|
-
export function validatePurchase(): Promise<boolean>;
|
|
2
|
+
export function validatePurchase(captcha?: boolean): Promise<boolean>;
|
|
3
3
|
export function logEvent(
|
|
4
4
|
eventName: string,
|
|
5
5
|
eventArgs?: Record<string, any>
|
package/index.js
CHANGED
|
@@ -7,8 +7,8 @@ module.exports = {
|
|
|
7
7
|
initialize(apiKey) {
|
|
8
8
|
return PNLightNative.initialize(apiKey);
|
|
9
9
|
},
|
|
10
|
-
async validatePurchase() {
|
|
11
|
-
return await PNLightNative.validatePurchase();
|
|
10
|
+
async validatePurchase(captcha = true) {
|
|
11
|
+
return await PNLightNative.validatePurchase(captcha);
|
|
12
12
|
},
|
|
13
13
|
async logEvent(eventName, eventArgs = {}) {
|
|
14
14
|
return await PNLightNative.logEvent(eventName, eventArgs);
|
package/ios/PNLightSDK.m
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@interface RCT_EXTERN_MODULE(PNLightRN, NSObject)
|
|
5
5
|
RCT_EXTERN_METHOD(initialize:(NSString *)apiKey resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
6
|
-
RCT_EXTERN_METHOD(validatePurchase:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
6
|
+
RCT_EXTERN_METHOD(validatePurchase:(BOOL)captcha resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
7
7
|
RCT_EXTERN_METHOD(logEvent:(NSString *)eventName eventArgs:(NSDictionary *)eventArgs resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
8
8
|
@end
|
|
9
9
|
|
package/ios/PNLightSDK.swift
CHANGED
|
@@ -11,9 +11,9 @@ class PNLightRNModule: NSObject {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@objc func validatePurchase(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
|
|
14
|
+
@objc func validatePurchase(_ captcha: Bool = true, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
|
|
15
15
|
Task {
|
|
16
|
-
let result = await PNLightSDK.shared.validatePurchase()
|
|
16
|
+
let result = await PNLightSDK.shared.validatePurchase(captcha: captcha)
|
|
17
17
|
resolve(result)
|
|
18
18
|
}
|
|
19
19
|
}
|