@revenuecat/purchases-capacitor-ui 13.8.0 → 14.0.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
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: "
|
|
14
|
+
.package(url: "https://github.com/RevenueCat/purchases-hybrid-common.git", exact: "20.0.0")
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
|
17
17
|
.target(
|
|
@@ -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 'PurchasesHybridCommonUI', '
|
|
16
|
+
s.dependency 'PurchasesHybridCommonUI', '20.0.0'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -53,6 +53,6 @@ repositories {
|
|
|
53
53
|
dependencies {
|
|
54
54
|
implementation project(':capacitor-android')
|
|
55
55
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
56
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:
|
|
56
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:20.0.0'
|
|
57
57
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.20"
|
|
58
58
|
}
|
|
@@ -240,12 +240,11 @@ private class PaywallDelegateAdapter: NSObject, PaywallViewControllerDelegateWra
|
|
|
240
240
|
|
|
241
241
|
func paywallViewController(_ controller: PaywallViewController,
|
|
242
242
|
didFinishPurchasingWith customerInfoDictionary: [String: Any],
|
|
243
|
-
transaction transactionDictionary: [String: Any]
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
plugin?.notifyListeners("onPurchaseCompleted", data: data)
|
|
243
|
+
transaction transactionDictionary: [String: Any]) {
|
|
244
|
+
plugin?.notifyListeners("onPurchaseCompleted", data: [
|
|
245
|
+
"customerInfo": customerInfoDictionary,
|
|
246
|
+
"storeTransaction": transactionDictionary
|
|
247
|
+
])
|
|
249
248
|
}
|
|
250
249
|
|
|
251
250
|
func paywallViewController(_ controller: PaywallViewController,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-capacitor-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"packageManager": "yarn@1.22.22",
|
|
5
5
|
"description": "UI components for RevenueCat Capacitor SDK",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"prepare": "cd .. && husky",
|
|
50
50
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
51
|
-
"verify:ios": "xcodebuild -scheme RevenuecatPurchasesCapacitorUi -destination generic/platform=iOS
|
|
51
|
+
"verify:ios": "xcodebuild -scheme RevenuecatPurchasesCapacitorUi -destination generic/platform=iOS",
|
|
52
52
|
"verify:ios:cocoapods": "cd ios/CocoapodsInstallationTest && pod install && xcodebuild -workspace CocoapodsInstallationTest.xcworkspace -scheme CocoapodsInstallationTest -destination 'generic/platform=iOS' CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=\"\" build",
|
|
53
53
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
54
54
|
"verify:web": "npm run build",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@capacitor/core": "^8.0.0",
|
|
69
|
-
"@revenuecat/purchases-typescript-internal-esm": "
|
|
69
|
+
"@revenuecat/purchases-typescript-internal-esm": "20.0.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@capacitor/core": ">=8.0.0",
|
|
73
|
-
"@revenuecat/purchases-capacitor": "
|
|
73
|
+
"@revenuecat/purchases-capacitor": "14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"lint-staged": {
|
|
76
76
|
"*.{ts,tsx}": [
|