Skip to content

Commit eca4f65

Browse files
cortinicofacebook-github-bot
authored andcommitted
Convert the app template to Kotlin (#36696)
Summary: Pull Request resolved: facebook/react-native#36696 As the title says, we're converting the new app template to Kotlin. This will reduce the template size and make it more aligned to market standards. Changelog: [Android] [Changed] - Convert the app template to Kotlin Reviewed By: mdvacca Differential Revision: D44142081 fbshipit-source-id: 6111360b6580460eba0341e47c55704cc673e444 Original-Commit: facebook/react-native@c1c22eb
1 parent 3056277 commit eca4f65

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

template/template/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "org.jetbrains.kotlin.android"
23
apply plugin: "com.facebook.react"
34

45
/**

template/template/android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99

1010
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
1111
ndkVersion = "23.1.7779620"
12+
kotlinVersion = "1.7.22"
1213
}
1314
repositories {
1415
google()
@@ -17,5 +18,6 @@ buildscript {
1718
dependencies {
1819
classpath("com.android.tools.build:gradle")
1920
classpath("com.facebook.react:react-native-gradle-plugin")
21+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
2022
}
2123
}

0 commit comments

Comments
 (0)