Skip to content

Commit

Permalink
Merge pull request #1415 from Adyen/release/5.1.0
Browse files Browse the repository at this point in the history
Preparing release 5.1.0
  • Loading branch information
jreij authored Dec 11, 2023
2 parents 43953e3 + a9d9c8b commit adc16be
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ Import the corresponding module in your `build.gradle` file.

For Drop-in:
```groovy
implementation "com.adyen.checkout:drop-in-compose:5.0.1"
implementation "com.adyen.checkout:drop-in-compose:5.1.0"
```
For the Credit Card component:
```groovy
implementation "com.adyen.checkout:card:5.0.1"
implementation "com.adyen.checkout:components-compose:5.0.1"
implementation "com.adyen.checkout:card:5.1.0"
implementation "com.adyen.checkout:components-compose:5.1.0"
```

### Without Jetpack Compose

For Drop-in:
```groovy
implementation "com.adyen.checkout:drop-in:5.0.1"
implementation "com.adyen.checkout:drop-in:5.1.0"
```
For the Credit Card component:
```groovy
implementation "com.adyen.checkout:card:5.0.1"
implementation "com.adyen.checkout:card:5.1.0"
```

The library is available on [Maven Central][mavenRepo].
Expand Down
29 changes: 22 additions & 7 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,27 @@
[//]: # ( - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object)

## New
- You can now override payment method names in drop in by using `DropInConfiguration.Builder.overridePaymentMethodName(type, name)`.
- For stored cards, Drop-in will show the card name ("Visa", "Mastercard"...), instead of "Credit Card".
- Now it is possible to show installment amounts for card payments using `InstallmentConfiguration.showInstallmentAmount` in `CardConfiguration.Builder.setInstallmentConfigurations()`.
- For gift cards, you can now hide the PIN text field using `GiftCardConfiguration.Builder.setPinRequired()`.
- When initializing the [Google Pay button](https://docs.adyen.com/payment-methods/google-pay/android-component/#2-show-the-google-pay-button), you can now use `GooglePayComponent.getGooglePayButtonParameters()` to get the `allowedPaymentMethods` attribute.
- For Google Pay, you can now use `AllowedAuthMethods` and `AllowedCardNetworks` to easily access to the possible values for `GooglePayConfiguration.Builder.setAllowedAuthMethods()` and `GooglePayConfiguration.Builder.setAllowedCardNetworks()`.
- The [BcmcComponent](https://adyen.github.io/adyen-android/bcmc/com.adyen.checkout.bcmc/-bcmc-component/index.html) now supports co-badged Bancontact cards and card brand detection.
- The [BcmcComponentState](https://adyen.github.io/adyen-android/bcmc/com.adyen.checkout.bcmc/-bcmc-component-state/index.html) now contains 3 extra fields: `cardBrand`, `binValue` and `lastFourDigits`.
- You can now override payment method names in Drop-in by using [DropInConfiguration.Builder.overridePaymentMethodName(type, name)](https://adyen.github.io/adyen-android/drop-in/com.adyen.checkout.dropin/-drop-in-configuration/-builder/override-payment-method-name.html).
- For stored cards, Drop-in now shows the card name (for example **Visa** or **Mastercard**) instead of **Credit Card**.
- Now it is possible to show installment amounts for card payments using [InstallmentConfiguration.showInstallmentAmount](https://adyen.github.io/adyen-android/card/com.adyen.checkout.card/-installment-configuration/show-installment-amount.html) in [CardConfiguration.Builder.setInstallmentConfigurations()](https://adyen.github.io/adyen-android/card/com.adyen.checkout.card/-card-configuration/-builder/set-installment-configurations.html).
- For gift cards, you can now hide the PIN text field by setting [GiftCardConfiguration.Builder.setPinRequired()](https://adyen.github.io/adyen-android/giftcard/com.adyen.checkout.giftcard/-gift-card-configuration/-builder/set-pin-required.html) to **false**.
- For Google Pay:
- When initializing the [Google Pay button](https://docs.adyen.com/payment-methods/google-pay/android-component/#2-show-the-google-pay-button), you can now use [GooglePayComponent.getGooglePayButtonParameters()](https://adyen.github.io/adyen-android/googlepay/com.adyen.checkout.googlepay/-google-pay-component/get-google-pay-button-parameters.html) to get the `allowedPaymentMethods` attribute.
- You can now use [AllowedAuthMethods](https://adyen.github.io/adyen-android/googlepay/com.adyen.checkout.googlepay/-allowed-auth-methods/index.html) and [AllowedCardNetworks](https://adyen.github.io/adyen-android/googlepay/com.adyen.checkout.googlepay/-allowed-card-networks/index.html) to easily access to the possible values for [GooglePayConfiguration.Builder.setAllowedAuthMethods()](https://adyen.github.io/adyen-android/googlepay/com.adyen.checkout.googlepay/-google-pay-configuration/-builder/set-allowed-auth-methods.html) and [GooglePayConfiguration.Builder.setAllowedCardNetworks()](https://adyen.github.io/adyen-android/googlepay/com.adyen.checkout.googlepay/-google-pay-configuration/-builder/set-allowed-card-networks.html).

## Fixed
- Fixed the bug which would not show components in Compose lazy lists.
- Fixed a bug where components would not be displayed in Jetpack Compose lazy lists.

## Changed
- Dependency versions:
| Name | Version |
|--------------------------------------------------------------------------------------------------------|-------------------------------|
| [AndroidX Compose Activity](https://developer.android.com/jetpack/androidx/releases/activity#1.8.0) | **1.8.0** |
| [Material Design](https://m2.material.io/) | **1.10.0** |
| [Gradle](https://docs.gradle.org/8.4/release-notes.html) | **8.4** |
| [Android Gradle plugin](https://developer.android.com/build/releases/gradle-plugin) | **8.1.2** |
| [AndroidX Compose BoM](https://developer.android.com/jetpack/compose/bom/bom-mapping) | **2023.10.01** |
| [AndroidX Recyclerview](https://developer.android.com/jetpack/androidx/releases/recyclerview#1.3.2) | **1.3.2** |
| [AndroidX Fragment](https://developer.android.com/jetpack/androidx/releases/fragment#1.6.2) | **1.6.2** |
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ internal class AnalyticsMapperTest {
)

val expected = AnalyticsSetupRequest(
version = "5.0.1",
version = "5.1.0",
channel = "android",
platform = "android",
locale = "en_US",
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ext {
// just for example app, don't need to increment
version_code = 1
// The version_name format is "major.minor.patch(-(alpha|beta|rc)[0-9]{2}){0,1}" (e.g. 3.0.0, 3.1.1-alpha04 or 3.1.4-rc01 etc).
version_name = "5.0.1"
version_name = "5.1.0"

// Build Script
android_gradle_plugin_version = '8.1.2'
Expand Down
2 changes: 1 addition & 1 deletion example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dependencies {
// Checkout
implementation project(':drop-in')
implementation project(':components-compose')
// implementation "com.adyen.checkout:drop-in:5.0.1"
// implementation "com.adyen.checkout:drop-in:5.1.0"

// Dependencies
implementation libraries.kotlinCoroutines
Expand Down

0 comments on commit adc16be

Please sign in to comment.