From 4f2a9763e0b2a80b78c5f18c30c90c2726e2ef45 Mon Sep 17 00:00:00 2001 From: charliecruzan-stripe <97612659+charliecruzan-stripe@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:40:20 -0700 Subject: [PATCH] fix: RN 75 build errors (#1719) --- .../java/com/reactnativestripesdk/GooglePayButtonManager.kt | 2 +- .../main/java/com/reactnativestripesdk/StripeSdkModule.kt | 4 ++-- .../pushprovisioning/AddToWalletButtonManager.kt | 2 +- example/ios/Podfile.lock | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt b/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt index 39dc32f85..db558c4a2 100644 --- a/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +++ b/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt @@ -4,7 +4,7 @@ import com.facebook.react.uimanager.SimpleViewManager import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.annotations.ReactProp -class GooglePayButtonManager : SimpleViewManager() { +class GooglePayButtonManager : SimpleViewManager() { override fun getName(): String { return REACT_CLASS } diff --git a/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt b/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt index 1a85a6cf2..63a7b0485 100644 --- a/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +++ b/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt @@ -881,7 +881,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ @ReactMethod fun customerAdapterAttachPaymentMethodCallback(paymentMethodJson: ReadableMap, promise: Promise) { customerSheetFragment?.let { - val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap())) + val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap() as HashMap<*, *>)) if (paymentMethod == null) { Log.e("StripeReactNative", "There was an error converting Payment Method JSON to a Stripe Payment Method") return @@ -896,7 +896,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ @ReactMethod fun customerAdapterDetachPaymentMethodCallback(paymentMethodJson: ReadableMap, promise: Promise) { customerSheetFragment?.let { - val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap())) + val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap() as HashMap<*, *>)) if (paymentMethod == null) { Log.e("StripeReactNative", "There was an error converting Payment Method JSON to a Stripe Payment Method") return diff --git a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt index e932b27fe..22df1d5ac 100644 --- a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +++ b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt @@ -9,7 +9,7 @@ import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.annotations.ReactProp -class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager() { +class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager() { private val requestManager = Glide.with(applicationContext) override fun getName() = "AddToWalletButton" diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index add844946..cce12ca84 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -305,7 +305,7 @@ PODS: - StripePayments (= 23.28.1) - StripePaymentsUI (= 23.28.1) - StripeUICore (= 23.28.1) - - stripe-react-native (0.38.2): + - stripe-react-native (0.38.4): - React-Core - Stripe (~> 23.28.0) - StripeApplePay (~> 23.28.0) @@ -313,7 +313,7 @@ PODS: - StripePayments (~> 23.28.0) - StripePaymentSheet (~> 23.28.0) - StripePaymentsUI (~> 23.28.0) - - stripe-react-native/Tests (0.38.2): + - stripe-react-native/Tests (0.38.4): - React-Core - Stripe (~> 23.28.0) - StripeApplePay (~> 23.28.0) @@ -512,7 +512,7 @@ SPEC CHECKSUMS: RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 RNScreens: fa9b582d85ae5d62c91c66003b5278458fed7aaa Stripe: 20e24971647daa5750e7764faa1e8aefe4917243 - stripe-react-native: 9dfbda93796649dc6e343f00af750a22adc34959 + stripe-react-native: 3479d62b758ac162b4465cb0aed313b525a575f3 StripeApplePay: 5b098a0ba6136f4b587e03f5a3776461b4f20dd4 StripeCore: 880a68482cf78d4745c5213c2fd3446efc73574b StripeFinancialConnections: 49a19ca17dbb3055a8b559a1e3adfe769784a8f8