Skip to content

Commit

Permalink
Convert the app template to Kotlin (#36696)
Browse files Browse the repository at this point in the history
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: facebook/react-native@c1c22eb
  • Loading branch information
cortinico authored and facebook-github-bot committed Mar 29, 2023
1 parent 541f7c5 commit 832ff60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions template/template/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"

/**
Expand Down
2 changes: 2 additions & 0 deletions template/template/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +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"
}
repositories {
google()
Expand All @@ -17,5 +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")
}
}

0 comments on commit 832ff60

Please sign in to comment.