{"id":22050153,"url":"https://github.com/icapps/flutter-icapps-license","last_synced_at":"2025-05-08T23:20:42.315Z","repository":{"id":44871127,"uuid":"232292567","full_name":"icapps/flutter-icapps-license","owner":"icapps","description":"A library that generates code to display all the licenses for the used third party pacakges.","archived":false,"fork":false,"pushed_at":"2025-01-22T11:11:02.000Z","size":630,"stargazers_count":9,"open_issues_count":6,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T00:18:24.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icapps.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-07T09:42:59.000Z","updated_at":"2025-01-22T11:11:07.000Z","dependencies_parsed_at":"2025-01-22T12:21:41.552Z","dependency_job_id":"74e73f07-51cc-43f9-ab25-d58268977e1a","html_url":"https://github.com/icapps/flutter-icapps-license","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-icapps-license","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-icapps-license/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-icapps-license/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icapps%2Fflutter-icapps-license/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icapps","download_url":"https://codeload.github.com/icapps/flutter-icapps-license/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253161323,"owners_count":21863724,"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":[],"created_at":"2024-11-30T14:18:02.769Z","updated_at":"2025-05-08T23:20:42.302Z","avatar_url":"https://github.com/icapps.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter license_generator\n\nA dart package to download the licenses for al the packages used.\n\n[![pub package](https://img.shields.io/pub/v/license_generator.svg)](https://pub.dartlang.org/packages/license_generator)\n[![Build Status](https://app.travis-ci.com/icapps/flutter-icapps-license.svg?branch=master)](https://app.travis-ci.com/icapps/flutter-icapps-license)\n[![Coverage Status](https://coveralls.io/repos/github/icapps/flutter-icapps-license/badge.svg)](https://coveralls.io/github/icapps/flutter-icapps-license)\n\n## Setup\n\n### Add dependency to pubspec\n\n[![pub package](https://img.shields.io/pub/v/license_generator.svg)](https://pub.dartlang.org/packages/license_generator)\n```\ndev-dependencies:\n  license_generator: \u003clatest-version\u003e\n```\n\n### Basic options\n```yaml\nlicense_generator:\n  fail_fast: true/false    #(optional) Errors are not ignored and the generator will fail with an error\n```\n\n### All options\n```yaml\nlicense_generator:\n  fail_fast: boolean #(optional) if true the `check` command will fail at the first version missmatch. If false you will receive a list at the end of the command. -\u003e Default: false\n  check_before_generate: boolean #(optional) If true the `generate` command will check if your pubspec.yaml \u0026 pubspec.lock are in sync before generating the code -\u003e Default: false\n  output_path: String #(optional) Override the default output path to generate the license file somewhere else -\u003e Default: lib/util/license.dart\n  download_pub_dev_details: bool #(optional) If ture the `generate` command will download the pubdev details (homepage/repository) -\u003e Default: false\n  pub_dev_base_url: String #(optional) This will override the default pubdev base url for downloading the pubdev details (homepage/repository) -\u003e Default: https://pub.dev\n  licenses: #(optional) This will accept key value pairs (String/String) -\u003e (package name/raw license url)\n    #license_generator: https://raw.githubusercontent.com/icapps/flutter-icapps-license/master/LICENSE (example)\n  ignore_licenses: #(optional) This wil accept a list of package names (String)\n    - shared_preferences\n  extra_licenses: #(optional) this will allow you to add extra licenses that are not added in your pubspec.yaml\n    something_something: #the name of your package will be used if `name` is not specified\n      name: String #(optional) This will override your package name\n      version: String #(optional) The version of this specific package/license\n      homepage: String #(optional) The url of the homepage of this package\n      repository: String #(optional) The url where the repository is located\n      license: String #(required) This can be an http/https url or a path to a specific file. The content of that url/path will be used to generate code.\n      dev_dependency: boolean #(optional) This is used internally\n      part_of_flutter_sdk: boolean #(optional) This will use the flutter license instead of the license specified in this map\n```\n\n### Run package with Flutter\n\n```bash\nflutter packages pub run license_generator\n```\n\n### Run package with Dart\n\n### Check if all versions in your pubspec.yaml match your pubspec.lock\n\n```bash\npub run license_generator check\n```\n\n#### Generate the license file\n\n```bash\npub run license_generator generate\n```\n\n### Logs\n\nInfo is the default and is not required to pass.\n```bash\npub run license_generator generate\n\nis the same as\n\npub run license_generator generate info\n```\n\nDebug will log more info te find out why the license_generator is failing. Stacktraces \u0026 errors will be shown. Info logs will also be shown.\n```bash\npub run license_generator generate debug\n```\n\nVerbose will log everything. Downloading files \u0026 their status. Debug \u0026 info will also be shown.\n```bash\npub run license_generator generate verbose\n```\n\n### Working on mac?\n\nadd this to you .bash_profile\n\n```bash\nflutterlicensecheck(){\n flutter packages get \u0026\u0026 flutter packages pub run license_generator check\n}\n```\n\n```bash\nflutterlicense(){\n flutter packages get \u0026\u0026 flutter packages pub run license_generator generate\n}\n```\n\nnow you can use the license_generate with a single command.\n\n```bash\nflutterlicense\n```\n\nAnd to check if everything is up to date use:\n```bash\nflutterlicensecheck\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter-icapps-license","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficapps%2Fflutter-icapps-license","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficapps%2Fflutter-icapps-license/lists"}