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

[native_assets_cli] Update readme #1936

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions pkgs/native_assets_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ Example can be found in [example/build/](example/build/).

## Usage

Using the native assets feature requires passing
`--enable-experiment=native-assets` in Dart on a dev build.
To use native asset in Dart, pass `--enable-experiment=native-assets`. Native
assets work on Dart stable, but prefer using the dev releases as we regularly
break things.

The native assets feature is not yet available in Flutter.
To use native assets in Flutter, use
`flutter config --enable-experiment=native-assets` and then
`flutter create --template=package_ffi <package_name>`. In Flutter, the
experiment is only available on the master channel.

We do breaking changes regularly! So frequently bump `package:native_assets_cli`
and use dev/master SDK for CI.

## Development

Expand Down
Loading