Skip to content

Commit 0216f8d

Browse files
committed
Added kotlin support by default
1 parent 2ac5079 commit 0216f8d

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎TeamCode/build.gradle‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,29 @@
1414
// Include common definitions from above.
1515
apply from: '../build.common.gradle'
1616
apply from: '../build.dependencies.gradle'
17+
apply plugin: 'org.jetbrains.kotlin.android'
1718

1819
android {
1920
namespace = 'org.firstinspires.ftc.teamcode'
2021

22+
compileSdk 35
23+
24+
defaultConfig {
25+
minSdk 24
26+
}
27+
2128
packagingOptions {
2229
jniLibs.useLegacyPackaging true
2330
}
31+
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_21
34+
targetCompatibility JavaVersion.VERSION_21
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '21'
39+
}
2440
}
2541

2642
repositories {
@@ -31,5 +47,5 @@ repositories {
3147

3248
dependencies {
3349
implementation project(':FtcRobotController')
34-
implementation 'com.andreidurlea:corecontrol:1.1.0'
50+
implementation 'com.andreidurlea:corecontrol:1.1.0.1'
3551
}

‎build.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildscript {
1212
dependencies {
1313
// Note for FTC Teams: Do not modify this yourself.
1414
classpath 'com.android.tools.build:gradle:8.7.0'
15+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0"
1516
}
1617

1718
}

0 commit comments

Comments
 (0)