This repository contains scripts for the job that generates data for the dashboard.
- Get a Mac with a recent Mac OS X.
- Clone this repository exactly into
~/flutter_dashboard/dashboard_box
, so that therun.sh
script could be found exactly at~/flutter_dashboard/dashboard_box/run.sh
. - For better results, make sure there's nothing else in
~/flutter_dashboard
. - Complete the Flutter Setup, if you haven't already. Note, however, that this job will install its own copy of Flutter.
- Connect an Android device.
- Create
config.json
file indashboard_box
directory. - Launch
run.sh
.
On the actual build box launchd
writes standard output in
/tmp/flutter.dashboard.stdout
and /tmp/flutter.dashboard.stderr
.
The config file must be a JSON file under dashboard_box
and define the
following variables:
android_device_id
- the ID of the Android device used for performance testingfirebase_flutter_dashboard_token
- authentication token to Firebase used to upload metrics (not needed for local testing)
Example:
{
"android_device_id": "...",
"firebase_flutter_dashboard_token": "..."
}
Run pub build
. The output will be placed in build/web/
; this is the location
that firebase deploys from.