Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/src/commands/create/create.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ class CreateCommand extends Command<int> {
'windows',
help: 'The plugin supports the Windows platform.',
defaultsTo: 'true',
)
..addOption(
'application-id',
help: 'The bundle identifier on iOS or application id on Android. '
'(defaults to <org-name>.<project-name>)',
);
}

Expand Down Expand Up @@ -160,11 +165,13 @@ class CreateCommand extends Command<int> {
final windows = _argResults['windows'] as String? ?? 'true';
final executableName =
_argResults['executable-name'] as String? ?? projectName;
final applicationId = _argResults['application-id'] as String?;
var vars = <String, dynamic>{
'project_name': projectName,
'description': description,
'executable_name': executableName,
'org_name': orgName,
if (applicationId != null) 'application_id': applicationId,
'platforms': <String>[
if (android.toBool()) 'android',
if (ios.toBool()) 'ios',
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading