@stripe/stripe-react-native 0.35.0 → 0.35.1
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,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.35.1 - 2024-01-16
|
|
6
|
+
|
|
7
|
+
**Fixes**
|
|
8
|
+
|
|
9
|
+
- Fixed a build error on Android when using React Native 0.73.0 and higher [#1579](https://github.com/stripe/stripe-react-native/pull/1579)
|
|
10
|
+
- Fixed the test mock for `useStripe` [#1559](https://github.com/stripe/stripe-react-native/pull/1559)
|
|
11
|
+
- Fixed a build error on Android that would only occur when using the `nx` build tool [#1586](https://github.com/stripe/stripe-react-native/pull/1586)
|
|
12
|
+
|
|
5
13
|
## 0.35.0 - 2023-11-02
|
|
6
14
|
|
|
7
15
|
**Features**
|
|
@@ -100,7 +108,7 @@
|
|
|
100
108
|
|
|
101
109
|
- Fixes `handleURLCallback` to only take action on iOS, no-op on Android. [#1423](https://github.com/stripe/stripe-react-native/pull/1423)
|
|
102
110
|
|
|
103
|
-
## 0.28.0 - 2023-06-16
|
|
111
|
+
## 0.28.0 - 2023-06-16 (📌 Expo SDK 49)
|
|
104
112
|
|
|
105
113
|
**Features**
|
|
106
114
|
|
package/README.md
CHANGED
|
@@ -242,6 +242,10 @@ See the [contributor guidelines](CONTRIBUTING.md) to learn how to contribute to
|
|
|
242
242
|
|
|
243
243
|
## Troubleshooting
|
|
244
244
|
|
|
245
|
+
### Android web browser windows close on backgrounding the app
|
|
246
|
+
|
|
247
|
+
This is known limitation of using `singleTask` as your `launchMode` on Android. See [here](https://github.com/stripe/stripe-react-native/blob/master/docs/android-chrome-tab-closes-on-background.md) for a workaround.
|
|
248
|
+
|
|
245
249
|
### `Undefined symbols for architecture x86_64` on iOS
|
|
246
250
|
|
|
247
251
|
While building your iOS project, you may see a `Undefined symbols for architecture x86_64` error. This is caused by `react-native init` template configuration that is not fully compatible with Swift 5.1.
|
|
@@ -28,7 +28,7 @@ import com.stripe.android.view.CardFormView
|
|
|
28
28
|
import com.stripe.android.view.CardInputListener
|
|
29
29
|
|
|
30
30
|
class CardFormView(context: ThemedReactContext) : FrameLayout(context) {
|
|
31
|
-
private var cardForm: CardFormView = CardFormView(context, null, R.style.StripeCardFormView_Borderless)
|
|
31
|
+
private var cardForm: CardFormView = CardFormView(context, null, com.stripe.android.R.style.StripeCardFormView_Borderless)
|
|
32
32
|
private var mEventDispatcher: EventDispatcher? = context.getNativeModule(UIManagerModule::class.java)?.eventDispatcher
|
|
33
33
|
private var dangerouslyGetFullCardDetails: Boolean = false
|
|
34
34
|
private var currentFocusedField: String? = null
|
package/jest/mock.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-react-native",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"author": "Stripe",
|
|
5
5
|
"description": "Stripe SDK for React Native",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"bootstrap": "yarn example && yarn && yarn pods",
|
|
21
21
|
"bootstrap-no-pods": "yarn example && yarn",
|
|
22
22
|
"docs": "yarn typedoc ./src/index.tsx --out ./docs/api-reference --tsconfig ./tsconfig.json --readme none --sort source-order",
|
|
23
|
-
"run-example-ios": "cd example;
|
|
24
|
-
"run-example-android": "cd example;
|
|
23
|
+
"run-example-ios": "cd example;react-native run-ios --configuration Release --simulator \"iPhone 15\"",
|
|
24
|
+
"run-example-android": "cd example;react-native run-android --variant=release",
|
|
25
25
|
"test:e2e:ios": "bash ./scripts/run-maestro-tests ios",
|
|
26
26
|
"test:e2e:android": "bash ./scripts/run-maestro-tests android",
|
|
27
27
|
"test:unit:ios": "xcodebuild test -workspace example/ios/StripeSdkExample.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13' -scheme UnitTests",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
android:clickable="true"
|
|
4
|
-
android:focusable="true"
|
|
5
|
-
android:layout_width="match_parent"
|
|
6
|
-
android:layout_height="wrap_content"
|
|
7
|
-
>
|
|
8
|
-
<com.google.android.gms.wallet.button.PayButton
|
|
9
|
-
android:id="@+id/googlePayButton"
|
|
10
|
-
android:layout_width="match_parent"
|
|
11
|
-
android:layout_height="wrap_content"
|
|
12
|
-
android:layout_marginBottom="20dp"
|
|
13
|
-
/>
|
|
14
|
-
</FrameLayout>
|