Skip to content
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

[assets] Support for licenses need? #1577

Open
mkustermann opened this issue Sep 18, 2024 · 0 comments
Open

[assets] Support for licenses need? #1577

mkustermann opened this issue Sep 18, 2024 · 0 comments

Comments

@mkustermann
Copy link
Member

We expect many dart packages to bundle various kinds of assets (code, images, fonts, other data, ...). Most likely some of those artifacts are based on open source with open source licenses.

Some open source licenses require applications using the artifacts to tell the end user about those uses.

Due to this, flutter walks the transitive package graph, accumulates <foo-pkg>/LICENSEs and combines all of them, bundles them with the final application.

We could assume the LICENSE of a package will also cover all the licenses of the assets produced by hook/build.dart / hook/link.dart and rely on flutter's existing logic. But

  • a package may have a different license from some native code it may use in the hooks (could be 3rd party)
  • flutter's handling of license accumulation is unconditional: Even if a package isn't actually used, it's license is still included in the final application bundle.
  • the standalone dart build probably has to do something similar as flutter build does

=> One may consider adding support for annotating assets with licenses or making licenses an additional asset type (though one would want to then send the license and the asset to the same linker so the linker can include both or none).

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

No branches or pull requests

1 participant