Skip to content

Commit

Permalink
Merge pull request #498 from Adyen/gradle-rn72
Browse files Browse the repository at this point in the history
Gradle for React Native 72
  • Loading branch information
descorp authored Jul 20, 2024
2 parents 70d2191 + 3b7770b commit 0419d82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
[![Adyen Android](https://img.shields.io/badge/android-v5.6.0-brightgreen.svg)](https://github.com/Adyen/adyen-android/releases/tag/5.6.0)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=Adyen_adyen-react-native&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=Adyen_adyen-react-native)

> [!WARNING]
> [!NOTE]
> Google will introduce new [target API level requirements for Google Play apps](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en) starting August 31 2024.
>
> For React-Native **73+**
> * use version 2.1.1
> For React-Native **73+** no action needed.
>
> For React-Native **before 73**:
> * update Android compileTarget to 34
> * set android plugin version to at least 8.1+
> * use version 2.1.0
> For React-Native **72**:
> * update Android compileTarget to 34 in `android/build.gradle`
> * set `classpath("com.android.tools.build:gradle:8.1.4")` in `android/build.gradle`
> * enable `buildConfig` in `android/app/build.gradle` by adding `android.buildFeatures.buildConfig = true`
>
> For React-Native **before 72**:
> * update Android compileTarget to 34 in `android/build.gradle`


![React Native Logo](https://user-images.githubusercontent.com/2648655/198584674-f0c46e71-1c21-409f-857e-77acaa4daae0.png)

Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down

0 comments on commit 0419d82

Please sign in to comment.