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

dart-lang / native / 14266342043
76%

Build:
DEFAULT BRANCH: main
Ran 04 Apr 2025 01:23PM UTC
Jobs 14
Files 242
Run time 1min
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: 84.822% (-0.3%) from 85.171%
14266342043

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`).

21 of 97 new or added lines in 1 file covered. (21.65%)

13837 of 16313 relevant lines covered (84.82%)

34.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
76
58.24
-7.14% pkgs/native_assets_cli/lib/src/hooks/syntax.g.dart
Subprojects
ID Flag name Job ID Ran Files Coverage
6 native_assets_cli_ubuntu 14266342043.6 04 Apr 2025 01:24PM UTC 31
64.77
GitHub Action Run
7 native_assets_builder_windows 14266342043.7 04 Apr 2025 01:31PM UTC 11
89.56
GitHub Action Run
8 native_toolchain_c_windows 14266342043.8 04 Apr 2025 01:27PM UTC 26
79.06
GitHub Action Run
9 native_toolchain_c_ubuntu 14266342043.9 04 Apr 2025 01:24PM UTC 26
74.45
GitHub Action Run
10 native_assets_cli_macos 14266342043.10 04 Apr 2025 01:23PM UTC 31
64.77
GitHub Action Run
11 native_toolchain_c_macos 14266342043.11 04 Apr 2025 01:24PM UTC 26
68.86
GitHub Action Run
12 native_assets_builder_ubuntu 14266342043.12 04 Apr 2025 01:28PM UTC 11
89.56
GitHub Action Run
13 native_assets_cli_windows 14266342043.13 04 Apr 2025 01:25PM UTC 31
64.65
GitHub Action Run
14 native_assets_builder_macos 14266342043.14 04 Apr 2025 01:26PM UTC 11
89.56
GitHub Action Run
14 ffigen 13742814161.14 09 Mar 2025 12:25AM UTC 75
91.9
GitHub Action Run
13 jnigen 14229810567.13 02 Apr 2025 09:30PM UTC 21
90.47
GitHub Action Run
14 jni 14229810567.14 02 Apr 2025 09:23PM UTC 31
70.55
GitHub Action Run
14 objective_c 14262647068.14 04 Apr 2025 09:50AM UTC 76
79.34
GitHub Action Run
14 swift2objc 13688465141.14 06 Mar 2025 12:35AM UTC 46
85.29
GitHub Action Run
Source Files on build 14266342043
  • Tree
  • List 242
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14266342043
  • 481af775 on github
  • Prev Build on main (#14265994002)
  • Next Build on main (#14267541084)
  • 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