@revenuecat/purchases-capacitor 12.1.2 → 12.2.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/Package.swift +1 -1
- package/README.md +2 -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 +14 -0
- package/ios/Sources/RevenuecatPurchasesCapacitor/PurchasesPlugin.swift +1 -1
- package/package.json +2 -2
package/Package.swift
CHANGED
|
@@ -11,7 +11,7 @@ let package = Package(
|
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
13
|
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
|
|
14
|
-
.package(url: "https://github.com/RevenueCat/purchases-hybrid-common.git", exact: "17.
|
|
14
|
+
.package(url: "https://github.com/RevenueCat/purchases-hybrid-common.git", exact: "17.41.1")
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
|
17
17
|
.target(
|
package/README.md
CHANGED
|
@@ -1464,6 +1464,7 @@ For more info see https://docs.revenuecat.com/docs/entitlements
|
|
|
1464
1464
|
| **`twoMonth`** | <code><a href="#purchasespackage">PurchasesPackage</a> \| null</code> | Two month package type configured in the RevenueCat dashboard, if available. |
|
|
1465
1465
|
| **`monthly`** | <code><a href="#purchasespackage">PurchasesPackage</a> \| null</code> | Monthly package type configured in the RevenueCat dashboard, if available. |
|
|
1466
1466
|
| **`weekly`** | <code><a href="#purchasespackage">PurchasesPackage</a> \| null</code> | Weekly package type configured in the RevenueCat dashboard, if available. |
|
|
1467
|
+
| **`webCheckoutUrl`** | <code>string \| null</code> | URL to use for web checkout for this offering. iOS and Android only. Null if not available. |
|
|
1467
1468
|
|
|
1468
1469
|
|
|
1469
1470
|
#### PurchasesPackage
|
|
@@ -1478,6 +1479,7 @@ For more info see https://docs.revenuecat.com/docs/entitlements
|
|
|
1478
1479
|
| **`product`** | <code><a href="#purchasesstoreproduct">PurchasesStoreProduct</a></code> | Product assigned to this package. |
|
|
1479
1480
|
| **`offeringIdentifier`** | <code>string</code> | Offering this package belongs to. |
|
|
1480
1481
|
| **`presentedOfferingContext`** | <code><a href="#presentedofferingcontext">PresentedOfferingContext</a></code> | Offering context this package belongs to. Null if not using offerings or if fetched directly from store via getProducts. |
|
|
1482
|
+
| **`webCheckoutUrl`** | <code>string \| null</code> | URL to use for web checkout for this package. iOS and Android only. Null if not available. |
|
|
1481
1483
|
|
|
1482
1484
|
|
|
1483
1485
|
#### PurchasesStoreProduct
|
|
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
14
|
s.ios.deployment_target = '15.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
|
-
s.dependency 'PurchasesHybridCommon', '17.
|
|
16
|
+
s.dependency 'PurchasesHybridCommon', '17.41.1'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -61,7 +61,7 @@ dependencies {
|
|
|
61
61
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
62
62
|
implementation project(':capacitor-android')
|
|
63
63
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
64
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common:17.
|
|
64
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:17.41.1'
|
|
65
65
|
testImplementation "junit:junit:$junitVersion"
|
|
66
66
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
67
67
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -84,7 +84,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
84
84
|
|
|
85
85
|
companion object {
|
|
86
86
|
private const val PLATFORM_NAME = "capacitor"
|
|
87
|
-
private const val PLUGIN_VERSION = "12.
|
|
87
|
+
private const val PLUGIN_VERSION = "12.2.0"
|
|
88
88
|
|
|
89
89
|
private const val CUSTOMER_INFO_KEY = "customerInfo"
|
|
90
90
|
}
|
package/dist/docs.json
CHANGED
|
@@ -2484,6 +2484,13 @@
|
|
|
2484
2484
|
"PurchasesPackage"
|
|
2485
2485
|
],
|
|
2486
2486
|
"type": "PurchasesPackage | null"
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"name": "webCheckoutUrl",
|
|
2490
|
+
"tags": [],
|
|
2491
|
+
"docs": "URL to use for web checkout for this offering. iOS and Android only. Null if not available.",
|
|
2492
|
+
"complexTypes": [],
|
|
2493
|
+
"type": "string | null"
|
|
2487
2494
|
}
|
|
2488
2495
|
]
|
|
2489
2496
|
},
|
|
@@ -2543,6 +2550,13 @@
|
|
|
2543
2550
|
"PresentedOfferingContext"
|
|
2544
2551
|
],
|
|
2545
2552
|
"type": "PresentedOfferingContext"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "webCheckoutUrl",
|
|
2556
|
+
"tags": [],
|
|
2557
|
+
"docs": "URL to use for web checkout for this package. iOS and Android only. Null if not available.",
|
|
2558
|
+
"complexTypes": [],
|
|
2559
|
+
"type": "string | null"
|
|
2546
2560
|
}
|
|
2547
2561
|
]
|
|
2548
2562
|
},
|
|
@@ -89,7 +89,7 @@ public class PurchasesPlugin: CAPPlugin, PurchasesDelegate, CAPBridgedPlugin {
|
|
|
89
89
|
CAPPluginMethod(name: "overridePreferredUILocale", returnType: CAPPluginReturnNone),
|
|
90
90
|
]
|
|
91
91
|
private let platformFlavor = "capacitor"
|
|
92
|
-
private let platformVersion = "12.
|
|
92
|
+
private let platformVersion = "12.2.0"
|
|
93
93
|
|
|
94
94
|
private let customerInfoKey = "customerInfo"
|
|
95
95
|
private let transactionKey = "transaction"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-capacitor",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "Capacitor in-app purchases and subscriptions made easy. Support for iOS and Android.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@revenuecat/purchases-typescript-internal-esm": "17.
|
|
79
|
+
"@revenuecat/purchases-typescript-internal-esm": "17.41.1"
|
|
80
80
|
}
|
|
81
81
|
}
|