argumentBuilder property
Builds the Firebase CLI command arguments list.
Constructs the complete command-line arguments for the Firebase CLI
appdistribution:distribute command. Formats all parameters according
to Firebase CLI expectations and includes conditional arguments.
Key behavior:
- Uses Firebase CLI distribution command format
- Includes file path and app ID as primary arguments
- Adds optional parameters when configured
- Handles mutual exclusivity of file vs inline options
Returns list of formatted Firebase CLI command arguments.
Example output:
["appdistribution:distribute", "/path/to/app.apk", "--app",
"1:123456789:android:abcdef", "--groups=qa-team,beta-users"]
Implementation
@override
List<String> get argumentBuilder => [
'appdistribution:distribute',
filePath,
'--app',
appId,
if (releaseNotes != null) '--release-notes=$releaseNotes',
if (releaseNotesFile != null) '--release-notes-file=$releaseNotesFile',
if (testers != null) '--testers=$testers',
if (testersFile != null) '--testers-file=$testersFile',
if (groups != null) '--groups=$groups',
if (groupsFile != null) '--groups-file=$groupsFile',
if (cliToken != null) '--token=$cliToken'
];