当前位置:网站首页>Fluent version control FVM
Fluent version control FVM
2022-06-24 05:05:00 【nuts】
install fvm after , Consider setting environment variables FVM_HOME or FVM_GIT_CACHE, Otherwise, default installation flutter SDK The cache path is ~/fvm/versions;
fvm releases
fvm releases: View all Flutter SDK releases available for install.
List the remote available flutter SDK Distribution version .
Microsoft Windows [ edition 10.0.19042.1165] (c) Microsoft Corporation. All rights reserved . C:\Users\85285>fvmlist 'fvmlist' Not an internal or external command , It's not a runnable program Or batch files . C:\Users\85285>fvm list No SDKs have been installed yet. Flutter. SDKs installed outside of fvm will not be displayed. C:\Users\85285>fvm releases Feb 27 18 │ v0.1.6 Mar 6 18 │ v0.1.8 Mar 7 18 │ v0.1.9 Mar 7 18 │ v0.2.0 Mar 12 18 │ v0.2.1 Mar 13 18 │ v0.1.5 Mar 16 18 │ v0.2.2 Mar 20 18 │ v0.2.3 Mar 26 18 │ v0.2.4 Mar 30 18 │ v0.2.5 Mar 30 18 │ v0.2.6 Apr 2 18 │ v0.2.7 Apr 2 18 │ v0.2.3 Apr 3 18 │ v0.2.8 Apr 5 18 │ v0.2.9 Apr 9 18 │ v0.2.8 Apr 9 18 │ v0.2.10 Apr 12 18 │ v0.2.11 Apr 16 18 │ v0.3.0 Apr 20 18 │ v0.3.1 Apr 20 18 │ v0.3.2 Apr 23 18 │ v0.3.3 Apr 24 18 │ v0.3.4 Apr 25 18 │ v0.3.5 May 2 18 │ v0.3.1 May 4 18 │ v0.3.6 May 7 18 │ v0.3.2 May 7 18 │ v0.4.0 May 9 18 │ v0.4.1 May 9 18 │ v0.4.2 May 11 18 │ v0.4.3 May 14 18 │ v0.4.4 May 22 18 │ v0.4.4 May 29 18 │ v0.5.0 May 30 18 │ v0.5.1 Jun 8 18 │ v0.5.2 Jun 11 18 │ v0.5.3 Jun 11 18 │ v0.5.4 Jun 18 18 │ v0.5.5 Jun 19 18 │ v0.5.1 Jul 3 18 │ v0.5.6 Jul 16 18 │ v0.5.7 Aug 10 18 │ v0.5.8 Aug 20 18 │ v0.6.0 Aug 21 18 │ v0.6.1 Aug 21 18 │ v0.6.2 Aug 22 18 │ v0.7.0 Aug 27 18 │ v0.7.1 Aug 28 18 │ v0.6.0 Aug 28 18 │ v0.7.2 Aug 29 18 │ v0.7.3 Aug 30 18 │ v0.7.4 Aug 31 18 │ v0.7.5 Sep 5 18 │ v0.7.3 Sep 6 18 │ v0.8.0 Sep 7 18 │ v0.8.1 Sep 10 18 │ v0.8.2 Sep 14 18 │ v0.8.3 Sep 14 18 │ v0.8.4 Sep 17 18 │ v0.8.5 Sep 18 18 │ v0.8.6 Sep 18 18 │ v0.8.2 Sep 18 18 │ v0.8.7 Sep 18 18 │ v0.9.0 Sep 18 18 │ v0.9.1 Sep 20 18 │ v0.9.2 Sep 25 18 │ v0.9.3 Sep 27 18 │ v0.9.4 Sep 28 18 │ v0.9.5 Oct 4 18 │ v0.9.6 Oct 9 18 │ v0.9.4 Oct 10 18 │ v0.10.0 Oct 20 18 │ v0.10.1 Nov 1 18 │ v0.10.2 Nov 6 18 │ v0.10.2 Nov 8 18 │ v0.11.0 Nov 9 18 │ v0.11.1 Nov 10 18 │ v0.11.2 Nov 11 18 │ v0.11.3 Nov 13 18 │ v0.11.3 Nov 13 18 │ v0.11.4 Nov 14 18 │ v0.11.5 Nov 14 18 │ v0.11.6 Nov 19 18 │ v0.11.7 Nov 19 18 │ v0.11.7 Nov 20 18 │ v0.11.8 Nov 20 18 │ v0.11.8 Nov 21 18 │ v0.11.9 Nov 21 18 │ v0.11.9 Nov 27 18 │ v0.11.10 Nov 27 18 │ v0.11.10 Nov 28 18 │ v0.11.11 Nov 28 18 │ v0.11.11 Nov 29 18 │ v0.11.12 Nov 29 18 │ v0.11.12 Nov 30 18 │ v0.11.13 Nov 30 18 │ v0.11.13 Dec 4 18 │ v1.0.0 Dec 4 18 │ v1.0.0 Dec 4 18 │ v1.0.0 Dec 12 18 │ v1.1.0 Jan 26 19 │ v1.1.8 Jan 29 19 │ v1.1.8 Jan 31 19 │ v1.2.0 Feb 15 19 │ v1.2.1 Feb 26 19 │ v1.2.1 Feb 26 19 │ v1.2.1 Feb 28 19 │ v1.2.2 Feb 28 19 │ v1.3.0 Mar 1 19 │ v1.3.1 Mar 1 19 │ v1.3.2 Mar 4 19 │ v1.3.3 Mar 5 19 │ v1.3.4 Mar 7 19 │ v1.3.6 Mar 7 19 │ v1.3.7 Mar 7 19 │ v1.3.8 Mar 14 19 │ v1.3.9 Mar 15 19 │ v1.3.10 Mar 15 19 │ v1.3.8 Mar 18 19 │ v1.3.11 Mar 18 19 │ v1.3.12 Mar 19 19 │ v1.3.13 Mar 26 19 │ v1.3.14 Mar 26 19 │ v1.4.0 Mar 27 19 │ v1.4.1 Mar 27 19 │ v1.4.2 Mar 27 19 │ v1.4.3 Mar 28 19 │ v1.4.4 Mar 28 19 │ v1.4.5 Mar 28 19 │ v1.4.6 Mar 29 19 │ v1.4.6-hotfix.1 Mar 29 19 │ v1.4.7 Apr 3 19 │ v1.4.8 Apr 4 19 │ v1.4.9 Apr 4 19 │ v1.4.10 Apr 8 19 │ v1.4.11 Apr 9 19 │ v1.4.12 Apr 10 19 │ v1.4.13 Apr 10 19 │ v1.4.14 Apr 10 19 │ v1.4.15 Apr 11 19 │ v1.4.16 Apr 11 19 │ v1.4.17 Apr 12 19 │ v1.4.18 Apr 12 19 │ v1.4.9-hotfix.1 Apr 16 19 │ v1.5.0 Apr 17 19 │ v1.5.1 Apr 17 19 │ v1.5.2 Apr 19 19 │ v1.5.3 Apr 22 19 │ v1.5.4 Apr 23 19 │ v1.5.5 Apr 24 19 │ v1.5.6 Apr 24 19 │ v1.5.7 Apr 26 19 │ v1.5.8 Apr 26 19 │ v1.5.4 Apr 30 19 │ v1.5.4-hotfix.1 May 2 19 │ v1.5.4-hotfix.2 May 7 19 │ v1.5.4-hotfix.2 May 17 19 │ v1.6.0 May 22 19 │ v1.6.1 May 23 19 │ v1.6.2 May 24 19 │ v1.6.3 May 28 19 │ v1.6.4 May 28 19 │ v1.6.5 May 29 19 │ v1.6.6 May 30 19 │ v1.6.3 May 31 19 │ v1.6.7 Jun 3 19 │ v1.7.0 Jun 4 19 │ v1.7.1 Jun 6 19 │ v1.7.2 Jun 7 19 │ v1.7.3 Jun 14 19 │ v1.7.4 Jun 21 19 │ v1.7.6 Jun 22 19 │ v1.7.7 Jun 22 19 │ v1.7.8 Jun 25 19 │ v1.7.9 Jun 26 19 │ v1.7.10 Jun 28 19 │ v1.7.11 Jul 2 19 │ v1.7.8+hotfix.2 Jul 8 19 │ v1.7.8+hotfix.2 Jul 9 19 │ v1.7.8+hotfix.3 Jul 9 19 │ v1.7.8+hotfix.3 Jul 11 19 │ v1.8.1 Jul 19 19 │ v1.8.2 Jul 19 19 │ v1.7.8+hotfix.4 Jul 24 19 │ v1.7.8+hotfix.4 Jul 31 19 │ v1.8.3 Aug 8 19 │ v1.8.3 Aug 15 19 │ v1.9.0 Aug 21 19 │ v1.9.1 Aug 21 19 │ v1.9.2 Aug 22 19 │ v1.9.3 Aug 23 19 │ v1.9.4 Aug 24 19 │ v1.9.5 Aug 29 19 │ v1.9.6 Aug 29 19 │ v1.9.7 Sep 4 19 │ v1.9.1+hotfix.1 Sep 6 19 │ v1.10.0 Sep 8 19 │ v1.9.1+hotfix.2 Sep 9 19 │ v1.10.1 Sep 10 19 │ v1.9.1+hotfix.2 Sep 14 19 │ v1.10.2 Sep 17 19 │ v1.10.3 Sep 19 19 │ v1.10.4 Sep 20 19 │ v1.10.5 Sep 25 19 │ v1.10.6 Sep 26 19 │ v1.9.1+hotfix.3 Sep 27 19 │ v1.9.1+hotfix.4 Oct 1 19 │ v1.9.1+hotfix.4 Oct 2 19 │ v1.10.7 Oct 4 19 │ v1.10.8 Oct 4 19 │ v1.10.9 Oct 4 19 │ v1.10.10 Oct 4 19 │ v1.10.11 Oct 4 19 │ v1.10.12 Oct 8 19 │ v1.10.13 Oct 8 19 │ v1.10.14 Oct 10 19 │ v1.10.7 Oct 17 19 │ v1.9.1+hotfix.5 Oct 23 19 │ v1.9.1+hotfix.6 Nov 7 19 │ v1.10.15 Nov 11 19 │ v1.10.16 Nov 13 19 │ v1.11.0 Nov 14 19 │ v1.12.0 Nov 15 19 │ v1.12.1 Nov 15 19 │ v1.12.2 Nov 18 19 │ v1.12.3 Nov 18 19 │ v1.12.4 Nov 21 19 │ v1.12.5 Nov 21 19 │ v1.12.6 Nov 21 19 │ v1.12.7 Nov 22 19 │ v1.11.0 Nov 22 19 │ v1.12.8 Nov 22 19 │ v1.12.9 Nov 23 19 │ v1.12.10 Nov 23 19 │ v1.12.11 Nov 25 19 │ v1.12.12 Nov 26 19 │ v1.12.13 Nov 26 19 │ v1.12.14 Nov 27 19 │ v1.12.15 Dec 2 19 │ v1.12.16 Dec 3 19 │ v1.12.13+hotfix.1 Dec 4 19 │ v1.12.13+hotfix.2 Dec 5 19 │ v1.13.0 Dec 6 19 │ v1.12.13+hotfix.3 Dec 10 19 │ v1.12.13+hotfix.4 Dec 11 19 │ v1.12.13+hotfix.5 Dec 11 19 │ v1.12.13+hotfix.5 Dec 11 19 │ v1.12.13+hotfix.6 Dec 12 19 │ v1.13.1 Dec 13 19 │ v1.13.2 Dec 19 19 │ v1.13.3 Dec 20 19 │ v1.13.4 Dec 21 19 │ v1.13.5 Jan 2 20 │ v1.13.6 Jan 7 20 │ v1.13.7 Jan 10 20 │ v1.13.8 Jan 14 20 │ v1.13.9 Jan 15 20 │ v1.13.6 Jan 15 20 │ v1.14.0 Jan 16 20 │ v1.14.1 Jan 21 20 │ v1.14.2 Jan 22 20 │ v1.14.3 Jan 25 20 │ v1.14.4 Jan 27 20 │ v1.12.13+hotfix.7 Jan 27 20 │ v1.14.5 Jan 29 20 │ v1.14.6 Feb 5 20 │ v1.14.6 Feb 6 20 │ v1.15.0 Feb 6 20 │ v1.15.1 Feb 7 20 │ v1.15.2 Feb 11 20 │ v1.15.3 Feb 11 20 │ v1.12.13+hotfix.8 Mar 4 20 │ v1.15.4 Mar 4 20 │ v1.15.5 Mar 5 20 │ v1.15.6 Mar 5 20 │ v1.15.7 Mar 5 20 │ v1.15.8 Mar 5 20 │ v1.15.9 Mar 5 20 │ v1.15.10 Mar 5 20 │ v1.15.11 Mar 5 20 │ v1.15.12 Mar 6 20 │ v1.15.13 Mar 6 20 │ v1.15.14 Mar 6 20 │ v1.15.15 Mar 6 20 │ v1.15.16 Mar 6 20 │ v1.15.17 Mar 6 20 │ v1.15.18 Mar 10 20 │ v1.15.19 Mar 11 20 │ v1.15.20 Mar 13 20 │ v1.15.21 Mar 16 20 │ v1.15.22 Mar 17 20 │ v1.15.17 Mar 18 20 │ v1.16.0 Mar 19 20 │ v1.16.1 Mar 24 20 │ v1.16.2 Mar 27 20 │ v1.16.3 Mar 31 20 │ 1.17.0-dev.0.0 Apr 1 20 │ 1.17.0-dev.1.0 Apr 2 20 │ 1.17.0-dev.2.0 Apr 2 20 │ 1.17.0-dev.3.0 Apr 2 20 │ 1.17.0-dev.4.0 Apr 4 20 │ 1.17.0-dev.5.0 Apr 4 20 │ 1.18.0-dev.0.0 Apr 6 20 │ 1.18.0-dev.1.0 Apr 6 20 │ 1.17.0-dev.3.1 Apr 6 20 │ 1.18.0-dev.2.0 Apr 7 20 │ 1.18.0-dev.3.0 Apr 7 20 │ 1.18.0-dev.4.0 Apr 13 20 │ 1.18.0-dev.5.0 Apr 17 20 │ v1.12.13+hotfix.9 Apr 21 20 │ 1.18.0-6.0.pre Apr 22 20 │ 1.17.0-3.2.pre Apr 24 20 │ 1.18.0-7.0.pre Apr 24 20 │ 1.18.0-8.0.pre Apr 28 20 │ 1.17.0-3.3.pre May 2 20 │ 1.17.0-3.4.pre May 5 20 │ 1.18.0-9.0.pre May 6 20 │ 1.18.0-10.0.pre May 6 20 │ 1.17.0 May 6 20 │ 1.18.0-11.0.pre May 6 20 │ 1.18.0-12.0.pre May 7 20 │ 1.18.0-13.0.pre May 8 20 │ 1.19.0-0.0.pre May 12 20 │ 1.19.0-1.0.pre May 13 20 │ 1.17.1 May 14 20 │ 1.18.0-11.1.pre May 28 20 │ 1.17.2 Jun 1 20 │ 1.19.0-2.0.pre Jun 2 20 │ 1.19.0-3.0.pre Jun 5 20 │ 1.19.0-4.0.pre Jun 5 20 │ 1.17.3 Jun 9 20 │ 1.19.0-5.0.pre Jun 10 20 │ 1.19.0-4.1.pre Jun 11 20 │ 1.20.0-0.0.pre Jun 18 20 │ 1.17.4 Jun 26 20 │ 1.20.0-2.0.pre Jul 1 20 │ 1.17.5 Jul 1 20 │ 1.19.0-4.2.pre Jul 1 20 │ 1.19.0-4.3.pre Jul 5 20 │ 1.20.0-3.0.pre Jul 9 20 │ 1.20.0-7.0.pre Jul 11 20 │ 1.20.0-7.1.pre Jul 17 20 │ 1.21.0-1.0.pre Jul 21 20 │ 1.20.0-7.2.pre Jul 29 20 │ 1.20.0-7.3.pre Aug 3 20 │ 1.20.0-7.4.pre Aug 5 20 │ 1.20.0 Aug 6 20 │ 1.20.1 Aug 7 20 │ 1.21.0-7.0.pre Aug 13 20 │ 1.21.0-9.0.pre Aug 13 20 │ 1.20.2 Aug 14 20 │ 1.20.2 Aug 19 20 │ 1.21.0-9.1.pre Aug 21 20 │ 1.22.0-1.0.pre Aug 28 20 │ 1.21.0-9.2.pre Sep 1 20 │ 1.22.0-9.0.pre Sep 2 20 │ 1.20.3 Sep 14 20 │ 1.22.0-12.0.pre Sep 15 20 │ 1.20.4 Sep 16 20 │ 1.22.0-12.1.pre Sep 22 20 │ 1.23.0-4.0.pre Sep 28 20 │ 1.22.0-12.2.pre Sep 29 20 │ 1.22.0-12.3.pre Oct 1 20 │ 1.22.0 Oct 1 20 │ 1.23.0-7.0.pre Oct 8 20 │ 1.22.0-12.4.pre Oct 8 20 │ 1.22.1 Oct 12 20 │ 1.23.0-13.0.pre Oct 14 20 │ 1.23.0-18.0.pre Oct 15 20 │ 1.23.0-18.1.pre Oct 16 20 │ 1.22.2 Oct 20 20 │ 1.24.0-1.0.pre Oct 22 20 │ 1.24.0-3.0.pre Oct 30 20 │ 1.22.3 Oct 30 20 │ 1.24.0-6.0.pre Nov 5 20 │ 1.24.0-7.0.pre Nov 13 20 │ 1.22.4 Nov 16 20 │ 1.24.0-10.1.pre Nov 18 20 │ 1.24.0-10.2.pre Nov 19 20 │ 1.24.0-10.2.pre Dec 2 20 │ 1.25.0-4.0.pre Dec 10 20 │ 1.25.0-8.0.pre Dec 10 20 │ 1.22.5 Dec 16 20 │ 1.25.0-8.1.pre Dec 16 20 │ 1.26.0-1.0.pre Jan 6 21 │ 1.25.0-8.2.pre Jan 13 21 │ 1.26.0-8.0.pre Jan 15 21 │ 1.25.0-8.3.pre Jan 21 21 │ 1.26.0-12.0.pre Jan 25 21 │ 1.22.6 Jan 29 21 │ 1.26.0-17.1.pre Feb 4 21 │ 1.26.0-17.2.pre Feb 4 21 │ 1.26.0-17.2.pre Feb 5 21 │ 1.26.0-17.3.pre Feb 10 21 │ 1.26.0-17.4.pre Feb 10 21 │ 1.27.0-1.0.pre Feb 11 21 │ 1.26.0-17.5.pre Feb 16 21 │ 1.26.0-17.6.pre Feb 17 21 │ 1.27.0-4.0.pre Feb 24 21 │ 1.26.0-17.7.pre Feb 24 21 │ 1.27.0-8.0.pre Feb 25 21 │ 1.26.0-17.8.pre Mar 3 21 │ 2.0.0 Mar 3 21 │ 2.0.0 Mar 3 21 │ 2.1.0-10.0.pre Mar 4 21 │ 2.0.1 Mar 4 21 │ 2.0.1 Mar 12 21 │ 2.0.2 Mar 13 21 │ 2.1.0-12.1.pre Mar 15 21 │ 2.0.2 Mar 18 21 │ 2.1.0-12.2.pre Mar 19 21 │ 2.0.3 Apr 2 21 │ 2.0.4 Apr 15 21 │ 2.2.0-10.1.pre Apr 15 21 │ 2.2.0-10.1.pre Apr 16 21 │ 2.0.5 Apr 27 21 │ 2.3.0-0.1.pre Apr 29 21 │ 2.2.0-10.2.pre Apr 30 21 │ 2.0.6 May 10 21 │ 2.2.0-10.3.pre May 10 21 │ 2.3.0-1.0.pre May 18 21 │ 2.2.0 May 18 21 │ 2.3.0-12.1.pre May 19 21 │ 2.2.0 May 27 21 │ 2.2.1 May 28 21 │ 2.3.0-16.0.pre Jun 11 21 │ 2.2.2 Jun 11 21 │ 2.2.2 Jun 17 21 │ 2.3.0-24.0.pre Jun 25 21 │ 2.3.0-24.1.pre -------------------------------------- Jul 1 21 │ 2.2.3 stable -------------------------------------- Jul 2 21 │ 2.4.0-0.0.pre Jul 13 21 │ 2.4.0-4.0.pre Jul 22 21 │ 2.4.0-4.1.pre Jul 22 21 │ 2.4.0-4.2.pre Jul 27 21 │ 2.5.0-1.0.pre Aug 5 21 │ 2.5.0-5.0.pre Aug 12 21 │ 2.5.0-5.1.pre -------------------------------------- Aug 12 21 │ 2.5.0-6.0.pre dev -------------------------------------- -------------------------------------- Aug 19 21 │ 2.5.0-5.2.pre beta -------------------------------------- C:\Users\85285>
fvm install
fvm install: Installs Flutter SDK Version. Gives you the ability to install Flutter releases or channels.
fvm install dev/beta/stable/...: Install the specified channel The current version of flutter SDK;fvm install 2.2.0: Install the specified version (2.2.0) Of flutter SDK;
If not configured
FVM_HOMEorFVM_GIT_CACHEenvironment variable , By default, install to~/fvm/versions/Under the table of contents .
The following installation specifies the version and channel:
fvm install 1.20.4: This version of the old project ;
fvm install 1.22.6: install flutter 2.0 The last one before stable edition 1.22.6;fvm install stable: Due to the current stable by 2.2.0, Installed stable Equivalent tofvm install 2.2.0;fvm install dev: Install the latest dev 2.3.0-12.1.pre Preview version , In order to complete some experimental function development and verification ;
Yes fvm install 2.2.0 Can be executed after fvm remove 2.2.0 Uninstall installed on 2.2.0 edition .
[email protected]P ~ $ tree -L 1 ~/fvm/versions /Users/fantasy/fvm/versions ├── 1.22.6 ├── dev └── stable 3 directories, 0 files
fvm list
Enumerate and view the locally installed versions .
[email protected] ~ $ fvm list Cache Directory: /Users/fantasy/fvm/versions stable dev 1.22.6
fvm use
At present flutter_project Directory execution fvm use version You can switch flutter SDK edition .
FVM will create a relative symlink in your project from .fvm/flutter_sdk to the cache of the selected version. Add it to your .gitignore.
The current directory will generate a
.fvmFolder , consider.fvm/*Add to .gitignore file , Avoid mistransmission to the database .
stay flutter project my_flutter_project perform fvm use stable Switch flutter SDK For the latest stable edition :
[email protected] ~/Projects//my_flutter_project $ fvm use stable Project now uses Flutter [stable]
among
.fvm/flutter_sdkLink the soft chain to~/fvm/versions/stable; The configuration file.fvm/fvm_config.jsonSynchronized records in"flutterSdkVersion": "stable".
Next , You can use fvm flutter Instead of flutter command , In order to automatically pick At present repo Used SDK.
Execute under the current project directory fvm list, Currently in use flutter SDK The version will be identified as active:
[email protected] ~/Projects//my_flutter_project $ fvm list Cache Directory: /Users/fantasy/fvm/versions stable (active) dev 1.22.6
Execute under the current project directory fvm flutter --version, You can view the flutter SDK Version information :
[email protected] ~/Projects//my_flutter_project $ fvm flutter --version Flutter 2.2.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision b22742018b (11 days ago) • 2021-05-14 19:12:57 -0700 Engine • revision a9d88a4d18 Tools • Dart 2.13.0
Execute other agent commands to install dependent package updates 、 function :
fvm flutter clean fvm flutter pub get fvm flutter run
fvm flavor
project flavors: The outgoing version of a project is still stable 1.22.6, however flutter 2 The adaptation of is in progress simultaneously , You can create multiple for the project flavor, Facilitate trunk and adaptive branch switching flavors Pre configured in flutter SDK edition .
Pin flavor version
Designate a flutter SDK Version is flavor Alias .
To choose a Flutter SDK version for a specific flavor you just use the use command.
fvm use {version} --flavor {flavor_name}
This will pin version to flavor_name,flavors mapping (flavor_name -> version) Will be logged to the configuration file .fvm/fvm_config.json in .
[email protected] ~/Projects//my_flutter_project $ fvm use 1.22.6 --flavor production Project now uses Flutter [1.22.6] on [production] flavor. [email protected] ~/Projects//my_flutter_project $ fvm use stable --flavor stable Project now uses Flutter [stable] on [stable] flavor. [email protected] ~/Projects//my_flutter_project $ fvm use dev --flavor dev Project now uses Flutter [dev] on [dev] flavor. [email protected] ~/Projects//my_flutter_project $ cat .fvm/fvm_config.json { "flutterSdkVersion": "stable", "flavors": { "production": "1.22.6", "stable": "stable", "dev": "dev" } }
View flavors
List the current project configuration flavors(To list all configured flavors).
[email protected] ~/Projects//my_flutter_project $ fvm flavor Project flavors configured for "my_flutter_project": [1] production [2] dev [3] stable Select an environment: ^C
Follow the instructions , Can be found in Select an environment Type in 2 or dev Switch to dev development environment . If only for viewing , Press Ctrl+C sign out .
Switch flavors
Will get the version configured for the flavor and set as the project version.
fvm flavor {flavor_name}Switch to... For the current project flavor_name Corresponding version .
for example fvm flavor production Will switch to 1.22.6 edition , Equivalent to fvm use 1.22.6.
After switching ,
.fvm/fvm_config.jsonMedium flutterSdkVersion Update synchronization to1.22.6.
IDE To configure
vscode
Globally configurable vscode(~/Library/Application\ Support/Code\ -\ Insiders/User/settings.json):
{
"dart.flutterSdkPaths": ["/Users/usr/fvm/versions"]
}or
{
"dart.flutterSdkPaths": [ "/Users/usr/fvm/versions/stable", "/Users/usr/fvm/versions/dev"
]
} Then you can vscode Execute... In the control panel Flutter: Change SDK Switch Flutter SDK edition , Record synchronization to the... Of the current project vscode The configuration file .vscode/settings.json in (dart.flutterSdkPath).
You can also edit the of the current project directly vscode The configuration file .vscode/settings.json:
{
"dart.flutterSdkPath": ".fvm/flutter_sdk",
// or "dart.flutterSdkPaths": [".fvm/flutter_sdk"] // Remove .fvm files from search
"search.exclude": { "**/.fvm": true
},
// Remove from file watching
"files.watcherExclude": { "**/.fvm": true
}
}AndroidStudio
Reference resources configuration.
fvm global
If APP The adaptation has not been completed yet flutter 2.0, For the time being 1.22.6 Set as global main version .
perform fvm global 1.22.6, Prompt that you need to add a related path to PATH:
[email protected] ~ $ fvm global 1.22.6 Flutter "1.22.6" has been set as global However your "flutter" path current points to: . to use global Flutter SDK through FVM you should change it to: /Users/fantasy/fvm/default/bin
vim ~/.zshrc Open editor zsh To configure , take default Flutter SDK Add the path of the executable file to the environment variable PATH:
export PATH=$HOME/fvm/default/bin:$PATH
Get into
~/fvmThe table of contents can be seen ,default It's actuallyversions/1.22.6Double soft chain .
If iOS The project reports the following error , Consider implementing flutter precache Re pull the tool chain to solve .
[!] Invalid `Podfile` file: No such file or directory @ rb_file_s_stat - /Users/fantasy/fvm/versions/1.22.6/bin/cache/artifacts/engine/ios/Flutter.framework.
Re execution fvm list, You can see 1.22.6 Has been identified as global:
[email protected] ~ $ fvm list Cache Directory: /Users/fantasy/fvm/versions stable beta 1.22.6 (global)
here , perform flutter --version, The global version will be displayed as Flutter 1.22.6, Dart 2.10.5.
fvm taps
The following is a summary of two common folk online fvm, Optional use .
dashixiong91
be based on Flutter Of ⼩ Procedural framework practice At the end of the paper xinfeng-tech/fvm
dashixiong91 / fvm - dashixiong91 / homebrew-fvm
brew tap dashixiong91/fvm brew install fvm
- Flutter Versions Manager
- Flutter SDK Multi version management tools
The following is based on the old xinfeng-tech/fvm:
- Use fvm Help you eat Flutter2 - vscode To configure
- FVM - Mac Upper management Flutter Multiple versions of artifact - Android Studio To configure
befovy
go-fvm:flutter Version switching assistant :befovy / fvm
Its core logic is to cache multiple in the local folder Flutter edition , And create the specified for the project Flutter Version of the soft link . Or create a specified version in the global environment Flutter Soft link .
边栏推荐
- Leetcode (question 1) - sum of two numbers
- Introduction to ebpf
- Automatically convert local pictures to network pictures when writing articles
- Pg-pool-ii read / write separation experience
- Powerbi - for you who are learning
- What's wrong with the failure of uploading web pages to ECS? How many kinds of servers are there
- How should a new data center be built?
- GDB debugging container and command saving
- Advantages of fixed assets management system
- Introduction to the "penetration foundation" cobalt strike Foundation_ Cobalt strike linkage msfconsole
猜你喜欢

『应急响应实践』LogParser日志分析实践

阿里云混合云首席架构师张晓丹:政企混合云技术架构的演进和发展

解析后人类时代类人机器人的优越性

Let children learn the application essence of steam Education

Analyzing the superiority of humanoid robot in the post human era

SAP mts/ato/mto/eto topic 8: ATO mode 2 d+ empty mode strategy 85

"Emergency response practice" logparser log analysis practice

让孩子们学习Steam 教育的应用精髓

Zhang Xiaodan, chief architect of Alibaba cloud hybrid cloud: evolution and development of government enterprise hybrid cloud technology architecture

少儿编程课程改革后的培养方式
随机推荐
Advantages of fixed assets management system
『应急响应实践』LogParser日志分析实践
Bi-sql basic cognition
Let children learn the application essence of steam Education
Spirit breath development log (12)
Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs
How to select a suitable optical fiber tester
Detailed explanation of the process after the browser enters the domain name and web address
Data acquisition gateway intelligent industrial Internet of things
Training methods after the reform of children's programming course
Cos+cdn realizes the distribution of game client version files in a faster, better and cheaper manner
What is the experience of developing an ice 3D music player in 3 minutes?
cuDNN installation
Bi-sql - Select
Introduction to gradient descent method - black horse programmer machine learning handout
Integration of Alibaba cloud SMS services and reasons for illegal message signing
Mini web framework: adding routes in decorator mode | dark horse programmer
Locating memory leaks with poolmon
Problem: SQL create stored procedure
What is the difference between a traditional data center and a cloud computing data center?