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

dart-lang / native / 14266342043 / 6 – native_assets_cli_ubuntu
76%
main: 76%

Build:
DEFAULT BRANCH: main
Ran 04 Apr 2025 01:31PM UTC
Files 31
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Apr 2025 01:22PM UTC coverage: 64.765% (-1.5%) from 66.277%
native_assets_cli_ubuntu – 14266342043.6

push

github

web-flow
[native_assets_cli] Syntax for `assets_for_build` and `hooks/metadata` (#2163)

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

This PR contains the JSON spec for:

* https://github.com/dart-lang/native/pull/2164

For more details see that PR.

This PR adds the syntax for passing assets from build hooks to build hooks.

build output `assets_for_build`:

```json
{
  "assets": [],
  "assets_for_build": [
    {
      "encoding": {
        "a_key": "some_value"
      },
      "some_key": "some_value",
      "type": "some_asset_type"
    }
  ],
  "assets_for_linking": {},
}
```

build input `assets` per package name:

```json
{
  "assets": {
    "some_package": [
      {
        "some_key": "some_value",
        "type": "some_asset_type"
      }
    ]
  },
  "config": {},
}
```

Secondly, this PR adds a syntax for metadata assets (assets that cannot be bundled but just ferry information between different hooks).

```json
      {
        "encoding": {
          "key": "foo",
          "value": "bar"
        },
        "type": "hooks/metadata"
      },
```

The schemas now check these.

And this is covered by tests.

Changes to the generated schemas:

* Override the new build input `asset` and build output `assets_for_build` with the `CodeAsset` and `DataAsset` in the generated extension schemas.

Notable changes to the syntax generator:

* Enable generating tagged enum classes if there are two fields (a tag, and some `encoding`) in the super class.
* Support `Object` fields (used for `MetadataAsset.value`).

1669 of 2577 relevant lines covered (64.77%)

7.29 hits per line

Source Files on job native_assets_cli_ubuntu - 14266342043.6
  • Tree
  • List 31
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14266342043
  • 481af775 on github
  • Prev Job for on main (#14265994002.13)
  • Next Job for on main (#14267541084.6)
  • Delete
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

© 2025 Coveralls, Inc