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

Code generator for Nitro Modules (Nitrogen). Converts *.native.dart specs to Dart FFI, Kotlin, Swift, and C++ bindings.

80/ 160
pub points
217
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

3 out of 7 API elements (42.9 %) have documentation comments.

Some symbols that are missing documentation: builder, builder.NitroGeneratorBuilder, builder.NitroGeneratorBuilder.NitroGeneratorBuilder.new, builder.nitroGeneratorBuilder.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
0 / 20trigger folding of the section

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

Failed report section
Pass static analysis
0 / 50trigger folding of the section

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

ERROR: The getter 'isSynthetic' isn't defined for the type 'FieldElement'.

lib/src/spec_extractor.dart:159:64

    ╷
159 │       final fields = cls.fields.where((f) => !f.isStatic && !f.isSynthetic).map((f) {
    │                                                                ^^^^^^^^^^^
    ╵

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

ERROR: The getter 'isSynthetic' isn't defined for the type 'FieldElement'.

lib/src/spec_extractor.dart:459:43

    ╷
459 │           .where((f) => !f.isStatic && !f.isSynthetic)
    │                                           ^^^^^^^^^^^
    ╵

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

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

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

Package Constraint Compatible Latest Notes
analyzer >=8.1.1 <14.0.0 13.0.0 13.0.0
build ^4.0.6 4.0.6 4.0.6
dart_style ^3.1.7 3.1.9 3.1.9
nitro_annotations ^0.4.0 0.4.0 0.4.0
path ^1.9.0 1.9.1 1.9.1
source_gen ^4.2.3 4.2.3 4.2.3
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 100.0.0 100.0.0
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
file - 7.0.1 7.0.1
glob - 2.1.3 2.1.3
logging - 1.3.0 1.3.0
meta - 1.18.2 1.18.2
package_config - 2.2.0 2.2.0
pub_semver - 2.2.0 2.2.0
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
watcher - 1.2.1 1.2.1
yaml - 3.1.3 3.1.3

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.12, Dart 3.11.5.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
80
points
217
downloads

Documentation

Documentation
API reference

Publisher

verified publishershreeman.dev

Weekly Downloads

Code generator for Nitro Modules (Nitrogen). Converts *.native.dart specs to Dart FFI, Kotlin, Swift, and C++ bindings.

Homepage
Repository (GitHub)
View/report issues

Topics

#codegen #ffi #flutter #native #bridge

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

analyzer, build, dart_style, nitro_annotations, path, source_gen

More

Packages that depend on nitro_generator