• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / native / 14134165751

28 Mar 2025 05:06PM UTC coverage: 85.163% (-0.2%) from 85.376%
14134165751

push

github

web-flow
[native_assets_cli] Namespace asset types (#2142)

Bug: https://github.com/dart-lang/native/issues/2132

This PR starts recognizing `code_assets/code` and `data_assets/data` as asset types besides `native_code` and `data`.

The `config.build_asset_types` now contains `["code_assets/code", "native_code"]` for code assets and `["data_assets/data", "data"]` for data assets.

The asset `type`s are still written as the old `"data"` and `"native_code"` to prevent breaking combinations with older hooks and SDKs.

### PR changes

* `pkgs/hooks`, `pkgs/code_assets`, and `pkgs/data_assets`
  * Add new syntax nodes for the new asset types.
    * These new nodes don't inline all the encoding in the object itself, encoding is only in `encoding`.
  * Adds test data with the new asset keys.
  * Added JSON schema tests that exercise the new asset keys.

* `package:native_assets_cli`
  * Recognize code and data assets with both the old a new asset keys.
  * Emit both old and new asset type in `config.build_asset_types`.
  * Emit the old asset type in assets for now.

6 of 66 new or added lines in 8 files covered. (9.09%)

13793 of 16196 relevant lines covered (85.16%)

35.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.27
/pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc