Skip to content

Commit 395021c

Browse files
authored
Migrate to Kotlin (#283)
1 parent 9dda4b0 commit 395021c

File tree

9 files changed

+395
-484
lines changed

9 files changed

+395
-484
lines changed

android/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
gradlePluginPortal()
88
}
99
dependencies {
10+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet("kotlinVersion", "1.8.0")}")
1011
classpath("com.android.tools.build:gradle:7.3.1")
1112
}
1213
}
@@ -16,14 +17,15 @@ def isNewArchitectureEnabled() {
1617
}
1718

1819
apply plugin: "com.android.library"
20+
apply plugin: "kotlin-android"
1921

2022
if (isNewArchitectureEnabled()) {
2123
apply plugin: "com.facebook.react"
2224
}
2325

2426
android {
25-
buildToolsVersion safeExtGet("buildToolsVersion", "33.0.0")
26-
compileSdkVersion safeExtGet("compileSdkVersion", 33)
27+
buildToolsVersion safeExtGet("buildToolsVersion", "34.0.0")
28+
compileSdkVersion safeExtGet("compileSdkVersion", 34)
2729

2830
if (project.android.hasProperty("namespace")) {
2931
namespace "com.zoontek.rnlocalize"
@@ -39,8 +41,8 @@ android {
3941
}
4042
defaultConfig {
4143
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
42-
minSdkVersion safeExtGet("minSdkVersion", 21)
43-
targetSdkVersion safeExtGet("targetSdkVersion", 33)
44+
minSdkVersion safeExtGet("minSdkVersion", 23)
45+
targetSdkVersion safeExtGet("targetSdkVersion", 34)
4446
}
4547
lintOptions {
4648
abortOnError false

android/src/main/java/com/zoontek/rnlocalize/RNLocalizeModuleImpl.java

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)