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

dart-lang / native / 23990827319
61%

Build:
DEFAULT BRANCH: main
Ran 05 Apr 2026 12:40AM UTC
Jobs 8
Files 293
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

02 Apr 2026 11:25AM UTC coverage: 60.157% (-1.1%) from 61.212%
23990827319

push

github

web-flow
[code_assets] [record_use] Tree shake examples (#3267)

Use the `CLinker` and `record_use` to tree-shake the native code in the code assets examples.

Tree shaking effect:

```
# stb_image
-rwxr-xr-x  1 dacoharkes  primarygroup   188K Mar 27 11:48 libstb_image.dylib
# when only using stbi_info
-rwxr-xr-x  1 dacoharkes  primarygroup   118K Mar 27 11:51 libstb_image.dylib

# mini_audio
# full
-rwxr-xr-x  1 dacoharkes  primarygroup   666K Mar 27 12:03 libminiaudio.dylib
# when playing a wave file
-rwxr-xr-x  1 dacoharkes  primarygroup   447K Mar 27 12:03 libminiaudio.dylib
# and when not playing the wave file but only starting the audio engine
-rwxr-xr-x  1 dacoharkes  primarygroup   429K Mar 27 12:05 libminiaudio.dylib

# sqlite3
# full
-rwxr-xr-x  1 dacoharkes  primarygroup   1.2M Mar 27 11:44 libsqlite3.dylib
# when only using sqlite3_libversion
-rwxr-xr-x  1 dacoharkes  primarygroup    50K Mar 27 11:44 libsqlite3.dylib
```

Since the record-use experiment is disabled by default in the Dart SDK, this should be mostly a no-op for the examples. It does change the native build into two steps, building and linking.

Potential follow ups to make the code simpler:

* https://github.com/dart-lang/native/issues/3283
* https://github.com/dart-lang/native/issues/3284

Also, we haven't added FFIgen to the workspace yet, but this PR requires having the latest version, so I've used a path override. We should clean that up when we can. (Either when we release a next FFIgen stable or when we move FFIgen to the workspace.)

18950 of 31501 relevant lines covered (60.16%)

35.64 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.67
-3.33% pkgs/ffigen/lib/src/visitor/copy_methods_from_super_type.dart
3
98.19
-1.81% pkgs/ffigen/lib/src/code_generator/writer.dart
4
96.26
-3.74% pkgs/ffigen/lib/src/code_generator/func.dart
6
85.94
-2.95% pkgs/ffigen/lib/src/code_generator/library.dart
6
56.67
-14.17% pkgs/ffigen/lib/src/ffigen.dart
6
95.4
-3.12% pkgs/ffigen/lib/src/code_generator/objc_methods.dart
10
90.74
-9.26% pkgs/ffigen/lib/src/header_parser/sub_parsers/api_availability.dart
12
86.05
-12.99% pkgs/ffigen/lib/src/config_provider/config.dart
24
90.75
-8.73% pkgs/ffigen/lib/src/header_parser/utils.dart
27
93.3
-6.55% pkgs/ffigen/lib/src/header_parser/clang_bindings/clang_bindings.dart
Subprojects
ID Flag name Job ID Ran Files Coverage
8 ffigen 23990827319.8 05 Apr 2026 12:40AM UTC 71
91.89
GitHub Action Run
8 objective_c 23893288004.8 02 Apr 2026 09:18AM UTC 92
80.02
GitHub Action Run
5 swift2objc 23786977555.5 31 Mar 2026 08:08AM UTC 56
92.95
GitHub Action Run
8 jni 23889071673.8 02 Apr 2026 07:28AM UTC 34
12.14
GitHub Action Run
7 jnigen 23889071673.7 02 Apr 2026 07:36AM UTC 20
91.1
GitHub Action Run
6 native_pkgs_macos 23897422937.6 02 Apr 2026 11:18AM UTC 91
72.97
GitHub Action Run
7 native_pkgs_ubuntu 23897422937.7 02 Apr 2026 11:14AM UTC 91
72.29
GitHub Action Run
8 native_pkgs_windows 23897422937.8 02 Apr 2026 11:19AM UTC 91
74.23
GitHub Action Run
Source Files on build 23990827319
  • Tree
  • List 293
  • Changed 14
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23990827319
  • 9e5d0d35 on github
  • Prev Build on main (#23897422937)
  • Next Build on main (#23990872818)
  • 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

© 2026 Coveralls, Inc