macosArtifactArchitecture function
Implementation
String macosArtifactArchitecture(Architecture architecture) {
switch (architecture) {
case Architecture.arm64:
return 'arm64';
case Architecture.x64:
return 'x86_64';
default:
throw StateError(
'Unsupported macOS target architecture "${architecture.name}"; '
'supported architectures: arm64, x64.',
);
}
}