Python Flutter Extension
git clone https://github.com/crungelab/attacus
cd attacus
hatch shell
procure
cxbuild develop
cxbuild
hatch shell
code --reuse-window .
This will enable and display the location of your .flutter_custom_devices.json file
flutter config --enable-custom-devices
flutter custom-devices
Add this to your .flutter_custom_devices.json file
{
"id": "attacus",
"label": "Attacus",
"sdkNameAndVersion": "Attacus 0.1",
"platform": null,
"enabled": true,
"ping": [
"ping",
"-n",
"1",
"-w",
"500",
"localhost"
],
"pingSuccessRegex": "[<=]\\d+ms",
"postBuild": [
"python",
"-m",
"attacus.post_build"
],
"install": [
"python",
"-m",
"attacus.install"
],
"uninstall": [
"python",
"-m",
"attacus.uninstall"
],
"runDebug": [
"python",
"main.py"
],
"forwardPort": null,
"forwardPortSuccessRegex": null,
"screenshot": null
}
flutter build bundle
python main.py
or
flutter run
flutter build bundle --local-engine=host_debug_unopt
./flutter/tools/gn --runtime-mode=debug --unoptimized --no-stripped --no-goma ninja -C out/host_debug_unopt