EndpointAppBuilds class Endpoint

Inheritance

Constructors

EndpointAppBuilds(EndpointCaller caller)

Properties

caller → EndpointCaller
Holds a reference to the caller class.
finalinherited
client ↔ ServerpodClientShared
Reference to the client.
latefinalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the endpoint this reference is connected to.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelBuild({required String cloudCapsuleId, required UuidValue buildId}) → Future<void>
Cancels a build. One at the build service keeps its status until the service confirms, which tailBuild shows; a build that already ended is left as it is.
createBuilds({required String cloudCapsuleId, required List<AppPlatform> platforms, required String flutterAppDir, required int archiveSize, Map<AppPlatform, String>? appIdentifiers, String? versionName, String? commitHash, String? commitMessage, String? branch}) → Future<AppBuildsUpload>
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.
getArtifactDownloadUrl({required String cloudCapsuleId, required UuidValue buildId, required String artifactId}) → Future<String>
A link that downloads the artifact artifactId of a build without credentials. It expires ten minutes after this call, so fetch it when the download starts, not when the build is shown.
getBuild({required String cloudCapsuleId, required UuidValue buildId}) → Future<AppBuildDetail>
Gets a build with its steps.
getLatestBuilds({required String cloudCapsuleId}) → Future<List<AppBuildSummary>>
Gets the capsule's most recent build per platform, in AppPlatform order. Platforms without a build are left out.
getStepLog({required String cloudCapsuleId, required UuidValue buildId, required int stepIndex}) → Future<String?>
The log of the step at stepIndex of a build. Empty until the step has ended, null once the build service has discarded it. Each call reaches the build service, so fetch a log once tailBuild shows the step ended.
getUploadBuilds({required String cloudCapsuleId, required UuidValue uploadId}) → Future<List<AppBuildSummary>>
Gets the builds made from the archive upload uploadId, in AppPlatform order.
listArtifacts({required String cloudCapsuleId, required UuidValue buildId}) → Future<List<AppBuildArtifact>>
The files a build produced, such as the .ipa or .aab, as the build service lists them. Empty until the build has ended, and once the build service has discarded them. Each call reaches the build service.
listBuilds({required String cloudCapsuleId, AppPlatform? platform, int? limit, UuidValue? afterBuildId}) → Future<List<AppBuildSummary>>
Lists the capsule's builds newest first, up to limit builds (50 when unset, at most 100), and only for platform if set. When afterBuildId is set, lists the builds that come after it, for fetching the next page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tailBuild({required String cloudCapsuleId, required UuidValue buildId}) → Stream<AppBuildDetail>
Follows a build. Emits the build with its steps immediately, then again whenever either changes, and closes once the build is final.
tailStepLogs({required String cloudCapsuleId, required UuidValue buildId}) → Stream<AppBuildStepLog>
Follows a build's step logs. The build service keeps no live output, so a step's log exists only once the step has ended. Emits each step with its log as soon as the step has ended, in step order, starting with the steps that ended before the call, and closes once the build is final. tailBuild shows the step that is running meanwhile.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited