Skip to content

Plugin and example app need to include the same dependencies to generate bindings of 3rd party library #1979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
orestesgaolin opened this issue Feb 10, 2025 · 1 comment

Comments

@orestesgaolin
Copy link

This is similar to #1660 but affects the flow only once.

When I was trying to generate bindings to com.google.android.play:app-update it was not enough to add it as dependency to build.gradle of the plugin. Only after I added it to example app's build.gradle the bindings got generated correctly.

See example files below:

Ideally adding the dependency just to the plugin build.gradle should be enough for the jnigen to pick up the classes.

@HosseinYousefi
Copy link
Member

Somehow our gradle script does not pick up the transitive dependencies. Cronet has the same issue: https://github.com/dart-lang/http/blob/master/pkgs/cronet_http/example/android/app/build.gradle#L75-L78

I did some tinkering but couldn't fix it, maybe a gradle expert can help us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants