Skip to content

[native_assets_cli] DynamicLoadingBundled and dryRun in Flutter #1049

Closed
@dcharkes

Description

@dcharkes

Currently, in dryRun, Assets do not have to provide a file path.

However, in Flutter, the mapping from asset-id to file-name is used during dry-run to embed it in the kernel compilation.

So, for NativeCodeAssets with a linkMode DynamicLoadingBundled the file field should not be optional during dry run.

This currently blocks rolling the packages into flutter_tools.

(Maybe we can consider doing kernel concatenation to remove this requirement in the flutter implementation, maybe not. But that would be a separate larger refactoring.)

TODOs:

  • Make native_toolchain_c output a file in dry run
  • Make native_asset_cli check the field
  • Roll packages and roll

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurespackage:hooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions