{"id":20393488,"url":"https://github.com/dart-native/codegen","last_synced_at":"2025-04-12T12:05:50.246Z","repository":{"id":45427571,"uuid":"243147391","full_name":"dart-native/codegen","owner":"dart-native","description":"Generator for dart_native bindings. Codegen can transform native SDK to Flutter plugin.","archived":false,"fork":false,"pushed_at":"2022-03-27T17:32:30.000Z","size":2256,"stargazers_count":80,"open_issues_count":9,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T06:43:30.839Z","etag":null,"topics":["binding","codegen","dart","dart-native","dartnative","flutter","generator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dart-native.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-26T02:13:39.000Z","updated_at":"2025-03-15T15:22:33.000Z","dependencies_parsed_at":"2022-09-12T19:40:17.470Z","dependency_job_id":null,"html_url":"https://github.com/dart-native/codegen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dart-native%2Fcodegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dart-native%2Fcodegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dart-native%2Fcodegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dart-native%2Fcodegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dart-native","download_url":"https://codeload.github.com/dart-native/codegen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565068,"owners_count":21125415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding","codegen","dart","dart-native","dartnative","flutter","generator"],"created_at":"2024-11-15T03:49:04.070Z","updated_at":"2025-04-12T12:05:50.214Z","avatar_url":"https://github.com/dart-native.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codegen\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status](https://travis-ci.org/dart-native/codegen.svg?branch=master)](https://travis-ci.org/dart-native/codegen)\n\n\nGenerate Dart bindings from native code. It's based on [dart_native](https://pub.dev/packages/dart_native).\n\n![](images/introduction.png)\n\nYou can use codegen to convert native SDK into Flutter SDK. Such as Login SDK:\n\n![](images/login_sample.png)\n\nCodegen is a part of DartNative. It's the cyan part(DartNative Codegen) in the picture below:\n\n![](https://github.com/yulingtianxia/Blog-Hexo-Source/blob/master/source/resources/DartObjC/DartNative%20Future.png?raw=true)\n\nIt's still under development. Here's how it works:\n\n![](images/theory.png)\n\n## Installation\n\n``` bash\n$ npm install -g @dartnative/codegen\n```\n\n## Requirement\n\n``` json\n\"node\": \"\u003e=14\"\n```\n\n## Usage\n\n```\nUsage: codegen [options] \u003cinput\u003e\n\nGenerate dart code from native API.\n\nOptions:\n  -V, --version                 output the version number\n  -l, --language \u003clanguage\u003e     [objc, java, auto(default)] (default: \"auto\")\n  -o, --output \u003coutput\u003e         Output directory\n  -t, --template \u003ctemplate\u003e     Generate a shareable Flutter project containing\n                                modular Dart code.\n                                Specify the type of project to create:\n                                [package, plugin]\n  --project-name \u003cprojectName\u003e  The project name for this new Flutter project.\n                                This must be a valid dart package name.\n  -h, --help                    display help for command\n```\n\n## License\n\n[BSD 3-Clause License](https://github.com/dart-native/codegen/blob/master/LICENSE).\n\n\n[npm-image]: https://img.shields.io/npm/v/@dartnative/codegen.svg\n[npm-url]: https://npmjs.org/package/@dartnative/codegen","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdart-native%2Fcodegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdart-native%2Fcodegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdart-native%2Fcodegen/lists"}