From b714f932a1454de5367635c201162e78f5697d17 Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Mon, 2 Nov 2020 11:13:48 +0300 Subject: [PATCH] Simplify build.gradle.kts for android (res.srcDirs) --- examples/codeviewer/common/build.gradle.kts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/codeviewer/common/build.gradle.kts b/examples/codeviewer/common/build.gradle.kts index c831fa0da2..f14bbb300b 100644 --- a/examples/codeviewer/common/build.gradle.kts +++ b/examples/codeviewer/common/build.gradle.kts @@ -36,12 +36,6 @@ kotlin { } } -project.extensions.findByType()!!.apply { - sourceSets.findByName("main")?.apply { - res.srcDirs("src/commonMain/resources") - } -} - android { compileSdkVersion(30) @@ -60,7 +54,7 @@ android { sourceSets { named("main") { manifest.srcFile("src/androidMain/AndroidManifest.xml") - res.srcDirs("src/androidMain/res") + res.srcDirs("src/androidMain/res", "src/commonMain/resources") } } }