[Flutter] Setup Flutter Workspace Tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am announcing beta support for a Flutter Workspace tool.  This tool effectively automates everything I have been invoking manually for a long time.

This tool consists of a python script, and a json configuration.  Found here:
https://github.com/meta-flutter/meta-flutter/tree/kirkstone/tools

The json configuration was implemented with the expectation that individual organizations would modify the json configuration to suit their organizational needs.

The default configuration (flutter_workspace_config.json) does the following:
1.  Clones all the flutter apps referenced in meta-agl-flutter.  See "repo" key in config.
2.  Downloads and installs runtime dependencies for flutter-auto, as well as flutter-auto itself.
3.  Downloads and installs runtime dependencies for AGL QEMU image, as well as a meta-flutter QEMU image (runtime=debug).  An AGL config needs to be created that pulls official images from AGL servers.
4.  Clones Flutter SDK to version specified in json config.  "flutter-version" is the key used.
5.  Installs and sets up custom-devices
6.  Creates setup_env.sh script used to setup flutter environment.

It will ask for a sudo password on a Ubuntu machine.

This is command to create an "AGL Flutter Workspace" on Ubuntu:

```
gnome-terminal --title="Setting Up Flutter Workspace" -- bash -c "mkdir -p $HOME/workspace && cd $HOME/workspace && wget https://raw.githubusercontent.com/meta-flutter/meta-flutter/kirkstone/tools/flutter_workspace_config.json && curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/meta-flutter/meta-flutter/kirkstone/tools/setup_flutter_workspace.py | python3 2>&1 |tee ~/workspace/setup.log"
```

To test your install run the following:
```
source $HOME/workspace/setup_env.sh
qemu_run
sleep 10
# used to add remote host to the local known_hosts file
ssh -p 2222 root@localhost
cd $FLUTTER_WORKSPACE/app/gallery
flutter run
```
Selecting either flutter-auto, or AGL-emu.  If you are running an x11 session, flutter-auto will not be available.  If you do not run qemu_run, AGL-emu will not be an available target.  If neither are available it will default run on the Linux GTK embedder.

The package installed for desktop flutter-auto is using the Vulkan backend.  This minimizes CPU loading on your dev machine.

Docs are forthcoming.

Issues or concerns please file here:
https://github.com/meta-flutter/meta-flutter/issues


Enjoy,
Joel Winarske
Managing Engineer
Toyota Connected North America
https://github.com/jwinarske
https://www.linkedin.com/in/joel-winarske-35670a6/

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#10091) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux