diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index ff12b4ceb18c22..d73c7288ca6f43 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -5,10 +5,15 @@ * LICENSE file in the root directory of this source tree. */ +buildscript { + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.hasProperty("kotlinVersion") ? rootProject.ext.kotlinVersion : KOTLIN_VERSION}" + } +} + plugins { id("com.android.library") id("com.facebook.react") - id("org.jetbrains.kotlin.android") version "1.6.10" id("maven-publish") id("de.undercouch.download") } @@ -484,3 +489,5 @@ afterEvaluate { } } } + +apply plugin: "org.jetbrains.kotlin.android" diff --git a/ReactAndroid/gradle.properties b/ReactAndroid/gradle.properties index afff6e699fc7a6..11bbc9b3531cfd 100644 --- a/ReactAndroid/gradle.properties +++ b/ReactAndroid/gradle.properties @@ -34,5 +34,8 @@ FOLLY_VERSION=2021.07.22.00 GLOG_VERSION=0.3.5 LIBEVENT_VERSION=2.1.12 +# Plugins Versions +KOTLIN_VERSION=1.6.10 + android.useAndroidX=true android.enableJetifier=true