Flutter Gradle Plugin
This is a Gradle plugin that provides tasks for building and running Flutter applications.
Tasks
The plugin provides the following tasks:
flutterDoctor
: Runs theflutter doctor
command.flutterVersion
: Runs theflutter --version
command.dartBuildRunner
: Runs thedart run build_runner build --delete-conflicting-outputs
command.flutterBuildApk
: Runs theflutter build apk
command.flutterBuildWeb
: Runs theflutter build web
command.flutterBuildWindows
: Runs theflutter build windows
command.flutterRunChrome
: Runs theflutter run -d chrome
command.flutterRunWindows
: Runs theflutter run -d windows
command.
Usage
With buildscript
To use the plugin, add it to the buildscript
dependencies in your build.gradle
file:
buildscript {
repositories {
maven {
url = uri("https://gitea.fahrecker.com/api/packages/andreas-personal/maven")
}
}
dependencies {
classpath 'com.fahrecker:com.fahrecker.flutterGradlePlugin:0.0.7-SNAPSHOT'
}
}
apply plugin: 'com.fahrecker.flutterGradlePlugin'
Without buildscript
To use the plugin without the buildscript block, add it to the plugins block and the repositories block in your build.gradle file:
plugins {
id 'com.fahrecker.flutterGradlePlugin' version '0.0.7-SNAPSHOT'
}
repositories {
maven {
url = uri("https://gitea.fahrecker.com/api/packages/andreas-personal/maven")
}
// Other repositories...
}
Running Tasks
You can run the tasks with the gradlew command. For example, to run the flutterDoctor task, use:
./gradlew flutterDoctor
Source Code
The source code for this project is available on Gitea and mirrored on GitHub.
Description
Languages
Groovy
100%