run method
Method responsible to load the configurations and upload the debug symbols and source maps
Implementation
Future<int> run(List<String> cliArguments) async {
_configuration = injector.get<Configuration>();
try {
await _configuration.getConfigValues(cliArguments);
if (!_configuration.validateConfigValues()) {
return 1;
}
if (_configuration.uploadDebugSymbols) {
await _executeCliForDebugSymbols();
} else {
Log.info('uploadNativeSymbols is disabled.');
}
final release = _release;
await _executeNewRelease(release);
if (_configuration.uploadSourceMaps) {
await _executeCliForSourceMaps(release);
} else {
Log.info('uploadSourceMaps is disabled.');
}
if (_configuration.commits.toLowerCase() != 'false') {
await _executeSetCommits(release);
} else {
Log.info('Commit integration is disabled.');
}
await _executeFinalizeRelease(release);
} on ExitError catch (e) {
return e.code;
}
return 0;
}