Skip to content

Provide template similar to plugin_ffi #776

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
mahesh-hegde opened this issue Aug 31, 2022 · 4 comments
Open

Provide template similar to plugin_ffi #776

mahesh-hegde opened this issue Aug 31, 2022 · 4 comments

Comments

@mahesh-hegde
Copy link
Contributor

mahesh-hegde commented Aug 31, 2022

The pdfbox_plugin example I added dart-archive/jnigen#36 was created by running flutter create --template=plugin_ffi ... and then removing many C related files from it.

It's better to provide a starter template.. We need ffiPlugin: clauses in pubspec and all build infrastructure of FFI plugin but without ffigen specifics - Eg: ffigen.yaml can be replaced by jnigen.yaml.

cc @dcharkes

@dcharkes
Copy link
Collaborator

That would indeed be nice. 👍 We'd want to do this when we would like to move this project out of the experimental phase.

@mahesh-hegde
Copy link
Contributor Author

I am trying to create a prototype of this, (jnigen:create)

Which templates should be there?

  • ffiPlugin
  • flutterPackage (pure dart)
  • appWithJavaCode

Since we have encountered complexities (mostly related to pub) with hybrid ffi plugins, should there be separate versions of these templates? eg: flutterFfiPlugin and standaloneFfiPlugin?

@dcharkes
Copy link
Collaborator

cc @HosseinYousefi

@mahesh-hegde
Copy link
Contributor Author

I'm shelving this for now. Because this needs to be tested end-to-end, and our test suite is not very fast right now. After #742 and #695 should be a good time to add more complete tests.

@HosseinYousefi HosseinYousefi transferred this issue from dart-archive/jnigen Nov 17, 2023
@HosseinYousefi HosseinYousefi moved this to Backlog in JNIgen tracker Apr 11, 2024
@HosseinYousefi HosseinYousefi added this to the JNI / JNIgen 1.0.0 🎉 milestone May 22, 2024
@HosseinYousefi HosseinYousefi moved this from Backlog to Todo in JNIgen tracker May 22, 2024
@HosseinYousefi HosseinYousefi self-assigned this May 22, 2024
@HosseinYousefi HosseinYousefi modified the milestones: JNI / JNIgen 1.0.0 🎉, JNI / JNIgen Q4 24 Oct 23, 2024
@HosseinYousefi HosseinYousefi moved this from Todo to Backlog in JNIgen tracker Apr 8, 2025
@HosseinYousefi HosseinYousefi removed this from the JNI / JNIgen 2025 Q1 milestone Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants