uploadBundle method

  1. @override
Future<GooglePlayBundle> uploadBundle({
  1. required String packageName,
  2. required String editId,
  3. required String aabPath,
})
override

Uploads an AAB to an edit.

Implementation

@override
Future<GooglePlayBundle> uploadBundle({
  required String packageName,
  required String editId,
  required String aabPath,
}) => _guard(
  'upload the Android App Bundle',
  () async {
    final file = File(aabPath);
    final bundle = await _api.edits.bundles.upload(
      packageName,
      editId,
      uploadMedia: play.Media(
        file.openRead(),
        await file.length(),
      ),
      uploadOptions: play.UploadOptions.resumable,
    );
    return _bundle(bundle);
  },
);