buildReleaseCommand method

String buildReleaseCommand(
  1. ShorebirdCommandConfig config
)

Builds a release command string from the provided configuration.

Parameters:

  • config: The command configuration (Android or iOS)

Returns:

  • A complete Shorebird release command string

Throws:

Implementation

String buildReleaseCommand(ShorebirdCommandConfig config) {
  logDebug('Building release command for ${config.runtimeType}');

  if (config is AndroidCommandConfig) {
    return _buildAndroidReleaseCommand(config);
  } else if (config is IosCommandConfig) {
    return _buildIosReleaseCommand(config);
  } else {
    throw ArgumentError(
        'Unsupported configuration type for release: ${config.runtimeType}');
  }
}