Clone this repo:
  1. b932e9f refactor(contacts): update Contacts fidl definition by Meiyi Alice Li · 3 weeks ago master
  2. 710fc77 [build] Add system_image property to package() by Adam Barth · 3 weeks ago
  3. 8c58a12 Removed the deprecated analysis_options attribute. by P.Y. Laligand · 4 weeks ago
  4. 73e2abe Cleaned up unused elements. by P.Y. Laligand · 4 weeks ago
  5. 1dc7c04 Flutter packages are now under //third_party/dart-pkg/git/flutter. by P.Y. Laligand · 5 weeks ago

Contacts

Status: Experimental

What exists here mostly boilerplate for the tooling and infrastructure needed to build out the UI as a set of Flutter Widgets that can be run on Fuchsia and have the UI developed on Android.

Structure

This repo contains code for running a vanilla Flutter application (iOS & Android) and a Fuchsia specific set of modules.

  • modules: Fuchsia application code using Modular APIs.
    • contacts: Is a Flutter app with two entry points, one for Fuchsia and one for Vanilla Flutter.
  • services: FIDL service definitions.

Development

Setup

This repo is already part of the default jiri manifest.

Follow the instructions for setting up a fresh Fuchsia checkout. Once you have the jiri tool installed and have imported the default manifest and updated return to these instructions.

It is recommended you set up the Fuchsia environment helpers in scripts/env.sh:

source scripts/env.sh

Authenticate

Follow authentication instructions for Modules:

Workflow

There are Makefile tasks setup to help simplify common development tasks. Use make help to see what they are.

When you have changes you are ready to see in action you can build with:

make build

Once the system has been built you will need to run a bootserver to get it over to a connected Acer. You can use the env.sh helper to move the build from your host to the target device with:

freboot

Once that is done (it takes a while) you can run the application with:

make run

You can run on a connected android device with:

make flutter-run

Optional: In another terminal you can tail the logs

${FUCHSIA_DIR}/out/build-zircon/tools/loglistener