ReleasePackerCommandUploadReleaseBundle.byURL constructor

ReleasePackerCommandUploadReleaseBundle.byURL(
  1. String url, {
  2. Map<String, Object?>? parameters,
  3. Credential? authorization,
  4. String? file,
  5. String? release,
})

Implementation

factory ReleasePackerCommandUploadReleaseBundle.byURL(String url,
    {Map<String, Object?>? parameters,
    Credential? authorization,
    String? file,
    String? release}) {
  file ??= ReleaseBundle.defaultReleasesBundleFileFormat;
  release ??= '%RELEASE%';

  parameters ??= <String, Object?>{};

  parameters['file'] ??= file;
  parameters['release'] ??= release;

  var cmd = ReleasePackerCommandURL(url,
      parameters: parameters,
      authorization: authorization,
      body: '%RELEASE_BUNDLE%');

  return ReleasePackerCommandUploadReleaseBundle._(cmd);
}