From 4fe55fa1f555c020de3a09d3d0e2716c481eebbb Mon Sep 17 00:00:00 2001 From: Konstantin Kolchurin Date: Wed, 29 Nov 2023 00:04:12 +0700 Subject: [PATCH] #535 highlight js and apple generator problem --- .../dev/icerock/gradle/generator/apple/AppleMRGenerator.kt | 1 + .../kotlin/dev/icerock/gradle/generator/js/JsMRGenerator.kt | 1 + .../gradle/tasks/GenerateMultiplatformResourcesTask.kt | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/apple/AppleMRGenerator.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/apple/AppleMRGenerator.kt index 3c545ef6..64d86365 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/apple/AppleMRGenerator.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/apple/AppleMRGenerator.kt @@ -93,6 +93,7 @@ class AppleMRGenerator( assetsGenerationDir.mkdirs() } + //TODO: Вынести на этап конфигурации private fun setupKLibResources(generationTask: GenerateMultiplatformResourcesTask) { val compileTask: TaskProvider = compilation.compileTaskProvider diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/js/JsMRGenerator.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/js/JsMRGenerator.kt index 08143b1e..cc015ab9 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/js/JsMRGenerator.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/js/JsMRGenerator.kt @@ -98,6 +98,7 @@ class JsMRGenerator( // ) } + //TODO: Вынести на этап конфигурации private fun setupKLibResources(generationTask: Task) { val taskProvider = compilation.compileTaskProvider taskProvider.configure { compileTask -> diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/tasks/GenerateMultiplatformResourcesTask.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/tasks/GenerateMultiplatformResourcesTask.kt index 06c4ce40..91aabd89 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/tasks/GenerateMultiplatformResourcesTask.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/tasks/GenerateMultiplatformResourcesTask.kt @@ -179,7 +179,7 @@ abstract class GenerateMultiplatformResourcesTask : DefaultTask() { // return JsMRGenerator( // project = project, // settings = settings, -// compilation = , //TODO: Research implementation +// compilation = compilationJs.get(), // generators = generators.map { // it.createJsGenerator() // } @@ -230,7 +230,7 @@ abstract class GenerateMultiplatformResourcesTask : DefaultTask() { // generators = generators.map { // it.createIosGenerator() // }, -// compilation = , +// compilation = compilationApple.get(), // ) } }