react-native-purchases-ui 9.5.2 → 9.5.4
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/RNPaywalls.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/revenuecat/purchases/react/ui/RNCustomerCenterModule.kt +9 -3
- package/lib/commonjs/utils/environment.js +1 -1
- package/lib/module/utils/environment.js +1 -1
- package/package.json +3 -3
- package/src/utils/environment.ts +1 -1
package/RNPaywalls.podspec
CHANGED
@@ -17,6 +17,6 @@ Pod::Spec.new do |spec|
|
|
17
17
|
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
18
18
|
|
19
19
|
spec.dependency "React-Core"
|
20
|
-
spec.dependency "PurchasesHybridCommonUI", '17.
|
20
|
+
spec.dependency "PurchasesHybridCommonUI", '17.10.0'
|
21
21
|
spec.swift_version = '5.7'
|
22
22
|
end
|
package/android/build.gradle
CHANGED
@@ -59,7 +59,7 @@ android {
|
|
59
59
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
60
60
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
61
61
|
versionCode 1
|
62
|
-
versionName '9.5.
|
62
|
+
versionName '9.5.4'
|
63
63
|
}
|
64
64
|
|
65
65
|
buildTypes {
|
@@ -91,7 +91,7 @@ dependencies {
|
|
91
91
|
//noinspection GradleDynamicVersion
|
92
92
|
implementation "com.facebook.react:react-native:+"
|
93
93
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
94
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:17.
|
94
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:17.10.0'
|
95
95
|
implementation 'androidx.compose.ui:ui-android:1.5.4'
|
96
96
|
implementation "androidx.appcompat:appcompat:1.6.1"
|
97
97
|
}
|
@@ -117,13 +117,19 @@ internal class RNCustomerCenterModule(
|
|
117
117
|
action: String,
|
118
118
|
customAction: String?,
|
119
119
|
purchaseIdentifier: String?
|
120
|
+
) {
|
121
|
+
// DEPRECATED
|
122
|
+
}
|
123
|
+
|
124
|
+
override fun onCustomActionSelectedWrapper(
|
125
|
+
actionId: String,
|
126
|
+
purchaseIdentifier: String?
|
120
127
|
) {
|
121
128
|
val params = WritableNativeMap().apply {
|
122
|
-
putString("
|
123
|
-
putString("actionId", customAction)
|
129
|
+
putString("actionId", actionId)
|
124
130
|
putString("purchaseIdentifier", purchaseIdentifier)
|
125
131
|
}
|
126
|
-
sendEvent("
|
132
|
+
sendEvent("onCustomActionSelected", params)
|
127
133
|
}
|
128
134
|
|
129
135
|
override fun onShowingManageSubscriptionsWrapper() {
|
@@ -8,7 +8,7 @@ var _reactNative = require("react-native");
|
|
8
8
|
/**
|
9
9
|
* Detects if the app is running in an environment where native modules are not available
|
10
10
|
* (like Expo Go or Web) or if the required native modules are missing.
|
11
|
-
*
|
11
|
+
*
|
12
12
|
* @returns {boolean} True if the app is running in an environment where native modules are not available
|
13
13
|
* (like Expo Go or Web) or if the required native modules are missing.
|
14
14
|
*/
|
@@ -3,7 +3,7 @@ import { NativeModules, Platform } from "react-native";
|
|
3
3
|
/**
|
4
4
|
* Detects if the app is running in an environment where native modules are not available
|
5
5
|
* (like Expo Go or Web) or if the required native modules are missing.
|
6
|
-
*
|
6
|
+
*
|
7
7
|
* @returns {boolean} True if the app is running in an environment where native modules are not available
|
8
8
|
* (like Expo Go or Web) or if the required native modules are missing.
|
9
9
|
*/
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-native-purchases-ui",
|
3
3
|
"title": "React Native Purchases UI",
|
4
|
-
"version": "9.5.
|
4
|
+
"version": "9.5.4",
|
5
5
|
"description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android.",
|
6
6
|
"main": "lib/commonjs/index",
|
7
7
|
"module": "lib/module/index",
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"peerDependencies": {
|
79
79
|
"react": "*",
|
80
80
|
"react-native": ">= 0.73.0",
|
81
|
-
"react-native-purchases": "9.5.
|
81
|
+
"react-native-purchases": "9.5.4",
|
82
82
|
"react-native-web": "*"
|
83
83
|
},
|
84
84
|
"peerDependenciesMeta": {
|
@@ -123,6 +123,6 @@
|
|
123
123
|
]
|
124
124
|
},
|
125
125
|
"dependencies": {
|
126
|
-
"@revenuecat/purchases-typescript-internal": "17.
|
126
|
+
"@revenuecat/purchases-typescript-internal": "17.10.0"
|
127
127
|
}
|
128
128
|
}
|
package/src/utils/environment.ts
CHANGED
@@ -3,7 +3,7 @@ import { NativeModules, Platform } from "react-native";
|
|
3
3
|
/**
|
4
4
|
* Detects if the app is running in an environment where native modules are not available
|
5
5
|
* (like Expo Go or Web) or if the required native modules are missing.
|
6
|
-
*
|
6
|
+
*
|
7
7
|
* @returns {boolean} True if the app is running in an environment where native modules are not available
|
8
8
|
* (like Expo Go or Web) or if the required native modules are missing.
|
9
9
|
*/
|