From 664f5c2ad572fee368c5b4af5240fa8c26de5a1b Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Mon, 6 May 2024 10:44:16 +0200 Subject: [PATCH] Fix ImageViewer: Apply applyDefaultHierarchyTemplate (#4762) The intermediate `iosMain` source was previously removed here: https://github.com/JetBrains/compose-multiplatform/pull/3956 And it worked fine. According to the doc https://kotlinlang.org/docs/whatsnew1920.html#set-up-the-target-hierarchy : > If you want to have additional source sets that the default hierarchy template doesn't provide, for example, one that shares code between a macOS and a JVM target, adjust the hierarchy by reapplying the template explicitly with applyDefaultHierarchyTemplate() and configuring additional source sets manually as usual with dependsOn() Now we have an additional custom source set named 'jsWasmMain', therefore we need to have `applyDefaultHierarchyTemplate()`. --- examples/imageviewer/shared/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/imageviewer/shared/build.gradle.kts b/examples/imageviewer/shared/build.gradle.kts index c3172b010d..70d6882eea 100755 --- a/examples/imageviewer/shared/build.gradle.kts +++ b/examples/imageviewer/shared/build.gradle.kts @@ -28,6 +28,8 @@ kotlin { } } + applyDefaultHierarchyTemplate() + sourceSets { all { languageSettings {