From ff31830b87cfc86654070fd14c8099659be04949 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 27 May 2020 01:14:51 +0800 Subject: [PATCH] Refine build file --- build.gradle.kts | 2 +- mobile/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6f00c7dc..1ea35a00 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,6 +29,6 @@ allprojects { } } -tasks.register("clean", Delete::class) { +tasks.register("clean") { delete(rootProject.buildDir) } diff --git a/mobile/build.gradle.kts b/mobile/build.gradle.kts index fc181d10..d04956da 100644 --- a/mobile/build.gradle.kts +++ b/mobile/build.gradle.kts @@ -69,6 +69,7 @@ dependencies { coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.0.5") kapt("androidx.room:room-compiler:$roomVersion") + implementation(kotlin("stdlib-jdk8", rootProject.extra.get("kotlinVersion").toString())) implementation("androidx.browser:browser:1.2.0") implementation("androidx.core:core-ktx:1.3.0-rc01") implementation("androidx.emoji:emoji:1.1.0-rc01") @@ -89,7 +90,6 @@ dependencies { implementation("com.jakewharton.timber:timber:4.7.1") implementation("com.linkedin.dexmaker:dexmaker:2.25.1") implementation("com.takisoft.preferencex:preferencex-simplemenu:1.1.0") - implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${rootProject.extra.get("kotlinVersion")}") implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7") testImplementation("junit:junit:4.13")