Skip to content

Commit

Permalink
Kotlin to 1.8.0 and JDK Toolchain to 11 (#37220)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook/react-native#37220

I'm bumping Kotlin to 1.8.0 to align to the version used internally.

On top of this, I had to configure the JDK toolchain to 11 as Kotlin 1.8
was changing the default version of the stdlib it ships with by default.

This also shields us against problems once we'll bump to AGP 8 which requires
JDK 17 but still allows to produce libraries that are JDK 11 compatible.

Changelog:
[Android] [Changed] - Kotlin to 1.8.0 and JDK Toolchain to 11

Reviewed By: cipolleschi

Differential Revision: D45524689

fbshipit-source-id: 2558b5b6727b5d6e0e1e3cc58f0c6a85ddcefc4d

Original-Commit: facebook/react-native@74987b6
  • Loading branch information
cortinico authored and facebook-github-bot committed May 4, 2023
1 parent d8da060 commit d662e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/template/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
kotlinVersion = "1.7.22"
kotlinVersion = "1.8.0"
}
repositories {
google()
Expand All @@ -18,6 +18,6 @@ buildscript {
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}

0 comments on commit d662e32

Please sign in to comment.