Skip to content

Commit

Permalink
Merge pull request #64 from leoafarias/feature/next
Browse files Browse the repository at this point in the history
Preparing for version 1.0
  • Loading branch information
leoafarias authored Jun 18, 2020
2 parents b00ea54 + ac11f6a commit 818cf55
Show file tree
Hide file tree
Showing 25 changed files with 347 additions and 601 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Publish
uses: sakebook/actions-flutter-pub-publisher@v1.2.0
uses: sakebook/actions-flutter-pub-publisher@v1.3.0
with:
credential: ${{ secrets.CREDENTIAL_JSON }}
flutter_package: false
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ fvm
.project
.settings/
.vscode/
coverage/lcov.info
.fvm
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.8.0

- Implemented `--global` flag to set a specific version globally.
- Changed project configuration to allow for versioning.
- Refactoring and project clean-up
- Better user experience
- Improved error messages

## 0.7.2

- Better compatibility with flutter commands.
Expand Down
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can use different Flutter SDK versions per project. To do that you have to g
> fvm use <version>
```

If you want to use a specific version by default in your machine, you can specify the flag `--global` to the `use` command. A symbolic link to the Flutter version will be created in the `fvm` home folder, which you could then add to your PATH environment variable as follows: `<FVM_HOME>/default/bin`
If you want to use a specific version by default in your machine, you can specify the flag `--global` to the `use` command. A symbolic link to the Flutter version will be created in the `fvm` home folder, which you could then add to your PATH environment variable as follows: `FVM_HOME/default/bin`. Use `fvm use --help`, thsi will give you the exact path you need to configure.

### Remove a SDK Version

Expand All @@ -66,7 +66,7 @@ Using the remove command will uninstall the SDK version locally. This will impac

### List Installed Versions

List all the versions that are installed on your machine.
List all the versions that are installed on your machine. This command will also output where FVM stores the SDK versions.

```bash
> fvm list
Expand Down Expand Up @@ -107,7 +107,7 @@ This will run `flutter run` command using the local project SDK. If no FVM confi
FVM creates a symbolic link within your project called **fvm** which links to the installed version of the SDK.

```bash
> ./fvm run
> .fvm/flutter/bin run
```

This will run `flutter run` command using the local project SDK.
Expand All @@ -116,17 +116,31 @@ As an example calling `fvm flutter run` is the equivalent of calling `flutter ru

### Configure Your IDE

In some situations you might have to restart your IDE and the Flutter debugger to make sure it uses the new version.

#### VSCode

Add the following to your settings.json. This will list list all Flutter SDKs installed when using VSCode when using `Flutter: Change SDK`
Add the following to your settings.json. This will list list all Flutter SDKs installed when using VSCode when using `Flutter: Change SDK`.

```json
Use `fvm list` to show you the path to the versions.

"dart.flutterSdkPaths": [
"/Users/leofarias/fvm/versions"
]
```json
{
"dart.flutterSdkPaths": [
// List all versions installd by FVM
"/Users/usr/fvm/versions"
// Or add the version symlink for dynamic switch
".fvm/flutter_sdk"
]
}
```

#### Android Studio

Copy the **_absolute_** path of fvm symbolic link in your root project directory. Example: `/absolute/path-to-your-project/.fvm/flutter_sdk`

In the Android Studio menu open `Languages & Frameworks -> Flutter` or search for Flutter and change Flutter SDK path. Apply the changes. You now can Run and Debug with the selected versions of Flutter.

[Add your IDE instructions here](https://github.com/leoafarias/fvm/issues)

## Working with this repo
Expand Down
Loading

0 comments on commit 818cf55

Please sign in to comment.