diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 6bc6e9745..267f9fc8e 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,9 +10,9 @@ environment: dependencies: flutter: sdk: flutter - flutter_stripe: ^9.2.0 - flutter_stripe_web: ^4.1.0 - stripe_checkout: ^1.0.0 + flutter_stripe: ^9.2.1 + flutter_stripe_web: ^4.1.1 + stripe_checkout: ^1.0.1 pay: ^1.1.0 http: ^0.13.1 font_awesome_flutter: ^9.2.0 diff --git a/packages/stripe/CHANGELOG.md b/packages/stripe/CHANGELOG.md index b63e63b00..7b3f76d3a 100644 --- a/packages/stripe/CHANGELOG.md +++ b/packages/stripe/CHANGELOG.md @@ -1,3 +1,11 @@ +## 9.2.1 +**Fixes** +- Move amount value to GooglePayPaymentMethodParams #1255 +- iOS: Apple Pay updatePlatformSheet now pass the errors #1230 +- iOS: Fixes styling parameter for ApplePayButton #1231 +- Android: Fixes bug that to display image in card form #1254 +- Sync with Stripe [0.27.1](https://github.com/stripe/stripe-react-native/releases/tag/v0.27.1). + ## 9.2.0 **Features** - Add `BillingDetailsCollectionConfiguration` to payment sheet for collecting addresses. diff --git a/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart b/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart index a20f22c42..233bd4d27 100644 --- a/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart +++ b/packages/stripe/lib/src/widgets/keep_visible_on_focus.dart @@ -32,7 +32,7 @@ class _KeepVisibleOnFocusState extends State void onFocusChanged() { if (widget.focusNode.hasFocus) { WidgetsBinding.instance.addObserver(this); - _lastBottomViewInset = View.of(context).viewInsets.bottom; + _lastBottomViewInset = MediaQuery.of(context).viewInsets.bottom; } else { WidgetsBinding.instance.removeObserver(this); } @@ -61,7 +61,7 @@ class _KeepVisibleOnFocusState extends State @override void didChangeMetrics() { - final currentBottomViewInsets = View.of(context).viewInsets.bottom; + final currentBottomViewInsets = MediaQuery.of(context).viewInsets.bottom; if (_lastBottomViewInset != currentBottomViewInsets) { if (_lastBottomViewInset < currentBottomViewInsets) { // Because the metrics change signal from engine will come here every frame diff --git a/packages/stripe/pubspec.yaml b/packages/stripe/pubspec.yaml index ba3b9db56..db26f25b9 100644 --- a/packages/stripe/pubspec.yaml +++ b/packages/stripe/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_stripe description: Flutter library for Stripe. Supports PaymentSheets, Apple & Google Pay, SCA, PSD2 and much more. -version: 9.2.0 +version: 9.2.1 homepage: https://github.com/flutter-stripe/flutter_stripe repository: https://github.com/flutter-stripe/flutter_stripe @@ -22,9 +22,9 @@ dependencies: flutter: sdk: flutter meta: ^1.8.0 - stripe_android: ^9.2.0 - stripe_ios: ^9.2.0 - stripe_platform_interface: ^9.2.0 + stripe_android: ^9.2.1 + stripe_ios: ^9.2.1 + stripe_platform_interface: ^9.2.1 dev_dependencies: flutter_test: sdk: flutter diff --git a/packages/stripe_android/CHANGELOG.md b/packages/stripe_android/CHANGELOG.md index a331abd6f..99188057d 100644 --- a/packages/stripe_android/CHANGELOG.md +++ b/packages/stripe_android/CHANGELOG.md @@ -1,3 +1,11 @@ +## 9.2.1 +**Fixes** +- Move amount value to GooglePayPaymentMethodParams #1255 +- iOS: Apple Pay updatePlatformSheet now pass the errors #1230 +- iOS: Fixes styling parameter for ApplePayButton #1231 +- Android: Fixes bug that to display image in card form #1254 +- Sync with Stripe [0.27.1](https://github.com/stripe/stripe-react-native/releases/tag/v0.27.1). + ## 9.2.0 **Features** - Add `BillingDetailsCollectionConfiguration` to payment sheet for collecting addresses. diff --git a/packages/stripe_android/pubspec.yaml b/packages/stripe_android/pubspec.yaml index 20b652aec..079091f9c 100644 --- a/packages/stripe_android/pubspec.yaml +++ b/packages/stripe_android/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_android description: Stripe platform implementation for Android -version: 9.2.0 +version: 9.2.1 repository: https://github.com/flutter-stripe/flutter_stripe homepage: https://pub.dev/packages/flutter_stripe diff --git a/packages/stripe_checkout/CHANGELOG.md b/packages/stripe_checkout/CHANGELOG.md index b7e4975c1..2e925a824 100644 --- a/packages/stripe_checkout/CHANGELOG.md +++ b/packages/stripe_checkout/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.0.0 +## 1.0.1 ** Breaking changes ** - Support for Flutter 3 and support Dart sdk 2.16 and higher. - Only supports application running on Freezed v2.0.0 and higher diff --git a/packages/stripe_checkout/pubspec.yaml b/packages/stripe_checkout/pubspec.yaml index 2ab85210e..2ecca2674 100644 --- a/packages/stripe_checkout/pubspec.yaml +++ b/packages/stripe_checkout/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_checkout description: Create Stripe checkout payment pages for web and mobile -version: 1.0.0 +version: 1.0.1 homepage: https://github.com/flutter-stripe/flutter_stripe/ environment: diff --git a/packages/stripe_ios/CHANGELOG.md b/packages/stripe_ios/CHANGELOG.md index a67be2f12..8ba947e50 100644 --- a/packages/stripe_ios/CHANGELOG.md +++ b/packages/stripe_ios/CHANGELOG.md @@ -1,3 +1,11 @@ +## 9.2.1 +**Fixes** +- Move amount value to GooglePayPaymentMethodParams #1255 +- iOS: Apple Pay updatePlatformSheet now pass the errors #1230 +- iOS: Fixes styling parameter for ApplePayButton #1231 +- Android: Fixes bug that to display image in card form #1254 +- Sync with Stripe [0.27.1](https://github.com/stripe/stripe-react-native/releases/tag/v0.27.1). + ## 9.2.0 **Features** - Add `BillingDetailsCollectionConfiguration` to payment sheet for collecting addresses. diff --git a/packages/stripe_ios/pubspec.yaml b/packages/stripe_ios/pubspec.yaml index 6a51e1c1a..2542ed65e 100644 --- a/packages/stripe_ios/pubspec.yaml +++ b/packages/stripe_ios/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_ios description: Stripe platform implementation for iOS -version: 9.2.0 +version: 9.2.1 repository: https://github.com/flutter-stripe/flutter_stripe homepage: https://pub.dev/packages/flutter_stripe diff --git a/packages/stripe_js/CHANGELOG.md b/packages/stripe_js/CHANGELOG.md index 78e61dd06..1778a0512 100644 --- a/packages/stripe_js/CHANGELOG.md +++ b/packages/stripe_js/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.0.1 +## 3.0.1 Fixes PaymentConfirmationRedirect.ifRedirect enum value parsing ## 3.0.0 - Adds support for SetupIntent diff --git a/packages/stripe_platform_interface/CHANGELOG.md b/packages/stripe_platform_interface/CHANGELOG.md index 921557c64..8b918445b 100644 --- a/packages/stripe_platform_interface/CHANGELOG.md +++ b/packages/stripe_platform_interface/CHANGELOG.md @@ -1,3 +1,11 @@ +## 9.2.1 +**Fixes** +- Move amount value to GooglePayPaymentMethodParams #1255 +- iOS: Apple Pay updatePlatformSheet now pass the errors #1230 +- iOS: Fixes styling parameter for ApplePayButton #1231 +- Android: Fixes bug that to display image in card form #1254 +- Sync with Stripe [0.27.1](https://github.com/stripe/stripe-react-native/releases/tag/v0.27.1). + ## 9.2.0 **Features** - Add `BillingDetailsCollectionConfiguration` to payment sheet for collecting addresses. diff --git a/packages/stripe_platform_interface/pubspec.yaml b/packages/stripe_platform_interface/pubspec.yaml index ad4a60fa9..323369e12 100644 --- a/packages/stripe_platform_interface/pubspec.yaml +++ b/packages/stripe_platform_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_platform_interface description: Platform interface for stripe sdk -version: 9.2.0 +version: 9.2.1 repository: https://github.com/flutter-stripe/flutter_stripe homepage: https://pub.dev/packages/flutter_stripe diff --git a/packages/stripe_platform_interface/test/method_channel_mock.dart b/packages/stripe_platform_interface/test/method_channel_mock.dart index 203e6a96c..3ae66bc61 100644 --- a/packages/stripe_platform_interface/test/method_channel_mock.dart +++ b/packages/stripe_platform_interface/test/method_channel_mock.dart @@ -12,7 +12,7 @@ class MethodChannelMock { this.delay = Duration.zero, this.result, }) : methodChannel = MethodChannel(channelName, const JSONMethodCodec()) { - TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + TestDefaultBinaryMessengerBinding.instance?.defaultBinaryMessenger .setMockMethodCallHandler(methodChannel, _handler); } diff --git a/packages/stripe_web/CHANGELOG.md b/packages/stripe_web/CHANGELOG.md index 5625565b3..96c9fa818 100644 --- a/packages/stripe_web/CHANGELOG.md +++ b/packages/stripe_web/CHANGELOG.md @@ -1,3 +1,11 @@ +## 4.1.1 +**Fixes** +- Move amount value to GooglePayPaymentMethodParams #1255 +- iOS: Apple Pay updatePlatformSheet now pass the errors #1230 +- iOS: Fixes styling parameter for ApplePayButton #1231 +- Android: Fixes bug that to display image in card form #1254 +- Sync with Stripe [0.27.1](https://github.com/stripe/stripe-react-native/releases/tag/v0.27.1). + ## 4.1.0 - Update to platform interface 9.2.0. - Small fixes for the web diff --git a/packages/stripe_web/pubspec.yaml b/packages/stripe_web/pubspec.yaml index bbc27f5c6..779dc19c0 100644 --- a/packages/stripe_web/pubspec.yaml +++ b/packages/stripe_web/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_stripe_web description: Stripe sdk bindings for the Flutter web platform. This package contains the implementation of the platform interface for web. -version: 4.1.0 +version: 4.1.1 homepage: https://github.com/flutter-stripe/flutter_stripe environment: @@ -13,9 +13,9 @@ dependencies: flutter_web_plugins: sdk: flutter freezed_annotation: ^2.0.3 - stripe_platform_interface: ^9.2.0 + stripe_platform_interface: ^9.2.1 js: ^0.6.3 - stripe_js: ^3.0.0 + stripe_js: ^3.0.1 dev_dependencies: flutter_test: diff --git a/pubspec.yaml b/pubspec.yaml index e787e453c..874a406f9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ -name: flutter_stripe_mono_repo +name: stripe_workspace environment: sdk: '>=2.18.0 <4.0.0' dev_dependencies: - melos: ^3.0.0 + melos: ^3.1.0