Skip to content

Commit

Permalink
fix: RN 75 build errors (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe authored Aug 27, 2024
1 parent 054971f commit 4f2a976
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<GooglePayButtonView?>() {
class GooglePayButtonManager : SimpleViewManager<GooglePayButtonView>() {
override fun getName(): String {
return REACT_CLASS
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.facebook.react.uimanager.ThemedReactContext
import com.facebook.react.uimanager.annotations.ReactProp


class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager<AddToWalletButtonView?>() {
class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager<AddToWalletButtonView>() {
private val requestManager = Glide.with(applicationContext)
override fun getName() = "AddToWalletButton"

Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ 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)
- StripeFinancialConnections (~> 23.28.0)
- 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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4f2a976

Please sign in to comment.