Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a762920d authored by Luca Georges Francois's avatar Luca Georges Francois
Browse files

[+] Update front readme.

parent 7d1a587f
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
# E
# Elivia Frontend

// TODO: Add screenshot of the app.

### Plugins

It's really easy to add new plugins in the frontend.

You just need to do two things :

- Create a new kotlin class in the `app/java/com.poc.elivia/plugin/src` folder. This class will contain all necessary functions used by the plugin. You can take a look at the `OpenApp` and `SendSms` plugins already present in the app.
- Add a new statement in the `app/java/com.poc.elivia/plugin/core/PluginManager.kt` run function wich will call a `[your_new_plugin_name]PluginManager` private function. It's role is to extract parameters used by the class previously created and then call the `[your_new_plugin_name].run` function.

Note that each one of the parameters extracted by the backend are located in `data["paramterName"]` where data is the json returned by the backend.
 No newline at end of file