mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Fix publishing multiple platforms that use same alternative name (#1790)
-Pcompose.platforms=macos only matched MacosX64, when it was expected to match both MacosX64 & MacosArm64
This commit is contained in:
@@ -48,9 +48,9 @@ enum class ComposePlatforms(vararg val alternativeNames: String) {
|
||||
return ALL
|
||||
}
|
||||
|
||||
val publication = ALL.firstOrNull { it.matches(name) }
|
||||
if (publication != null) {
|
||||
platforms.add(publication)
|
||||
val matchingPlatforms = ALL.filter { it.matches(name) }
|
||||
if (matchingPlatforms.isNotEmpty()) {
|
||||
platforms.addAll(matchingPlatforms)
|
||||
} else {
|
||||
unknownNames.add(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user