mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Bump Kotlin API version from 1.9 to 2.0 (#56849)
Summary: Kotlin 2.2.0 deprecated API versions 1.8 and 1.9, which causes a build failure when combined with -Werror. Bump apiVersion to KOTLIN_2_0 in all four gradle-plugin build files. ## Changelog: [ANDROID] [CHANGED] - Bumped min Kotlin version to 2.0+ Pull Request resolved: https://github.com/facebook/react-native/pull/56849 Test Plan: CI Differential Revision: D105322296 Pulled By: cortinico fbshipit-source-id: 729f4475e6f026032d3d0a34f4322eeb29e6a5a8
This commit is contained in:
1 parent
accc44eb75
commit
ec1e1ae054
4 files changed
+4
-4
No files matched your search
@@ -64,7 +64,7 @@ kotlin { jvmToolchain(17) }
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
apiVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||
apiVersion.set(KotlinVersion.KOTLIN_2_0)
|
||||
// See comment above on JDK 11 support
|
||||
jvmTarget.set(JvmTarget.JVM_11)
|
||||
allWarningsAsErrors.set(
|
||||
|
||||
@@ -54,7 +54,7 @@ kotlin { jvmToolchain(17) }
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
apiVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||
apiVersion.set(KotlinVersion.KOTLIN_2_0)
|
||||
// See comment above on JDK 11 support
|
||||
jvmTarget.set(JvmTarget.JVM_11)
|
||||
allWarningsAsErrors.set(
|
||||
|
||||
@@ -27,7 +27,7 @@ kotlin { jvmToolchain(17) }
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
apiVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||
apiVersion.set(KotlinVersion.KOTLIN_2_0)
|
||||
// See comment above on JDK 11 support
|
||||
jvmTarget.set(JvmTarget.JVM_11)
|
||||
allWarningsAsErrors.set(
|
||||
|
||||
@@ -33,7 +33,7 @@ kotlin { jvmToolchain(17) }
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
apiVersion.set(KotlinVersion.KOTLIN_1_9)
|
||||
apiVersion.set(KotlinVersion.KOTLIN_2_0)
|
||||
// See comment above on JDK 11 support
|
||||
jvmTarget.set(JvmTarget.JVM_11)
|
||||
allWarningsAsErrors.set(
|
||||
|
||||
Reference in new issue
Block a user