From 4f2f08cbb518932bd77c5b40213152895982d726 Mon Sep 17 00:00:00 2001 From: "oleksandr.karpovich" Date: Wed, 13 Sep 2023 10:25:42 +0200 Subject: [PATCH] Add more targets to SUPPORTED_NATIVE_TARGETS Update according to our k/n targets of compose.runtime --- .../internal/configureNativeCompilerCaching.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/internal/configureNativeCompilerCaching.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/internal/configureNativeCompilerCaching.kt index f9ed3ae82c2..d67ef9a16b9 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/internal/configureNativeCompilerCaching.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/internal/configureNativeCompilerCaching.kt @@ -19,13 +19,31 @@ private const val PROJECT_CACHE_KIND_PROPERTY_NAME = "kotlin.native.cacheKind" private const val COMPOSE_NATIVE_MANAGE_CACHE_KIND = "compose.kotlin.native.manageCacheKind" private const val NONE_VALUE = "none" +// Compose runtime supports these k/native targets: +// https://github.com/JetBrains/compose-multiplatform-core/blob/jb-main/compose/runtime/runtime/build.gradle#L75 private val SUPPORTED_NATIVE_TARGETS = setOf( + // ios KonanTarget.IOS_ARM32, KonanTarget.IOS_X64, KonanTarget.IOS_ARM64, KonanTarget.IOS_SIMULATOR_ARM64, + // macos KonanTarget.MACOS_X64, KonanTarget.MACOS_ARM64, + // tvos + KonanTarget.TVOS_X64, + KonanTarget.TVOS_ARM64, + KonanTarget.TVOS_SIMULATOR_ARM64, + // watchOS + KonanTarget.WATCHOS_ARM64, + KonanTarget.WATCHOS_ARM32, + KonanTarget.WATCHOS_X64, + KonanTarget.WATCHOS_X86, // it's going to be deprecated, see comments in KonanTarget + KonanTarget.WATCHOS_SIMULATOR_ARM64, + // mingw + KonanTarget.MINGW_X64, + // linux + KonanTarget.LINUX_X64, ) internal val SUPPORTED_NATIVE_CACHE_KIND_PROPERTIES =