Mobile boilerplate project, using Flutter and github actions)
Clone flutter repository from github:
Windows:
git clone https://github.com/flutter/flutter.git -b stable
then set the path variable to include the path you cloned to. E.g C:\src\flutter\bin
See Installation for Windows for further information.
You will need different installations for Intel and M1 chips. Please refer to the documentation on Installation for MacOs
Then run flutter doctor
to see what else is needed
If you are using vscode for development, you should install the two extensions called "Flutter" and "Dart".
Then, if you select the main.dart
file, and select the "Run and debug" tab in vscode, you can create a new run configuration.
From there, you can now select run target device type in the bottom bar in vscode.
run flutter run
at the root of your project. The target can either be a simulator or a connected handset
For iOS refer to this article to read about connecting your iOS device.
To connect to iOS simulator run the simulator installed with XCode see Installation for MacOs
In vscode, in the bottom bar, select device type, and select your android emulator (or create a new one).
Then hit the run button in the menu, on the run and debug tab, and it should start building an android debug application.
Github actions is used to run tests and create builds, and eventually create new releases to App store and Google Play.
The ci scripts are located in the .github/workflows/
folder.
You can use a tool called ack
to run these actions locally.
Docker is used to build and run the actions locally.
brew install ack
ack -l
to list actions availableack
to run the default "push" event action (run tests).