This is a script inspired by gradlew-fdroid
that automatically detects and downloads the version of flutter
required by a Flutter app.
It can be used in fdroiddata recipes so we don't have to hardcode the Flutter version.
- node-semver: in order to parse Flutter versions
- yq: in order to parse YAML files. (Without it, it will always default to the latest Flutter release.)
You can have a look at this example recipe.