@revenuecat/purchases-capacitor 9.0.9 → 9.1.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/README.md +1 -0
- package/RevenuecatPurchasesCapacitor.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/revenuecat/purchases/capacitor/PurchasesPlugin.kt +3 -1
- package/dist/docs.json +7 -0
- package/ios/Plugin/PurchasesPlugin.swift +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1100,6 +1100,7 @@ Holds parameters to initialize the SDK.
|
|
|
1100
1100
|
| **`shouldShowInAppMessagesAutomatically`** | <code>boolean</code> | Whether we should show store in-app messages automatically. Both Google Play and the App Store provide in-app messages for some situations like billing issues. By default, those messages will be shown automatically. This allows to disable that behavior, so you can display those messages at your convenience. For more information, check: https://rev.cat/storekit-message and https://rev.cat/googleplayinappmessaging |
|
|
1101
1101
|
| **`entitlementVerificationMode`** | <code><a href="#entitlement_verification_mode">ENTITLEMENT_VERIFICATION_MODE</a></code> | Verification strictness levels for [EntitlementInfo]. See https://rev.cat/trusted-entitlements for more info. |
|
|
1102
1102
|
| **`pendingTransactionsForPrepaidPlansEnabled`** | <code>boolean</code> | Enable this setting if you want to allow pending purchases for prepaid subscriptions (only supported in Google Play). Note that entitlements are not granted until payment is done. Disabled by default. |
|
|
1103
|
+
| **`diagnosticsEnabled`** | <code>boolean</code> | Enabling diagnostics will send some performance and debugging information from the SDK to our servers. Examples of this information include response times, cache hits or error codes. No personal identifiable information will be collected. The default value is false. |
|
|
1103
1104
|
|
|
1104
1105
|
|
|
1105
1106
|
#### CustomerInfo
|
|
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
14
|
s.ios.deployment_target = '13.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency 'PurchasesHybridCommon', '13.
|
|
16
|
+
s.dependency 'PurchasesHybridCommon', '13.14.0'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -56,7 +56,7 @@ dependencies {
|
|
|
56
56
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
57
57
|
implementation project(':capacitor-android')
|
|
58
58
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
59
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.
|
|
59
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.14.0'
|
|
60
60
|
testImplementation "junit:junit:$junitVersion"
|
|
61
61
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
62
62
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -77,7 +77,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
77
77
|
|
|
78
78
|
companion object {
|
|
79
79
|
private const val PLATFORM_NAME = "capacitor"
|
|
80
|
-
private const val PLUGIN_VERSION = "9.0
|
|
80
|
+
private const val PLUGIN_VERSION = "9.1.0"
|
|
81
81
|
|
|
82
82
|
private const val CUSTOMER_INFO_KEY = "customerInfo"
|
|
83
83
|
}
|
|
@@ -98,6 +98,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
98
98
|
val shouldShowInAppMessages = call.getBoolean("shouldShowInAppMessagesAutomatically")
|
|
99
99
|
val entitlementVerificationMode = call.getString("entitlementVerificationMode")
|
|
100
100
|
val pendingTransactionsForPrepaidPlansEnabled = call.getBoolean("pendingTransactionsForPrepaidPlansEnabled")
|
|
101
|
+
val diagnosticsEnabled = call.getBoolean("diagnosticsEnabled")
|
|
101
102
|
|
|
102
103
|
configure(
|
|
103
104
|
context.applicationContext,
|
|
@@ -109,6 +110,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
109
110
|
shouldShowInAppMessagesAutomatically = shouldShowInAppMessages,
|
|
110
111
|
verificationMode = entitlementVerificationMode,
|
|
111
112
|
pendingTransactionsForPrepaidPlansEnabled = pendingTransactionsForPrepaidPlansEnabled,
|
|
113
|
+
diagnosticsEnabled = diagnosticsEnabled,
|
|
112
114
|
)
|
|
113
115
|
Purchases.sharedInstance.updatedCustomerInfoListener = UpdatedCustomerInfoListener { customerInfo ->
|
|
114
116
|
for (callbackId in customerInfoListeners) {
|
package/dist/docs.json
CHANGED
|
@@ -1458,6 +1458,13 @@
|
|
|
1458
1458
|
"docs": "Enable this setting if you want to allow pending purchases for prepaid subscriptions (only supported\nin Google Play). Note that entitlements are not granted until payment is done.\nDisabled by default.",
|
|
1459
1459
|
"complexTypes": [],
|
|
1460
1460
|
"type": "boolean | undefined"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "diagnosticsEnabled",
|
|
1464
|
+
"tags": [],
|
|
1465
|
+
"docs": "Enabling diagnostics will send some performance and debugging information from the SDK to our servers.\nExamples of this information include response times, cache hits or error codes.\nNo personal identifiable information will be collected.\nThe default value is false.",
|
|
1466
|
+
"complexTypes": [],
|
|
1467
|
+
"type": "boolean | undefined"
|
|
1461
1468
|
}
|
|
1462
1469
|
]
|
|
1463
1470
|
},
|
|
@@ -12,7 +12,7 @@ import RevenueCat
|
|
|
12
12
|
@objc(PurchasesPlugin)
|
|
13
13
|
public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
|
|
14
14
|
private let platformFlavor = "capacitor"
|
|
15
|
-
private let platformVersion = "9.0
|
|
15
|
+
private let platformVersion = "9.1.0"
|
|
16
16
|
|
|
17
17
|
private let customerInfoKey = "customerInfo"
|
|
18
18
|
private let transactionKey = "transaction"
|
|
@@ -52,6 +52,7 @@ public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
|
|
|
52
52
|
let userDefaultsSuiteName = call.getString("userDefaultsSuiteName")
|
|
53
53
|
let shouldShowInAppMessagesAutomatically = call.getBool("shouldShowInAppMessagesAutomatically") ?? true
|
|
54
54
|
let entitlementVerificationMode = call.getString("entitlementVerificationMode")
|
|
55
|
+
let diagnosticsEnabled = call.getBool("diagnosticsEnabled") ?? false
|
|
55
56
|
|
|
56
57
|
let purchases = Purchases.configure(apiKey: apiKey,
|
|
57
58
|
appUserID: appUserID,
|
|
@@ -62,7 +63,8 @@ public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
|
|
|
62
63
|
storeKitVersion: storeKitVersion,
|
|
63
64
|
dangerousSettings: DangerousSettings(),
|
|
64
65
|
shouldShowInAppMessagesAutomatically: shouldShowInAppMessagesAutomatically,
|
|
65
|
-
verificationMode: entitlementVerificationMode
|
|
66
|
+
verificationMode: entitlementVerificationMode,
|
|
67
|
+
diagnosticsEnabled: diagnosticsEnabled)
|
|
66
68
|
purchases.delegate = self
|
|
67
69
|
call.resolve()
|
|
68
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-capacitor",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Capacitor in-app purchases and subscriptions made easy. Support for iOS and Android.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@revenuecat/purchases-typescript-internal-esm": "13.
|
|
75
|
+
"@revenuecat/purchases-typescript-internal-esm": "13.14.0"
|
|
76
76
|
}
|
|
77
77
|
}
|