blob: 118727df3d2191e1f9f34d7a4a07d9af6a6c28c4 [file] [view] [edit]
# notification_plugin
Example of Android plugin project with JNIgen.
This plugin project contains [custom code](android/src/main/java/com/example/notification_plugin) which uses the Android libraries. The bindings are generated using [JNIgen config](jnigen.yaml) and then used in [flutter example](example/lib/main.dart), with help of `package:jni` APIs.
The command to regenerate JNI bindings is:
```
dart run jnigen --config jnigen.yaml # run from notification_plugin project root
```
The `example/` app must have its dependencies resolved (eg `flutter pub get`) before running JNIgen.