native icon indicating copy to clipboard operation
native copied to clipboard

Provide template similar to plugin_ffi

Open mahesh-hegde opened this issue 3 years ago • 4 comments
trafficstars

The pdfbox_plugin example I added dart-lang/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

mahesh-hegde avatar Aug 31 '22 01:08 mahesh-hegde

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

dcharkes avatar Aug 31 '22 06:08 dcharkes

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?

mahesh-hegde avatar Mar 21 '23 17:03 mahesh-hegde

cc @HosseinYousefi

dcharkes avatar Mar 21 '23 21:03 dcharkes

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 dart-lang/native#742 and dart-lang/native#695 should be a good time to add more complete tests.

mahesh-hegde avatar Mar 22 '23 15:03 mahesh-hegde