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
- Host: GitHub
- URL: https://github.com/mdecker-mobilecomputing/ionic_eigenesplugin
- Owner: MDecker-MobileComputing
- License: bsd-3-clause
- Created: 2022-05-26T21:22:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-10T13:44:53.000Z (about 3 years ago)
- Last Synced: 2025-09-03T01:46:18.060Z (10 months ago)
- Topics: angular, capacitor-plugin, ionic
- Language: TypeScript
- Homepage:
- Size: 775 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.

----
## 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.