2.0.1 • Published 3 years ago

@dartnative/codegen v2.0.1

Weekly downloads
17
License
BSD-3-Clause
Repository
github
Last release
3 years ago

codegen

NPM Version Build Status

Generate Dart bindings from native code. It's based on dart_native.

npm.io

You can use codegen to convert native SDK into Flutter SDK. Such as Login SDK:

npm.io

Codegen is a part of DartNative. It's the cyan part(DartNative Codegen) in the picture below:

npm.io

It's still under development. Here's how it works:

npm.io

Installation

$ npm install -g @dartnative/codegen

Requirement

"node": ">=14"

Usage

Usage: codegen [options] <input>

Generate dart code from native API.

Options:
  -V, --version                 output the version number
  -l, --language <language>     [objc, java, auto(default)] (default: "auto")
  -o, --output <output>         Output directory
  -t, --template <template>     Generate a shareable Flutter project containing
                                modular Dart code.
                                Specify the type of project to create:
                                [package, plugin]
  --project-name <projectName>  The project name for this new Flutter project.
                                This must be a valid dart package name.
  -h, --help                    display help for command

License

BSD 3-Clause License.

2.0.1

3 years ago

2.0.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago