You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement jnigen to fork of Flutter plugin. Plugin is using Gradle dependency which has classes (library API) from which I want to generate bindings. However, I am unsuccessful and jnigen is throwing exception:
I am following your pdfbox example, as well as kotlin plugin example.
Found out that there is add_gradle_sources (undocumented) under android_sdk_config section. However, this solution seems to be not bulletproof since dependencies are retrieved from application build.gradle - I have to add Gradle dependency for Java library in build.gradle of example in order to be able to generate bindings.
It's bit odd - plugins add dependencies in build.gradle under android folder (on package level), however, jni doesn't seem to see them there.
Yes, this is indeed an odd behavior. In general gradle support can be improved, it now uses the place where gradle caches the libraries after running some command likeflutter build apk. This command cannot be run for a project without a main function – that's why currently you need to use example and yes, it doesn't find the "nested" dependencies in the cache either, so you'd have to add the same gradle dependencies again in example.
Hello!
I am trying to implement jnigen to fork of Flutter plugin. Plugin is using Gradle dependency which has classes (library API) from which I want to generate bindings. However, I am unsuccessful and jnigen is throwing exception:

I am following your pdfbox example, as well as kotlin plugin example.
Steps to replicate
Maybe it's something I'm doing wrong?
Thanks for help.
The text was updated successfully, but these errors were encountered: