Adyen / adyen-flutter

MIT License
23 stars 4 forks source link

Update dependency com.adyen.checkout:drop-in to v5.3.1 #151

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 4 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.adyen.checkout:drop-in 5.2.0 -> 5.3.1 age adoption passing confidence

Release Notes

Adyen/adyen-android (com.adyen.checkout:drop-in) ### [`v5.3.1`](https://togithub.com/Adyen/adyen-android/releases/tag/5.3.1) [Compare Source](https://togithub.com/Adyen/adyen-android/compare/5.3.0...5.3.1) [//]: # "This file will be used for the release notes on GitHub when publishing." [//]: # "Types of changes: `Breaking changes` `New` `Added` `Improved` `Changed` `Deprecated` `Removed` `Fixed`" [//]: # "Example:" [//]: # "## Added" [//]: # " - New payment method" [//]: # "## Changed" [//]: # " - DropIn service's package changed from `com.adyen.dropin` to `com.adyen.dropin.services`" [//]: # "## Deprecated" [//]: # " - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object" ##### Fixed - For Drop-in and Components, when `?android:attr/textColor` is not defined in your own theme, the Card Component no longer crashes. - The `onAdditionalDetails` event is now triggered only once. Previously, the event was triggered multiple times in some edge cases. - The build output no longer contains warnings about multiple substitutions specified in non-positional format in string resources. - For the Card Component, we fixed localization issues that occurred when using the Address Lookup functionality. - Overriding some of the XML styles without specifying a parent style no longer causes a build error. ##### Removed - You can no longer use functions like `CheckoutConfiguration.getCardConfiguration()` or `CheckoutConfiguration.getDropInConfiguration()` to get configurations from the `CheckoutConfiguration` object. When starting Drop-in or Components, pass the full `CheckoutConfiguration` object. ##### Changed - Dependency versions: | Name | Version | |--------------------------------------------------------------------------------------------------------|-------------------------------| | [Android Gradle plugin](https://developer.android.com/build/releases/gradle-plugin) | **8.3.1** | ### [`v5.3.0`](https://togithub.com/Adyen/adyen-android/releases/tag/5.3.0) [Compare Source](https://togithub.com/Adyen/adyen-android/compare/5.2.0...5.3.0) [//]: # "This file will be used for the release notes on GitHub when publishing." [//]: # "Types of changes: `Breaking changes` `New` `Added` `Improved` `Changed` `Deprecated` `Removed` `Fixed`" [//]: # "Example:" [//]: # "## Added" [//]: # " - New payment method" [//]: # "## Changed" [//]: # " - DropIn service's package changed from `com.adyen.dropin` to `com.adyen.dropin.services`" [//]: # "## Deprecated" [//]: # " - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object" ##### New - A new way to create a configuration using DSL to be more declarative and concise: ```Kotlin CheckoutConfiguration( environment = environment, clientKey = clientKey, shopperLocale = shopperLocale, amount = amount, ) { dropIn { setEnableRemovingStoredPaymentMethods(true) } card { setHolderNameRequired(true) setShopperReference("...") } adyen3DS2 { setThreeDSRequestorAppURL("...") } } ``` > \[!WARNING] > If you use the new configuration DSL, pass the `CheckoutConfiguration` object as it is when starting Drop-in or Components. > > Do not use the functions to get configurations (such as `CheckoutConfiguration.getDropInConfiguration()` or `CheckoutConfiguration.getCardConfiguration()`). These functions will be removed in the following release. - For the Card Component, you can use the new [Address Lookup functionality](docs/ADDRESS_LOOKUP.md). - For voucher actions: when the `url` or `downloadUrl` is not included, the shopper has the option to select **Save as image** and save the voucher to the device's `Downloads` folder. - You can now set your own `AdyenLogger` instance with `AdyenLogger.setLogger`. This gives the ability to intercept logs and handle them in your own way. - [Instructions](example-app/README.md) to use the testing app in the repository. You can follow `How to migrate` section [here](https://togithub.com/Adyen/adyen-android/pull/1505). - Payment methods: - Multibanco. Payment method type: **multibanco**. - Pay Easy. Payment method type: **econtext_atm**. - Convenience Stores Japan. Payment method type: **econtext_stores** - Online Banking Japan. Payment method type: **econtext_online**. - Seven-Eleven: Payment method type: **econtext_seven_eleven** ##### Fixed - When building `minifyEnabled` without the `kotlin-parcelize` plugin in your project, the build should no longer crash. - When handling actions, you no longer get the `IllegalArgumentException: Unsupported delegate type` error that causes a crash. ##### Deprecated - When creating a configuration, the `Builder` constructors with a `Context` is deprecated. You can now omit the `context` parameter. - `PermissionException`. Handle permissions through `ActionComponentCallback`, `SessionComponentCallback`, or `ComponentCallback` callbacks instead. - The styles for vouchers have been changed: - | Previous (v5.2.0 or earlier) | Now (v5.3.0) | |---------------------------------------------|-----------------------------------------------| | `AdyenCheckout.Voucher.Description.Bacs` | `AdyenCheckout.Voucher.Simple.Description` | | `AdyenCheckout.Voucher.Description.Boleto` | `AdyenCheckout.Voucher.Full.Description` | | `AdyenCheckout.Voucher.ExpirationDateLabel` | `AdyenCheckout.Voucher.InformationFieldLabel` | | `AdyenCheckout.Voucher.ExpirationDate` | `AdyenCheckout.Voucher.InformationFieldValue` | | `AdyenCheckout.Voucher.ButtonCopyCode` | `AdyenCheckout.Voucher.Button.CopyCode` | | `AdyenCheckout.Voucher.ButtonDownloadPdf` | `AdyenCheckout.Voucher.Button.DownloadPdf` | - Logger.LogLevel has been deprecated. - | Previous (v5.2.0 or earlier) | Now (v5.3.0) | |------------------------------------------|-------------------------------------------------| | `Logger.LogLevel` | `AdyenLogLevel` | | `AdyenLogger.setLogLevel(logLevel: Int)` | `AdyenLogger.setLogLevel(level: AdyenLogLevel)` | ##### Changed - When creating a configuration, the `shopperLocale` parameter is now optional. - Sessions flow: when you don't set it, the shopper locale is set to the value included in the `/sessions` request. - Advanced flow: when you don't set it, the shopper local is set to the primary user locale on the device. - For Drop-in, all actions now start in expanded mode. - For the Google Pay Component, you no longer need to manually import the `3ds2` module to handle transactions that require Native 3D Secure 2 challenge. - If you use `DropInServiceResult.Error` without specifying an error message, the default has changed from `Error sending payment. Please try again.` to `An unknown error occurred`. - For the Sessions flow: - When starting Drop-in (with `DropIn.startPayment`) or creating a Component (with `YourComponent.PROVIDER.get`), the `configuration` parameter is now optional. - When using `CheckoutSessionProvider.createSession` to create a `CheckoutSession`, you can pass only `environment` and `clientKey` instead of the whole configuration. - Removing stored payment methods is now handled internally. You no longer need to override the `onRemoveStoredPaymentMethod` function. - Dependency versions: | Name | Version | |--------------------------------------------------------------------------------------------------------------|-------------------------------| | [Kotlin](https://kotlinlang.org/docs/releases.html#release-details) | **1.9.22** | | [AndroidX Compose compiler](https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.5.8) | **1.5.8** | | [AndroidX Compose Activity](https://developer.android.com/jetpack/androidx/releases/activity#1.8.2) | **1.8.2** | | [Material Design](https://togithub.com/material-components/material-components-android/releases/tag/1.11.0/) | **1.11.0** |

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 4 months ago

LCOV of commit ce89e9a during Check PR #547

Summary coverage rate:
  lines......: 1.8% (38 of 2135 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a
renovate[bot] commented 4 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (5.3.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.