@stripe/stripe-react-native 0.38.4 → 0.38.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.38.5 - 2024-09-04
6
+
7
+ **Fixes**
8
+
9
+ - Fixed build errors on Android when using React Native 0.75.x
10
+
5
11
  ## 0.38.4 - 2024-08-02
6
12
 
7
13
  **Fixes**
@@ -4,7 +4,7 @@ import com.facebook.react.uimanager.SimpleViewManager
4
4
  import com.facebook.react.uimanager.ThemedReactContext
5
5
  import com.facebook.react.uimanager.annotations.ReactProp
6
6
 
7
- class GooglePayButtonManager : SimpleViewManager<GooglePayButtonView?>() {
7
+ class GooglePayButtonManager : SimpleViewManager<GooglePayButtonView>() {
8
8
  override fun getName(): String {
9
9
  return REACT_CLASS
10
10
  }
@@ -881,7 +881,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
881
881
  @ReactMethod
882
882
  fun customerAdapterAttachPaymentMethodCallback(paymentMethodJson: ReadableMap, promise: Promise) {
883
883
  customerSheetFragment?.let {
884
- val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap()))
884
+ val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap() as HashMap<*, *>))
885
885
  if (paymentMethod == null) {
886
886
  Log.e("StripeReactNative", "There was an error converting Payment Method JSON to a Stripe Payment Method")
887
887
  return
@@ -896,7 +896,7 @@ class StripeSdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJ
896
896
  @ReactMethod
897
897
  fun customerAdapterDetachPaymentMethodCallback(paymentMethodJson: ReadableMap, promise: Promise) {
898
898
  customerSheetFragment?.let {
899
- val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap()))
899
+ val paymentMethod = PaymentMethod.fromJson(JSONObject(paymentMethodJson.toHashMap() as HashMap<*, *>))
900
900
  if (paymentMethod == null) {
901
901
  Log.e("StripeReactNative", "There was an error converting Payment Method JSON to a Stripe Payment Method")
902
902
  return
@@ -9,7 +9,7 @@ import com.facebook.react.uimanager.ThemedReactContext
9
9
  import com.facebook.react.uimanager.annotations.ReactProp
10
10
 
11
11
 
12
- class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager<AddToWalletButtonView?>() {
12
+ class AddToWalletButtonManager(applicationContext: Context) : SimpleViewManager<AddToWalletButtonView>() {
13
13
  private val requestManager = Glide.with(applicationContext)
14
14
  override fun getName() = "AddToWalletButton"
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-react-native",
3
- "version": "0.38.4",
3
+ "version": "0.38.5",
4
4
  "author": "Stripe",
5
5
  "description": "Stripe SDK for React Native",
6
6
  "main": "lib/commonjs/index",
File without changes