react-native-purchases-ui 9.2.2 → 9.2.3

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.
@@ -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", '16.2.2'
20
+ spec.dependency "PurchasesHybridCommonUI", '17.0.0'
21
21
  spec.swift_version = '5.7'
22
22
  end
@@ -8,7 +8,7 @@ buildscript {
8
8
  }
9
9
 
10
10
  dependencies {
11
- classpath "com.android.tools.build:gradle:8.12.0"
11
+ classpath "com.android.tools.build:gradle:8.12.1"
12
12
  // noinspection DifferentKotlinGradleVersion
13
13
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
14
  }
@@ -59,7 +59,7 @@ android {
59
59
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
60
60
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
61
61
  versionCode 1
62
- versionName '9.2.2'
62
+ versionName '9.2.3'
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:16.2.2'
94
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:17.0.0'
95
95
  implementation 'androidx.compose.ui:ui-android:1.5.4'
96
96
  implementation "androidx.appcompat:appcompat:1.6.1"
97
97
  }
@@ -114,6 +114,19 @@ internal class RNCustomerCenterModule(
114
114
  sendEvent("onManagementOptionSelected", params)
115
115
  }
116
116
 
117
+ override fun onManagementOptionSelectedWrapper(
118
+ action: String,
119
+ customAction: String?,
120
+ purchaseIdentifier: String?
121
+ ) {
122
+ val params = WritableNativeMap().apply {
123
+ putString("option", action)
124
+ putString("actionId", customAction)
125
+ putString("purchaseIdentifier", purchaseIdentifier)
126
+ }
127
+ sendEvent("onManagementOptionSelected", params)
128
+ }
129
+
117
130
  override fun onShowingManageSubscriptionsWrapper() {
118
131
  sendEvent("onShowingManageSubscriptions", null)
119
132
  }
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.2.2",
4
+ "version": "9.2.3",
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",
@@ -77,7 +77,7 @@
77
77
  "peerDependencies": {
78
78
  "react": "*",
79
79
  "react-native": ">= 0.73.0",
80
- "react-native-purchases": "9.2.2",
80
+ "react-native-purchases": "9.2.3",
81
81
  "react-native-web": "*"
82
82
  },
83
83
  "peerDependenciesMeta": {
@@ -122,6 +122,6 @@
122
122
  ]
123
123
  },
124
124
  "dependencies": {
125
- "@revenuecat/purchases-typescript-internal": "16.2.2"
125
+ "@revenuecat/purchases-typescript-internal": "17.0.0"
126
126
  }
127
127
  }