Install Flutter SDK.
Description
This Step git clones the selected branch or tag of the official Flutter repository and runs the initial setup of the Flutter SDK. Use this step before the cache-pull step to make sure caching works correctly.
- In the Flutter SDK git repository version input set the tag or branch of the Flutter. The default value is
stable
which clones and installs the latest stable Flutter branch. - In the Update to the latest version input select
false
to use a preinstalled Flutter version ortrue
to update Flutter SDK to the latest version released in the build release channel. By default, this input is set totrue
. - Enable Print debug information to run
flutter doctor
to see if there are any missing platform dependencies for setting up Flutter.
If you prefer to install Flutter from an installation bundle instead of the git repository, use the Flutter SDK installation bundle URL input. Insert the URL of the preferred bundle, for example, https://storage.googleapis.com/flutter_infra/releases/dev/windows/flutter_windows_v1.14.5-dev.zip
. If the input is filled out correctly, it overrides the value set in the Flutter SDK git repository version input.
Add this step directly to your workflow in the Bitrise Workflow Editor.
You can also run this step directly with Bitrise CLI.
Inputs
Key | Description | Flags | Default |
---|---|---|---|
version |
Use this input to install from the git repository by specifying a tag or branch. Use this input for the stable channel, as the stable channel can be preinstalled. If the input Flutter SDK installation bundle URL is specified, this input is ignored. To find the available version tags see this list: https://github.com/flutter/flutter/releases To see the the avilable branches visit: https://github.com/flutter/flutter/branches | stable |
|
is_update |
If the version selected is stable and a preinstalled Flutter version from the stable channel with version 1.2.1 exists: * Setting to false will not update, even if a later release exists. * Setting to true will update Flutter to the latest version released in the channel. |
true |
|
installation_bundle_url |
Installation bundle URL. If specified, Flutter will be installed from here and git repository version is ignored. For a channel other than stable (e.g. beta), it is recommended to use this input. It is faster than cloning from git. Official list of Flutter installation bundles: https://flutter.dev/docs/development/tools/sdk/releases The URL is expected to begin with: https://storage.googleapis.com/flutter_infra Example value (beta channel, version 1.6.3, macOS): https://storage.googleapis.com/flutter_infra/releases/beta/macos/flutter_macos_v1.6.3-beta.zip |
||
is_debug |
If enabled will run flutter doctor and print value of PATH eniroment variable. | false |
Outputs
There are no outputs defined in this stepWe welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.
Learn more about developing steps: