Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Jul 16, 2020
1 parent ff2190d commit 8974a2f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.1.0

- Implemented --force flag on `use` command to bypass guards if needed.
- Set where fvm caches versions using FVM_HOME environment variable
- Deprecated --cache-path in favor of FVM_HOME

## 1.0.4

- Indicates global version on list command.
Expand Down
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Pub Version](https://img.shields.io/pub/v/fvm?label=version&style=flat-square)
[![Likes](https://img.shields.io/badge/dynamic/json?color=blue&label=likes&query=likes&url=http://www.pubscore.gq/likes?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/packages/fvm/likes)
[![Health](https://img.shields.io/badge/dynamic/json?color=blue&label=health&query=pub_points&url=http://www.pubscore.gq/pub-points?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/help#health) ![Coverage](https://raw.githubusercontent.com/leoafarias/fvm/master/coverage_badge.svg?sanitize=true) [![Github All Contributors](https://img.shields.io/github/all-contributors/leoafarias/fvm?style=flat-square)](https://github.com/leoafarias/fvm/graphs/contributors) [![MIT Licence](https://img.shields.io/github/license/leoafarias/fvm?style=flat-square&longCache=true)](https://opensource.org/licenses/mit-license.php) [![Awesome Flutter](https://img.shields.io/badge/awesome-flutter-purple?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
[![Health](https://img.shields.io/badge/dynamic/json?color=blue&label=health&query=pub_points&url=http://www.pubscore.gq/pub-points?package=fvm&style=flat-square&cacheSeconds=90000)](https://pub.dev/packages/fvm) ![Coverage](https://raw.githubusercontent.com/leoafarias/fvm/master/coverage_badge.svg?sanitize=true) [![Github All Contributors](https://img.shields.io/github/all-contributors/leoafarias/fvm?style=flat-square)](https://github.com/leoafarias/fvm/graphs/contributors) [![MIT Licence](https://img.shields.io/github/license/leoafarias/fvm?style=flat-square&longCache=true)](https://opensource.org/licenses/mit-license.php) [![Awesome Flutter](https://img.shields.io/badge/awesome-flutter-purple?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)

Flutter Version Management: A simple cli to manage Flutter SDK versions.

Expand Down Expand Up @@ -114,19 +114,7 @@ Displays all Flutter releases, including the current version for `dev`, `beta` a

### Change FVM Cache Directory

There are some configurations that allows for added flexibility on FVM. If no `cache-path` is set, the default fvm path will be used.

```bash
fvm config --cache-path <path-to-use>
```

### List Config Options

Returns list of all stored options in the config file.

```bash
fvm config --ls
```
You are able to configure the **fvm** cache directory by setting `FVM_HOME` environment variable. If nothing is set the default **fvm** path will be used.

### Running Flutter SDK

Expand Down Expand Up @@ -241,6 +229,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
1 change: 0 additions & 1 deletion lib/commands/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ConfigCommand extends Command {
/// Constructor
ConfigCommand() {
argParser
..addOption('defaultVersion', abbr: 'd', help: 'Flutter default version')
..addOption('cache-path',
abbr: 'c', help: 'Path to store Flutter cached versions')
..addFlag('ls', help: 'Lists all config options');
Expand Down
7 changes: 3 additions & 4 deletions lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@ final kLocalProjectPubspec =
String get fvmHome {
final envVars = Platform.environment;

final fvmHome = envVars['FVM_HOME'];
if (fvmHome != null) {
return path.normalize(fvmHome);
var home = envVars['FVM_HOME'];
if (home != null) {
return path.normalize(home);
}

var home = '';
if (Platform.isWindows) {
home = envVars['UserProfile'];
} else {
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.

3 changes: 2 additions & 1 deletion lib/utils/config_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:fvm/constants.dart';
import 'package:fvm/exceptions.dart';

/// Configure fvm options.
@deprecated
class ConfigUtils {
static ConfigUtils _instance;

Expand Down Expand Up @@ -57,6 +57,7 @@ class ConfigUtils {
}

/// config flutter stored path
void configFlutterStoredPath(String path) {
final type = FileSystemEntity.typeSync(path, followLinks: true);
if (type == FileSystemEntityType.directory) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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: 1.0.4
version: 1.1.0
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 8974a2f

Please sign in to comment.