Make plugins and polling configurable

* Move PluginConfig out of bramble-android. Projects using bramble now need to provide it.
* Add a PluginConfig#shouldPoll() method which can be used to disable polling altogether.
* Move Poller instantiation to the PluginManager.
This commit is contained in:
goapunk
2018-05-22 14:21:55 +02:00
parent 2f00215a44
commit c6b88b51f0
10 changed files with 114 additions and 89 deletions

View File

@@ -59,6 +59,11 @@ public class DesktopPluginModule extends PluginModule {
public Collection<SimplexPluginFactory> getSimplexFactories() {
return simplex;
}
@Override
public boolean shouldPoll() {
return true;
}
};
return pluginConfig;
}