Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Jun 18, 2021
1 parent 1b1c0f2 commit 3b29320
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.2

- Small fix when checking for upgrade

## 2.2.1

- Fix when running flutter command with --no-version-check
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/flutter_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FlutterCommand extends BaseCommand {
}

void _checkIfUpgradeCommand(List<String> args) {
if (args.first == 'upgrade') {
if (args.isNotEmpty && args.first == 'upgrade') {
throw FvmUsageException(
'You should not upgrade a release version. '
'Please install a channel instead to upgrade it. ',
Expand Down
16 changes: 0 additions & 16 deletions lib/src/services/releases_service/models/channels.model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,3 @@ class Channels {
'${stable.hash}': 'stable',
};
}

// final channelValues = EnumValues(
// {'beta': Channel.beta, 'dev': Channel.dev, 'stable': Channel.stable});

// class EnumValues<T> {
// Map<String, T> map;
// Map<T, String> reverseMap;

// EnumValues(this.map);

// Map<T, String> get reverse {
// reverseMap ??= map.map((k, v) => MapEntry(v, k));

// return reverseMap;
// }
// }
2 changes: 1 addition & 1 deletion lib/src/version.dart

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

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fvm
description: A simple cli to manage Flutter SDK versions per project. Support
channels, releases, and local cache for fast switching between versions.
version: 2.2.1
version: 2.2.2
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 3b29320

Please sign in to comment.