@@ -13,13 +13,17 @@ data class MultiPlatformLibrary(
1313 val iosX64 : String? = null ,
1414 val iosArm32 : String? = null ,
1515 val iosArm64 : String? = null ,
16+ val iosSimulatorArm64 : String? = null ,
1617 val macosX64 : String? = null ,
18+ val macosArm64 : String? = null ,
1719 val tvosX64 : String? = null ,
1820 val tvosArm64 : String? = null ,
21+ val tvosSimulatorArm64 : String? = null ,
1922 val watchosX86 : String? = null ,
2023 val watchosX64 : String? = null ,
2124 val watchosArm32 : String? = null ,
22- val watchosArm64 : String? = null
25+ val watchosArm64 : String? = null ,
26+ val watchosSimulatorArm64 : String? = null ,
2327) : KotlinNativeExportable {
2428
2529 override fun export (project : Project , framework : Framework ) {
@@ -28,13 +32,17 @@ data class MultiPlatformLibrary(
2832 KonanTarget .IOS_X64 -> iosX64
2933 KonanTarget .IOS_ARM32 -> iosArm32
3034 KonanTarget .IOS_ARM64 -> iosArm64
35+ KonanTarget .IOS_SIMULATOR_ARM64 -> iosSimulatorArm64
3136 KonanTarget .MACOS_X64 -> macosX64
37+ KonanTarget .MACOS_ARM64 -> macosArm64
3238 KonanTarget .TVOS_ARM64 -> tvosArm64
3339 KonanTarget .TVOS_X64 -> tvosX64
40+ KonanTarget .TVOS_SIMULATOR_ARM64 -> tvosSimulatorArm64
3441 KonanTarget .WATCHOS_X86 -> watchosX86
3542 KonanTarget .WATCHOS_X64 -> watchosX64
3643 KonanTarget .WATCHOS_ARM32 -> watchosArm32
3744 KonanTarget .WATCHOS_ARM64 -> watchosArm64
45+ KonanTarget .WATCHOS_SIMULATOR_ARM64 -> watchosSimulatorArm64
3846 else -> return
3947 }
4048 exportArtifact?.let { framework.export(it) }
@@ -47,17 +55,21 @@ fun DependencyHandlerScope.mppLibrary(configuration: String, library: MultiPlatf
4755 // ios
4856 library.iosArm32?.let { " iosArm32$configuration " (it) }
4957 library.iosArm64?.let { " iosArm64$configuration " (it) }
58+ library.iosSimulatorArm64?.let { " iosSimulatorArm64$configuration " (it) }
5059 library.iosX64?.let { " iosX64$configuration " (it) }
5160 // macos
5261 library.macosX64?.let { " macosX64$configuration " (it) }
62+ library.macosArm64?.let { " macosArm64$configuration " (it) }
5363 // tvos
5464 library.tvosArm64?.let { " tvosArm64$configuration " (it) }
5565 library.tvosX64?.let { " tvosX64$configuration " (it) }
66+ library.tvosSimulatorArm64?.let { " tvosSimulatorArm64$configuration " (it) }
5667 // watchos
5768 library.watchosX86?.let { " watchosX86$configuration " (it) }
5869 library.watchosX64?.let { " watchosX64$configuration " (it) }
5970 library.watchosArm32?.let { " watchosArm32$configuration " (it) }
6071 library.watchosArm64?.let { " watchosArm64$configuration " (it) }
72+ library.watchosSimulatorArm64?.let { " watchosSimulatorArm64$configuration " (it) }
6173}
6274
6375fun DependencyHandlerScope.mppLibrary (library : MultiPlatformLibrary ) {
@@ -83,11 +95,15 @@ fun String.defaultMPL(
8395 iosX64 = if (ios) commonToPlatformArtifact(this , " iosx64" ) else null ,
8496 iosArm32 = if (ios) commonToPlatformArtifact(this , " iosarm32" ) else null ,
8597 iosArm64 = if (ios) commonToPlatformArtifact(this , " iosarm64" ) else null ,
98+ iosSimulatorArm64 = if (ios) commonToPlatformArtifact(this , " iosSimulatorArm64" ) else null ,
8699 macosX64 = if (macos) commonToPlatformArtifact(this , " macosx64" ) else null ,
100+ macosArm64 = if (macos) commonToPlatformArtifact(this , " macosArm64" ) else null ,
87101 tvosX64 = if (tvos) commonToPlatformArtifact(this , " tvosx64" ) else null ,
88102 tvosArm64 = if (tvos) commonToPlatformArtifact(this , " tvosarm64" ) else null ,
103+ tvosSimulatorArm64 = if (ios) commonToPlatformArtifact(this , " tvosSimulatorArm64" ) else null ,
89104 watchosArm32 = if (watchos) commonToPlatformArtifact(this , " watchosarm32" ) else null ,
90105 watchosArm64 = if (watchos) commonToPlatformArtifact(this , " watchosarm64" ) else null ,
106+ watchosSimulatorArm64 = if (ios) commonToPlatformArtifact(this , " watchosSimulatorArm64" ) else null ,
91107 watchosX86 = if (watchos) commonToPlatformArtifact(this , " watchosx86" ) else null ,
92108 watchosX64 = if (watchos) commonToPlatformArtifact(this , " watchosx64" ) else null
93109 )
0 commit comments