From 40543117a303fc5d5239c20cf336ddc0139c511e Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Fri, 22 Sep 2023 12:19:02 +0200 Subject: [PATCH] Add more targets to SUPPORTED_NATIVE_TARGETS (#3669) 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 99a9efbd0c..49a0b2317c 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 =