Skip to content

Commit

Permalink
Update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Jun 5, 2023
1 parent 687e7c7 commit 854b943
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ description: Generated sidekick plugin (template install-only)
version: 0.0.1
environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
dependencies:
sidekick_core: ^1.0.0
sidekick_core: ^2.0.0
dev_dependencies:
lint: ^1.5.0
sidekick_plugin_installer: ^0.3.0
lint: ^2.0.0
sidekick_plugin_installer: ^1.1.0
''';

String get installTemplate => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ description: Generated sidekick plugin (template shared-code)
version: 0.0.1
environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
dependencies:
sidekick_core: ^1.0.0
sidekick_core: ^2.0.0
dev_dependencies:
lint: ^1.5.0
sidekick_plugin_installer: ^0.3.0
lint: ^2.0.0
sidekick_plugin_installer: ^1.1.0
''';

String get installTemplate => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ description: Generated sidekick plugin (template shared-command)
version: 0.0.1
environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
dependencies:
sidekick_core: ^1.0.0
sidekick_core: ^2.0.0
dev_dependencies:
lint: ^1.5.0
sidekick_plugin_installer: ^0.3.0
lint: ^2.0.0
sidekick_plugin_installer: ^1.1.0
''';

String get installTemplate => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class InstallPluginCommand extends Command {
// update when sidekick_core removes support for old sidekick_plugin_installer protocol
min: Version.none,
// update when sidekick_core supports new sidekick_plugin_installer protocol
max: Version(0, 4, 0),
max: Version(2, 0, 0),
);

// old CLIs shouldn't install new plugins
Expand All @@ -175,7 +175,8 @@ class InstallPluginCommand extends Command {
'Please run ${yellow('${SidekickContext.cliName} sidekick update')} to update your CLI.';
} else {
throw 'The plugin is too old to be installed to your CLI '
'because it depends on an outdated version ($pluginInstallerProtocolVersion) of sidekick_plugin_installer.';
'because it depends on an outdated version ($pluginInstallerProtocolVersion) of sidekick_plugin_installer. '
'It has to be smaller than ${supportedInstallerVersions.max!}.';
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ version: 0.0.1
publish_to: none
environment:
sdk: '>=2.19.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'
executables:
main:
Expand Down

0 comments on commit 854b943

Please sign in to comment.