Clone this repo:
  1. f0676e7 Add PATENTS file by George Kulakowski · 3 months ago master
  2. 2c87349 fix(image_picker): Updating how config.json is read by David Yang · 3 months ago
  3. 3cd5a90 chore(move): email modules ported to //apps/email by Jason Campbell · 3 months ago
  4. 4ed29a2 feat(ui): Google Search Image Picker Module by David Yang · 4 months ago
  5. 58c95ed Revert "feat(ui): Google Search Image Picker Module" by Etienne Membrives · 3 months ago

Modules

This repository is a workspace and incubator for Fuchsia modules.

Running Modules

NOTE: On OS X there can be an annoying firewall dialog every time the Magenta tools are rebuilt. To prevent the dialog disable the firewall or sign the new binaries, for instance to sign the netruncmd:

sudo codesign --force --sign - $FUCHSIA_DIR/out/build-magenta/tools/netruncmd

The dialog will now only appear the first time the command is run, at least until it gets rebuilt.

Debugging

Listen to device logs:

$FUCHSIA_DIR/out/build-magenta/tools/loglistener

Email

Configure

Add email/config.json in this directory, it will be ignored by version control.

# Using make
make email/config.json

Then add two values required for OAuth.

{
  "oauth_id": "<Google APIs client id>"
  "oauth_secret: "<Google APIs client secret>"
}

To setup Google Image Search for the Image Picker, add these additional values

{ “google_search_key”: “” “google_search_id”: “” }

Authenticate

Once you have the OAuth id and secret it is possible to generate refresh credentials with:

make auth

Follow the link in the instructions.

Build

Make sure to start from a “very clean build” (remove $FUCHSIA_DIR/out) if you have built before but didn't do the auth steps above. There is a make task to help with this:

make depclean all

This will clean and create a release build. To do this manually you can use:

source $FUCHSIA_DIR/scripts/env.sh
rm -rf $FUCHSIA_DIR/out
fset x86-64 --release --modules default
fbuild

Run

Assuming you have an Acer properly networked and running fboot in another terminal session you can run email two different ways.

Running with the full sysui

netruncmd : "@boot device_runner"

Running the email story directly

netruncmd : "@boot device_runner --user_shell=dev_user_shell --user_shell_args=--root_module=email_story"