native_prebuilt 0.4.0 copy "native_prebuilt: ^0.4.0" to clipboard
native_prebuilt: ^0.4.0 copied to clipboard

Reusable infrastructure for Dart packages that ship prebuilt native libraries from GitHub or GitLab releases. Provides build-hook integration, manifest generation, download/verify/cache pipelines, and [...]

100/ 160
pub points
1.16k
downloads

We analyzed this package 24 hours ago, and awarded it 100 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

545 out of 801 API elements (68.0 %) have documentation comments.

Some symbols that are missing documentation: native_prebuilt.build.AndroidBuildTarget.AndroidBuildTarget.new, native_prebuilt.build.AndroidNdkToolchain.AndroidNdkToolchain.new, native_prebuilt.build.AndroidNdkToolchain.ndkDirectory, native_prebuilt.build.AndroidNdkToolchain.runner, native_prebuilt.build.AndroidNdkToolchain.version.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:native_prebuilt/native_prebuilt.dart that imports:
  • package:native_prebuilt/src/builder/native_project_builder.dart that imports:
  • package:native_prebuilt/src/source/source_fallback.dart that imports:
  • package:native_prebuilt/src/source/source_specification.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

WARNING: Returning a 'Future' without 'await' inside a try block.

lib/src/download/http_downloader.dart:106:13

    ╷
106 │             return _downloadOnce(
    │             ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/download/http_downloader.dart

INFO: Statements in an if should be enclosed in a block.

lib/src/build/native_project.dart:123:7

    ╷
123 │       return false;
    │       ^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/build/native_project.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
archive ^4.0.9 4.3.0 4.3.0
artisanal ^0.4.0 0.4.0 0.6.2
code_assets ^1.2.1 1.2.1 2.1.0
crypto ^3.0.6 3.0.7 3.0.7
hooks ^2.1.0 2.2.0 2.2.0
json_annotation ^4.9.0 4.12.0 4.12.0
json_schema_builder ^0.1.6 0.1.7 0.1.7
liquify ^1.5.1 1.6.1 1.6.1
logging ^1.3.0 1.3.0 1.3.0
path ^1.9.1 1.9.1 1.9.1
yaml ^3.1.0 3.1.4 3.1.4
Transitive dependencies
Package Constraint Compatible Latest Notes
acanthis - 1.6.0 2.0.0
args - 2.7.0 2.7.0
artisanal_widgets - 0.2.2 0.4.2
async - 2.13.1 2.13.1
chalkdart - 3.1.0 3.1.0
characters - 1.4.1 1.4.1
clock - 1.1.3 1.1.3
collection - 1.19.1 1.19.1
completion - 1.0.2 1.0.2
csslib - 1.0.2 1.0.2
d4_array - 1.0.0 1.0.0
d4_time - 1.0.0 1.0.0
d4_time_format - 1.0.0 1.0.0
decimal - 3.2.6 3.2.6
email_validator - 3.0.0 3.0.0
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
forge2d - 0.14.2+1 0.15.1
gato - 0.0.5+1 0.0.5+1
highlight - 0.7.0 0.7.0
hotreloader - 4.4.0 4.4.0
html - 0.15.7 0.15.7
html_unescape - 2.0.0 2.0.0
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
image - 4.10.1 4.10.1
intl - 0.20.3 0.20.3
markdown - 7.3.1 7.3.1
meta - 1.19.0 1.19.0
nanoid2 - 2.1.0 2.1.0
openapi_types - 2.1.0 2.1.0
petitparser - 7.1.0 7.1.0
posix - 6.5.2 6.5.2
pub_semver - 2.2.1 2.2.1
rational - 2.2.3 2.2.3
record_use - 1.1.1 1.1.1
source_span - 1.10.2 1.10.2
stream_transform - 2.1.2 2.1.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
timezone - 0.11.1 0.11.1
typed_data - 1.4.0 1.4.0
ultraviolet - 0.3.0 0.6.0
vector_math - 2.4.3 2.4.3
vm_service - 15.3.0 15.3.0
watcher - 1.2.1 1.2.1
web - 1.1.1 1.1.1
yaml_writer - 2.1.0 2.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.4.0` on artisanal does not support the stable version `0.5.0`.

Try running dart pub upgrade --major-versions artisanal to update the constraint.

The constraint `^1.2.1` on code_assets does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions code_assets to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 10 errors:

  • UNDEFINED_NAMED_PARAMETER - lib/src/config/native_prebuilt_config.dart:22:3 - The named parameter 'createJsonSchema' isn't defined.
  • UNDEFINED_NAMED_PARAMETER - lib/src/config/native_prebuilt_config.dart:64:3 - The named parameter 'createJsonSchema' isn't defined.
  • UNDEFINED_NAMED_PARAMETER - lib/src/config/native_prebuilt_config.dart:103:3 - The named parameter 'createJsonSchema' isn't defined.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.19, Dart 3.13.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
100
points
1.16k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Reusable infrastructure for Dart packages that ship prebuilt native libraries from GitHub or GitLab releases. Provides build-hook integration, manifest generation, download/verify/cache pipelines, and binary validation.

Repository (GitHub)
View/report issues

Topics

#native #prebuilt #build-hook #code-assets #hooks

License

MIT (license)

Dependencies

archive, artisanal, code_assets, crypto, hooks, json_annotation, json_schema_builder, liquify, logging, path, yaml

More

Packages that depend on native_prebuilt