androidDeployParser function
ArgParser
androidDeployParser()
Implementation
ArgParser androidDeployParser() {
return ArgParser()
..addOption('artifact', help: 'Path to the AAB or APK file to upload')
..addOption(
'aab',
help: 'Path to the AAB file to upload (alias for --artifact)',
)
..addOption(
'package-name',
help: 'Android package name (e.g. com.example.app)',
mandatory: true,
)
..addOption(
'service-account-json',
help:
'Path to Google Cloud service account JSON key file. '
'If not provided, reads from GOOGLE_PLAY_SERVICE_ACCOUNT_JSON env var '
'(can be the JSON content itself or a file path).',
)
..addOption(
'track',
help: 'Release track (internal, alpha, beta, production)',
defaultsTo: 'internal',
allowed: ['internal', 'alpha', 'beta', 'production'],
)
..addOption(
'status',
help: 'Release status',
defaultsTo: 'completed',
allowed: ['completed', 'draft', 'halted', 'inProgress'],
)
..addOption(
'release-name',
help: 'Release name (optional, shown in Play Console)',
)
..addOption(
'release-notes',
help:
'Release notes as JSON array, e.g. '
'\'[{"language":"en-US","text":"Bug fixes"}]\'',
)
..addFlag('help', abbr: 'h', negatable: false, help: 'Show help');
}