Add plugin support

- Add libs/plugin_core.jar
- Include plugin_core in Launcher3 build (it is already present other
  builds as part of the updated shared lib)
- Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin
  components
- Add src_plugins, where plugin interfaces will live. It has a build
  rule to create a jar that plugin projects will depend on.
- Copy PluginPreferencesFragment from sysui but using our implementation
  for PluginEnabler

Bug: 115877296
Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
This commit is contained in:
Tony Wickham
2018-10-05 15:11:21 -07:00
parent 4548a7d48d
commit 76cce29d66
10 changed files with 477 additions and 0 deletions

3
src_plugins/README.md Normal file
View File

@@ -0,0 +1,3 @@
This directory contains plugin interfaces that launcher listens for and plugins implement. In other words, these are the hooks that specify what plugins launcher currently supports.
Details about how to create a new plugin interface, or to use existing interfaces to write a plugin can be found at go/gnl/plugins.