Skip to content

Commit

Permalink
Add more targets to SUPPORTED_NATIVE_TARGETS
Browse files Browse the repository at this point in the history
Update according to our k/n targets of compose.runtime
  • Loading branch information
eymar committed Sep 13, 2023
1 parent 021b099 commit 4f2f08c
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 4f2f08c

Please sign in to comment.