Skip to content

Commit 2dff7d5

Browse files
authored
feat(core): support application_id argument (#555)
1 parent 16e6dfc commit 2dff7d5

File tree

7 files changed

+146
-65
lines changed

7 files changed

+146
-65
lines changed

lib/src/commands/create/create.dart

+7
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ class CreateCommand extends Command<int> {
116116
'windows',
117117
help: 'The plugin supports the Windows platform.',
118118
defaultsTo: 'true',
119+
)
120+
..addOption(
121+
'application-id',
122+
help: 'The bundle identifier on iOS or application id on Android. '
123+
'(defaults to <org-name>.<project-name>)',
119124
);
120125
}
121126

@@ -160,11 +165,13 @@ class CreateCommand extends Command<int> {
160165
final windows = _argResults['windows'] as String? ?? 'true';
161166
final executableName =
162167
_argResults['executable-name'] as String? ?? projectName;
168+
final applicationId = _argResults['application-id'] as String?;
163169
var vars = <String, dynamic>{
164170
'project_name': projectName,
165171
'description': description,
166172
'executable_name': executableName,
167173
'org_name': orgName,
174+
if (applicationId != null) 'application_id': applicationId,
168175
'platforms': <String>[
169176
if (android.toBool()) 'android',
170177
if (ios.toBool()) 'ios',

lib/src/commands/create/templates/very_good_core/very_good_core_bundle.dart

+22-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_dart_cli/very_good_dart_cli_bundle.dart

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_dart_package/very_good_dart_package_bundle.dart

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/commands/create/templates/very_good_flutter_package/very_good_flutter_package_bundle.dart

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)