Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Dec 14, 2021
1 parent 009cfdc commit d9cce12
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 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.6

- Fixed issue with routing to older Dart SDK directory path (before 1.17.5)

## 2.2.5

- Clean dart command output stdout [#361](https://github.com/leoafarias/fvm/issues/361)
Expand Down
17 changes: 8 additions & 9 deletions lib/src/models/cache_version_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ class CacheVersion {

/// Get version bin path
String get binPath {
/// Get old bin path
/// Before version 1.17.5 dart path was bin/cache/dart-sdk/bin
if (hasOldBinPath) {
return join(dir.path, 'bin', 'cache', 'dart-sdk', 'bin');
} else {
return join(dir.path, 'bin');
}
return join(dir.path, 'bin');
}

/// Has old dart path structure
Expand All @@ -34,7 +27,13 @@ class CacheVersion {

/// Returns dart exec file for cache version
String get dartExec {
return join(binPath, dartBinFileName);
/// Get old bin path
/// Before version 1.17.5 dart path was bin/cache/dart-sdk/bin
if (hasOldBinPath) {
return join(binPath, 'cache', 'dart-sdk', 'bin', dartBinFileName);
} else {
return join(binPath, dartBinFileName);
}
}

/// Returns flutter exec file for cache version
Expand Down
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.5
version: 2.2.6
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit d9cce12

Please sign in to comment.