run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
void run() async {
var applicationId = argResults?['applicationId'] as String?;
applicationId ??= XInput.askValue(
'Enter New Android Application ID:',
null,
validators: [
NonEmptyValidator(),
AndroidAppIdValidator(),
],
);
final projectDirectoryPath = Directory.current.path;
final androidManager =
AndroidManager(Directory('$projectDirectoryPath/android'));
await UpdateApplicationIdTask(
androidManager: androidManager,
applicationId: applicationId,
).execute();
}