ShorebirdPatchService class

Service for executing Shorebird patch commands.

This service handles the execution of Shorebird patch commands for different platforms (Android, iOS) with proper configuration and error handling.

Usage

final config = AndroidCommandConfig(
  artifact: 'apk', // Not used for patches but required by config
  flavor: 'dev',
  target: 'lib/main.dart',
  // ... other configuration
);

final service = ShorebirdPatchService(config);
final result = await service.execute();
Inheritance

Constructors

ShorebirdPatchService(ShorebirdCommandConfig config)
Creates a new patch service with the provided configuration.

Properties

config ShorebirdCommandConfig
The configuration for command execution
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildCommand() String
Builds the command string for execution.
override
execute() Future<ShorebirdResult>
Executes the Shorebird command and returns the result.
inherited
formatCommandArgs(List<String> args) String
Creates a formatted command argument string.
inherited
logCommand(String command) → void
Logs the command that is about to be executed.
inherited
logCommandComplete(String commandName, Duration duration) → void
Logs the completion of a command execution.
inherited
logCommandStart(String commandName, String flavor) → void
Logs the start of a command execution.
inherited
logDebug(String message) → void
Logs debug information (only when debug mode is enabled).
inherited
logError(String message) → void
Logs an error message.
inherited
logInfo(String message, {String prefix = 'Info'}) → void
Logs an informational message.
inherited
logSetup(String component) → void
Logs a setup step.
inherited
logStep(String step) → void
Logs a step in the execution process.
inherited
logSuccess(String message) → void
Logs a success message.
inherited
logValidation(String item) → void
Logs a validation step.
inherited
logWarning(String message) → void
Logs a warning message.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requireConfigValue(String? value, String fieldName) → void
Validates that a required configuration value is present.
inherited
toString() String
A string representation of this object.
inherited
validate() Future<void>
Validates the configuration before execution.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited