Status: Unsupported
This project will need to be refactored before it can be added to the build again, see MS-1946 for details.
This project contains code for the Fuchsia Contacts modules.
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.
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 fx
tool to move the build from your host to the target device with:
fx reboot
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
fx log
On it's own, the contacts content provider agent does not request any contacts data from an external source.
To supply contact information to the contacts content provider, a separate agent should be created that will feed contact data into the contacts content provider.
Create a new contacta data provider agent that connects to some contacts source
Configure the agent to run on start up
Upon initialization, connect the new agent to the contacts content provider agent and call addAll, updateAll, removeAll to push in contacts data
If needed, add a task to the new data provider agent to poll its contact service at an interval in order to keep the contacts information up to date
At the moment, the contacts content provider will not dedupe data provider agent source ids. If two data provider agents specify the same source id, it will treat them as from the same source.