Skip to content

Commit

Permalink
Merge pull request #1160 from Adyen/release/4.11.0
Browse files Browse the repository at this point in the history
Prepare release 4.11.0
  • Loading branch information
OscarSpruit authored Apr 17, 2023
2 parents d544442 + a8a2c24 commit a993338
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ If you are upgrading from 3.x.x to a current release, check out our [migration g
Import the Component module for the Payment Method you want to use by adding it to your `build.gradle` file.
For example, for the Drop-in solution you should add:
```groovy
implementation "com.adyen.checkout:drop-in:4.10.0"
implementation "com.adyen.checkout:drop-in:4.11.0"
```
For a Credit Card component you should add:
```groovy
implementation "com.adyen.checkout:card:4.10.0"
implementation "com.adyen.checkout:card:4.11.0"
```

### Client Key
Expand Down
29 changes: 7 additions & 22 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,15 @@
[//]: # ( - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object)

## New
* The `CardComponentState.binValue` now reports 8 digit bins in case of card numbers with 16 or more digits.
* The new `CardBrand` class can be used to define unknown card brands. This can be used along with `CardType`.
* When adding new card brands through `CardConfiguration`, you can now use the new `CardBrand`to add brands that are not already defined in `CardType`.
For example:
* For BLIK, one-click is now supported.
* For 3D Secure 2, the `threeDSRequestorAppURL` can now be overridden from the configuration so that you can now use the [Android App Link](https://developer.android.com/studio/write/app-link-indexing) format (HTTP).

```kotlin
CardConfiguration.Builder([SHOPPER_LOCALE], [ENVIRONMENT], [CLIENT_KEY])
.setSupportedCardTypes(CardBrand(txVariant = "[CARD_BRAND1]"), CardBrand(txVariant = "[CARD_BRAND2]"))
.build()
Adyen3DSConfiguration.Builder(locale, environment, clientKey)
.setThreeDSRequestorURL("https://{your app.com}/adyen3ds2")
.build()
```

## Changed
* Upgraded the 3D Secure 2 SDK version to v2.2.11.
* Upgraded `compileSdkVersion` and `targetSdkVersion` to 32.
* Upgraded Kotlin version to 1.6.21.
* Upgraded Kotlin coroutines version to 1.6.1.
* Upgraded Fragment version to 1.5.5.
* Upgraded AppCompat version to 1.5.1.
⚠️Because of recent updates to the 3D Secure protocol, we strongly recommend that you provide the threeDSRequestorAppURL parameter as an Android App Link instead of custom link. This requires your app to handle the provided Android App Link. More details on how to handle Android App Link can be found on docs [page](https://docs.adyen.com/online-payments/classic-integrations/api-integration-ecommerce/3d-secure/native-3ds2/android-sdk-integration#handling-android-app-links).

## Fixed
* For cards, you can now add unknown card types that aren't defined in `CardType`. Previously,
`CardType.UNKNOWN` was not working correctly.
* There is no longer a conflict with the 3D Secure 2 SDK that causes a runtime exception. This fixes the [known issue in v4.9.0.](https://github.com/Adyen/adyen-android/releases/tag/4.9.0)

## Deprecated
* The `CardType.UNKNOWN` property. Use `CardBrand(txVariant = "[CARD_BRAND]")` instead.
* The `CardType.setTxVariant()` method. No longer needed as it was used with `CardType.UNKNOWN`.
* For BCMC, errors are now correctly highlighted.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ allprojects {
// just for example app, don't need to increment
ext.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).
ext.version_name = "4.10.0"
ext.version_name = "4.11.0"

// Code quality
ext.ktlint_version = '0.40.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;

import com.adyen.checkout.core.log.LogUtil;
import com.adyen.checkout.core.log.Logger;
Expand All @@ -24,6 +25,7 @@
*
* @param <T> The type returned by the {@link Connection}
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public abstract class ConnectionTask<T> extends FutureTask<T> {
private static final String TAG = LogUtil.getTag();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

package com.adyen.checkout.components;

import androidx.annotation.RestrictTo;

/**
* This provider should be used to get an instance of a {@link Component} that is bound your lifecycle.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public interface ComponentProvider<ComponentT extends Component> {
// Maker interface
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package com.adyen.checkout.components.api

import android.graphics.drawable.BitmapDrawable
import androidx.annotation.RestrictTo
import com.adyen.checkout.core.api.ConnectionTask
import com.adyen.checkout.core.api.ThreadManager
import com.adyen.checkout.core.log.LogUtil
Expand All @@ -19,6 +20,7 @@ import java.util.concurrent.TimeoutException
/**
* Task that wraps a Connection to get a Logo.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
class LogoConnectionTask(
private val logoApi: LogoApi,
val logoUrl: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ package com.adyen.checkout.components.base

import android.app.Activity
import android.content.Intent
import androidx.annotation.RestrictTo

/**
* A component that expects to receive and handle an activity result.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
interface ActivityResultHandlingComponent : ResultHandlingComponent {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import android.content.Context
import android.os.Bundle
import android.view.KeyEvent
import android.widget.FrameLayout
import androidx.annotation.RestrictTo
import androidx.fragment.app.activityViewModels
import com.adyen.checkout.components.ActionComponentData
import com.adyen.checkout.components.PaymentComponentState
Expand All @@ -30,6 +31,7 @@ import com.google.android.material.bottomsheet.BottomSheetDialogFragment

private val TAG = LogUtil.getTag()

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
abstract class DropInBottomSheetDialogFragment : BottomSheetDialogFragment() {

lateinit var protocol: Protocol
Expand Down
2 changes: 1 addition & 1 deletion example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ android {
dependencies {
// Checkout
implementation project(':drop-in')
// implementation "com.adyen.checkout:drop-in:4.10.0"
// implementation "com.adyen.checkout:drop-in:4.11.0"

// Dependencies
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinx_version"
Expand Down

0 comments on commit a993338

Please sign in to comment.