startReleaseBuildArguments top-level property

List<String> startReleaseBuildArguments
final

The arguments of the flutter tool that a build of an app as a release takes too when CI starts it on a device, which the script of CI reads (startReleaseArgumentsFile): the flavor that the app entry role names for a release, since a command without --flavor builds its default flavor in release mode too, and the same flavor for the probe of the flavor, which sees whether it reached the app. So the script names no flavor, and the release app that it starts is the one that a user gets.

Implementation

final List<String> startReleaseBuildArguments = [
  '--flavor',
  AppEntryRole.releaseFlavor.name,
  '--dart-define=$startFlavorDefine=${AppEntryRole.releaseFlavor.name}',
];