@revenuecat/purchases-capacitor 6.0.0 → 6.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 +14 -0
- package/RevenueCatPurchasesCapacitor.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/revenuecat/purchases/capacitor/PurchasesPlugin.kt +1 -1
- package/dist/docs.json +58 -0
- package/ios/Plugin/PurchasesPlugin.swift +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1053,6 +1053,7 @@ The EntitlementInfo object gives you access to all of the information about the
|
|
|
1053
1053
|
| **`expirationDateMillis`** | <code>number \| null</code> | The expiration date for the entitlement in milliseconds, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
|
|
1054
1054
|
| **`store`** | <code>'PLAY_STORE' \| 'APP_STORE' \| 'STRIPE' \| 'MAC_APP_STORE' \| 'PROMOTIONAL' \| 'AMAZON' \| 'UNKNOWN_STORE'</code> | The store where this entitlement was unlocked from. |
|
|
1055
1055
|
| **`productIdentifier`** | <code>string</code> | The product identifier that unlocked this entitlement |
|
|
1056
|
+
| **`productPlanIdentifier`** | <code>string \| null</code> | The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS. |
|
|
1056
1057
|
| **`isSandbox`** | <code>boolean</code> | False if this entitlement is unlocked via a production purchase |
|
|
1057
1058
|
| **`unsubscribeDetectedAt`** | <code>string \| null</code> | The date an unsubscribe was detected in ISO8601 format. Can be `null`. |
|
|
1058
1059
|
| **`unsubscribeDetectedAtMillis`** | <code>number \| null</code> | The date an unsubscribe was detected in milliseconds. Can be `null`. |
|
|
@@ -1130,6 +1131,7 @@ For more info see https://docs.revenuecat.com/docs/entitlements
|
|
|
1130
1131
|
| **`introPrice`** | <code><a href="#purchasesintroprice">PurchasesIntroPrice</a> \| null</code> | Introductory price. |
|
|
1131
1132
|
| **`discounts`** | <code>PurchasesStoreProductDiscount[] \| null</code> | Collection of discount offers for a product. Null for Android. |
|
|
1132
1133
|
| **`productCategory`** | <code><a href="#product_category">PRODUCT_CATEGORY</a> \| null</code> | Product category. |
|
|
1134
|
+
| **`productType`** | <code><a href="#product_type">PRODUCT_TYPE</a></code> | The specific type of subscription or one time purchase this product represents |
|
|
1133
1135
|
| **`subscriptionPeriod`** | <code>string \| null</code> | Subscription period, specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year. Note: Not available for Amazon. |
|
|
1134
1136
|
| **`defaultOption`** | <code><a href="#subscriptionoption">SubscriptionOption</a> \| null</code> | Default subscription option for a product. Google Play only. |
|
|
1135
1137
|
| **`subscriptionOptions`** | <code>SubscriptionOption[] \| null</code> | Collection of subscription options for a product. Google Play only. |
|
|
@@ -1380,6 +1382,18 @@ Listener used on updated customer info
|
|
|
1380
1382
|
| **`UNKNOWN`** | <code>"UNKNOWN"</code> | A type of product for unknowns. |
|
|
1381
1383
|
|
|
1382
1384
|
|
|
1385
|
+
#### PRODUCT_TYPE
|
|
1386
|
+
|
|
1387
|
+
| Members | Value | Description |
|
|
1388
|
+
| --------------------------------- | ------------------------------------------ | ----------------------------------------------------------------------- |
|
|
1389
|
+
| **`CONSUMABLE`** | <code>"CONSUMABLE"</code> | A consumable in-app purchase. |
|
|
1390
|
+
| **`NON_CONSUMABLE`** | <code>"NON_CONSUMABLE"</code> | A non-consumable in-app purchase. Only applies to Apple Store products. |
|
|
1391
|
+
| **`NON_RENEWABLE_SUBSCRIPTION`** | <code>"NON_RENEWABLE_SUBSCRIPTION"</code> | A non-renewing subscription. Only applies to Apple Store products. |
|
|
1392
|
+
| **`AUTO_RENEWABLE_SUBSCRIPTION`** | <code>"AUTO_RENEWABLE_SUBSCRIPTION"</code> | An auto-renewable subscription. |
|
|
1393
|
+
| **`PREPAID_SUBSCRIPTION`** | <code>"PREPAID_SUBSCRIPTION"</code> | A subscription that is pre-paid. Only applies to Google Play products. |
|
|
1394
|
+
| **`UNKNOWN`** | <code>"UNKNOWN"</code> | Unable to determine product type. |
|
|
1395
|
+
|
|
1396
|
+
|
|
1383
1397
|
#### PERIOD_UNIT
|
|
1384
1398
|
|
|
1385
1399
|
| Members | Value |
|
|
@@ -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', '6.
|
|
16
|
+
s.dependency 'PurchasesHybridCommon', '6.3.0'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -53,7 +53,7 @@ dependencies {
|
|
|
53
53
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
54
54
|
implementation project(':capacitor-android')
|
|
55
55
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
56
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common:6.
|
|
56
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:6.3.0'
|
|
57
57
|
testImplementation "junit:junit:$junitVersion"
|
|
58
58
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
59
59
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -70,7 +70,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
70
70
|
|
|
71
71
|
companion object {
|
|
72
72
|
private const val PLATFORM_NAME = "capacitor"
|
|
73
|
-
private const val PLUGIN_VERSION = "6.
|
|
73
|
+
private const val PLUGIN_VERSION = "6.1.0"
|
|
74
74
|
|
|
75
75
|
private const val CUSTOMER_INFO_KEY = "customerInfo"
|
|
76
76
|
}
|
package/dist/docs.json
CHANGED
|
@@ -1540,6 +1540,13 @@
|
|
|
1540
1540
|
"complexTypes": [],
|
|
1541
1541
|
"type": "string"
|
|
1542
1542
|
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "productPlanIdentifier",
|
|
1545
|
+
"tags": [],
|
|
1546
|
+
"docs": "The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS.",
|
|
1547
|
+
"complexTypes": [],
|
|
1548
|
+
"type": "string | null"
|
|
1549
|
+
},
|
|
1543
1550
|
{
|
|
1544
1551
|
"name": "isSandbox",
|
|
1545
1552
|
"tags": [],
|
|
@@ -1880,6 +1887,15 @@
|
|
|
1880
1887
|
],
|
|
1881
1888
|
"type": "PRODUCT_CATEGORY | null"
|
|
1882
1889
|
},
|
|
1890
|
+
{
|
|
1891
|
+
"name": "productType",
|
|
1892
|
+
"tags": [],
|
|
1893
|
+
"docs": "The specific type of subscription or one time purchase this product represents",
|
|
1894
|
+
"complexTypes": [
|
|
1895
|
+
"PRODUCT_TYPE"
|
|
1896
|
+
],
|
|
1897
|
+
"type": "PRODUCT_TYPE"
|
|
1898
|
+
},
|
|
1883
1899
|
{
|
|
1884
1900
|
"name": "subscriptionPeriod",
|
|
1885
1901
|
"tags": [],
|
|
@@ -2697,6 +2713,48 @@
|
|
|
2697
2713
|
}
|
|
2698
2714
|
]
|
|
2699
2715
|
},
|
|
2716
|
+
{
|
|
2717
|
+
"name": "PRODUCT_TYPE",
|
|
2718
|
+
"slug": "product_type",
|
|
2719
|
+
"members": [
|
|
2720
|
+
{
|
|
2721
|
+
"name": "CONSUMABLE",
|
|
2722
|
+
"value": "\"CONSUMABLE\"",
|
|
2723
|
+
"tags": [],
|
|
2724
|
+
"docs": "A consumable in-app purchase."
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"name": "NON_CONSUMABLE",
|
|
2728
|
+
"value": "\"NON_CONSUMABLE\"",
|
|
2729
|
+
"tags": [],
|
|
2730
|
+
"docs": "A non-consumable in-app purchase. Only applies to Apple Store products."
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"name": "NON_RENEWABLE_SUBSCRIPTION",
|
|
2734
|
+
"value": "\"NON_RENEWABLE_SUBSCRIPTION\"",
|
|
2735
|
+
"tags": [],
|
|
2736
|
+
"docs": "A non-renewing subscription. Only applies to Apple Store products."
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"name": "AUTO_RENEWABLE_SUBSCRIPTION",
|
|
2740
|
+
"value": "\"AUTO_RENEWABLE_SUBSCRIPTION\"",
|
|
2741
|
+
"tags": [],
|
|
2742
|
+
"docs": "An auto-renewable subscription."
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"name": "PREPAID_SUBSCRIPTION",
|
|
2746
|
+
"value": "\"PREPAID_SUBSCRIPTION\"",
|
|
2747
|
+
"tags": [],
|
|
2748
|
+
"docs": "A subscription that is pre-paid. Only applies to Google Play products."
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "UNKNOWN",
|
|
2752
|
+
"value": "\"UNKNOWN\"",
|
|
2753
|
+
"tags": [],
|
|
2754
|
+
"docs": "Unable to determine product type."
|
|
2755
|
+
}
|
|
2756
|
+
]
|
|
2757
|
+
},
|
|
2700
2758
|
{
|
|
2701
2759
|
"name": "PERIOD_UNIT",
|
|
2702
2760
|
"slug": "period_unit",
|
|
@@ -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 = "6.
|
|
15
|
+
private let platformVersion = "6.1.0"
|
|
16
16
|
|
|
17
17
|
private let customerInfoKey = "customerInfo"
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-capacitor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.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": "6.
|
|
75
|
+
"@revenuecat/purchases-typescript-internal-esm": "6.3.0"
|
|
76
76
|
}
|
|
77
77
|
}
|