Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Can I "flutter create -t package" , when I use the so files? #121

Closed
fayfive opened this issue Sep 11, 2021 · 2 comments
Closed

Can I "flutter create -t package" , when I use the so files? #121

fayfive opened this issue Sep 11, 2021 · 2 comments

Comments

@fayfive
Copy link

fayfive commented Sep 11, 2021

I know I can use the share library by "flutter create -t plugin". But I think this approach is a little cumbersome. Because I want to contain the so files in my project.
For example, I place the so files to the path "flutter_app/linux/lib".
Thanks!

@fayfive fayfive changed the title Can *.so use "flutter create -t package" Can I "flutter create -t package" , when I use the so files? Sep 11, 2021
@dcharkes
Copy link
Contributor

Context: #118

@dcharkes
Copy link
Contributor

Because of the way Flutter plugins are set up (they generate a ton of boilerplate files from a templating system for every target platform), it is not recommended to try to create this boilerplate in an existing package.

Instead, create a Flutter FFI plugin.

Here is a PR adding FFI plugins to Flutter. (Instructions to on how to run it in the PR for if you want to use this before its merged.)

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants