From 5a58bbe0cd9a0fc3a6cbc2836f24c35b796aab6a Mon Sep 17 00:00:00 2001 From: Wolfhard Prell Date: Thu, 24 Oct 2019 10:01:43 +0200 Subject: [PATCH 1/2] Added debug and release flags for the flutter command --- lib/commands/flutter.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/commands/flutter.dart b/lib/commands/flutter.dart index 0a5bd81d..f1107a1a 100644 --- a/lib/commands/flutter.dart +++ b/lib/commands/flutter.dart @@ -23,7 +23,10 @@ class FlutterCommand extends Command { help: '''Suppress analytics reporting when this command runs.''') ..addFlag('bug-report', help: - '''Captures a bug report file to submit to the Flutter team. Contains local paths, device identifiers, and log snippets.'''); + '''Captures a bug report file to submit to the Flutter team. Contains local paths, device identifiers, and log snippets.''') + ..addFlag('debug', help: '''Build a debug version of your app.''') + ..addFlag('release', + help: '''Build a release version of your app (default mode).'''); } Future run() async { From 1cae82c5e14e8584e3bde75713904512aeecee19 Mon Sep 17 00:00:00 2001 From: Wolfhard Prell Date: Thu, 24 Oct 2019 11:08:29 +0200 Subject: [PATCH 2/2] Added --build-number and --[no-]codesign arguments disabled [no-] prefix for non negetable parameters --- lib/commands/flutter.dart | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/commands/flutter.dart b/lib/commands/flutter.dart index f1107a1a..44d23a92 100644 --- a/lib/commands/flutter.dart +++ b/lib/commands/flutter.dart @@ -17,16 +17,25 @@ class FlutterCommand extends Command { argParser ..addOption('device-id', abbr: 'd', help: '''Target device id or name (prefixes allowed).''') - ..addFlag('version', + ..addOption('build-number', + help: '''An identifier used as an internal version number. + Each build must have a unique identifier to differentiate it from previous builds. + It is used to determine whether one build is more recent than another, with higher numbers indicating more recent build. + On Android it is used as 'versionCode'. + On Xcode builds it is used as 'CFBundleVersion' ''') + ..addFlag('version', negatable: false, help: '''Reports the version of this tool, on the local version.''') ..addFlag('suppress-analytics', help: '''Suppress analytics reporting when this command runs.''') - ..addFlag('bug-report', + ..addFlag('bug-report', negatable: false, help: '''Captures a bug report file to submit to the Flutter team. Contains local paths, device identifiers, and log snippets.''') ..addFlag('debug', help: '''Build a debug version of your app.''') - ..addFlag('release', - help: '''Build a release version of your app (default mode).'''); + ..addFlag('release', negatable: false, + help: '''Build a release version of your app (default mode).''') + ..addFlag('codesign', + help: + '''Codesign the application bundle (only available on device builds). (defaults to on)'''); } Future run() async {