# codegen **Repository Path**: main_51/codegen ## Basic Information - **Project Name**: codegen - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-25 - **Last Updated**: 2025-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # codegen [![NPM Version][npm-image]][npm-url] [![Build Status](https://travis-ci.org/dart-native/codegen.svg?branch=master)](https://travis-ci.org/dart-native/codegen) Generate Dart bindings from native code. It's based on [dart_native](https://pub.dev/packages/dart_native). ![](images/introduction.png) You can use codegen to convert native SDK into Flutter SDK. Such as Login SDK: ![](images/login_sample.png) Codegen is a part of DartNative. It's the cyan part(DartNative Codegen) in the picture below: ![](https://github.com/yulingtianxia/Blog-Hexo-Source/blob/master/source/resources/DartObjC/DartNative%20Future.png?raw=true) It's still under development. Here's how it works: ![](images/theory.png) ## Installation ``` bash $ npm install -g @dartnative/codegen ``` ## Requirement ``` json "node": ">=14" ``` ## Usage ``` Usage: codegen [options] Generate dart code from native API. Options: -V, --version output the version number -l, --language [objc, java, auto(default)] (default: "auto") -o, --output Output directory -t, --template