An open API service indexing awesome lists of open source software.

https://github.com/mdecker-mobilecomputing/ionic_eigenesplugin

Simple plugin for capacitor and Ionic/Angular test app
https://github.com/mdecker-mobilecomputing/ionic_eigenesplugin

angular capacitor-plugin ionic

Last synced: about 1 month ago
JSON representation

Simple plugin for capacitor and Ionic/Angular test app

Awesome Lists containing this project

README

          

# Custom Capacitor plugin #


This repository contains the code for a simple Capacitor plugin called "helferlein", see [this folder](helferlein).
Further, the repository also contains a Ionic/Angular app that demonstrates the usage of this plugin, see folder [plugintest](plugintest).

The plugin contains two methods, see also [definitions.ts](helferlein/src/definitions.ts):

* `holeUptime()`: Gets value of current [uptime](https://en.wikipedia.org/wiki/Uptime) as string containing hours and minutes;
only implemented for platform "Android".

* `loggeNachricht()`: Writes log message, implemented for platforms "Web" and "Android",
whereas for the latter different log levels (Debug till Error) are supported.


![Screenshot](screenshot_1.png)


----

## Usage ##


After cloning the repository, the command `npm install` has to be executed in both folders,
i.e., in the [folder for the plugin](helferlein) and also in the [folder for the Ionic application](plugintest).


When changes were made in the plugin code, then the following commands have to be executed:
* In the [folder for the plugin](helferlein): `npm run build`
* In the [folder for the Ionic application](plugintest):
* `npm update helferlein`
* `ionic capacitor sync android`


----

## License ##


See the [LICENSE file](LICENSE.md) for license rights and limitations (BSD 3-Clause License)
for the files in this repository.