aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-03-01 15:54:54 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-03-01 15:54:54 +0530
commitea9ef4af243c9c06e72a0f536da933a805f43a96 (patch)
treed4a2767984fb85cf3cfdfcb926820d4187ff240e
parentbuild: upgrade to Gradle 6.8.3 (diff)
downloadwireguard-android-ea9ef4af243c9c06e72a0f536da933a805f43a96.tar.xz
wireguard-android-ea9ef4af243c9c06e72a0f536da933a805f43a96.zip
build: upgrade Kotlin and turn on IR compiler
Kotlin has been building a new JVM backend for a while now and it is finally in Beta, scheduled to hit stable in Kotlin 1.4.50. This is the time to enable it and report any bugs we hit, before it becomes the default. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r--build.gradle2
-rw-r--r--ui/build.gradle1
2 files changed, 2 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 7276f40f..ca771b77 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,7 +15,7 @@ buildscript {
fragmentVersion = '1.3.0'
jsr305Version = '3.0.2'
junitVersion = '4.13.1'
- kotlinVersion = '1.4.30'
+ kotlinVersion = '1.4.31'
lifecycleRuntimeKtxVersion = '2.3.0'
materialComponentsVersion = '1.3.0'
preferenceVersion = '1.1.1'
diff --git a/ui/build.gradle b/ui/build.gradle
index 6c58deca..6bf39bfa 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -84,5 +84,6 @@ tasks.withType(JavaCompile) {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
+ useIR = true
}
}