createBuilds method

Future<AppBuildsUpload> createBuilds({
  1. required String cloudCapsuleId,
  2. required List<AppPlatform> platforms,
  3. required String flutterAppDir,
  4. required int archiveSize,
  5. Map<AppPlatform, String>? appIdentifiers,
  6. String? versionName,
  7. String? commitHash,
  8. String? commitMessage,
  9. String? branch,
})

Requests a build of the Flutter app in flutterAppDir of the uploaded archive for each of platforms, and returns the build ids with the upload description for an archive of archiveSize bytes.

appIdentifiers holds the app identifier of each of platforms, the iOS bundle ID or Android package name, as the app declares it. Each is recorded for its platform, and one that replaces a different identifier is listed in the result. Clients that leave it out get no check.

Throws InvalidValueException if archiveSize is not positive, platforms is empty or repeats a platform, appIdentifiers does not name exactly the platforms, or an app identifier is invalid. Throws UploadTooLargeException if archiveSize exceeds the upload limit. Throws AppPlatformNotSetUpException if the publishing setup of a platform in platforms is incomplete; no build is created. Throws ProjectSuspendedException if the project is suspended. Throws AppPublishingDisabledException while app publishing is off in this environment.

Implementation

_ida.Future<_iqiq2vfs.AppBuildsUpload> createBuilds({
  required String cloudCapsuleId,
  required List<_id4pe5bk.AppPlatform> platforms,
  required String flutterAppDir,
  required int archiveSize,
  Map<_id4pe5bk.AppPlatform, String>? appIdentifiers,
  String? versionName,
  String? commitHash,
  String? commitMessage,
  String? branch,
}) => caller.callServerEndpoint<_iqiq2vfs.AppBuildsUpload>(
  'appBuilds',
  'createBuilds',
  {
    'cloudCapsuleId': cloudCapsuleId,
    'platforms': platforms,
    'flutterAppDir': flutterAppDir,
    'archiveSize': archiveSize,
    'appIdentifiers': appIdentifiers == null
        ? null
        : _iod2a87h.Protocol().mapContainerToJson(appIdentifiers),
    'versionName': versionName,
    'commitHash': commitHash,
    'commitMessage': commitMessage,
    'branch': branch,
  },
);