{"id":16059442,"url":"https://github.com/OutdatedGuy/package_rename","last_synced_at":"2025-10-22T11:30:24.939Z","repository":{"id":61975435,"uuid":"524566365","full_name":"OutdatedGuy/package_rename","owner":"OutdatedGuy","description":"A Blazingly Fast way to configure your Bleeding Edge flutter project to be production ready.","archived":false,"fork":false,"pushed_at":"2024-12-19T20:01:43.000Z","size":528,"stargazers_count":24,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T11:11:10.628Z","etag":null,"topics":["dart","dart-cli","flutter","flutter-cli","flutter-package"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/package_rename","language":"Dart","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/OutdatedGuy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGED_FIELDS.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["OutdatedGuy"]}},"created_at":"2022-08-14T03:48:29.000Z","updated_at":"2025-01-14T11:45:32.000Z","dependencies_parsed_at":"2024-05-15T12:54:59.566Z","dependency_job_id":"b778f24d-4209-4fdd-adc3-20aa3efb3670","html_url":"https://github.com/OutdatedGuy/package_rename","commit_stats":{"total_commits":118,"total_committers":6,"mean_commits":"19.666666666666668","dds":"0.44067796610169496","last_synced_commit":"9c58a59d3d16721703131d96feca6cfd76eb61c7"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2Fpackage_rename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2Fpackage_rename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2Fpackage_rename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutdatedGuy%2Fpackage_rename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutdatedGuy","download_url":"https://codeload.github.com/OutdatedGuy/package_rename/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237671579,"owners_count":19347917,"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":["dart","dart-cli","flutter","flutter-cli","flutter-package"],"created_at":"2024-10-09T04:01:05.608Z","updated_at":"2025-10-22T11:30:24.924Z","avatar_url":"https://github.com/OutdatedGuy.png","language":"Dart","readme":"# Package Rename\n\nA Blazingly Fast way to configure your Bleeding Edge flutter project to be production ready.\n\n[![pub package][package_svg]][package]\n[![GitHub][license_svg]](LICENSE)\n\n[![GitHub issues][issues_svg]][issues]\n[![GitHub issues closed][issues_closed_svg]][issues_closed]\n\n\u003chr /\u003e\n\nPackage Rename handles changing **_37 fields_** across **_19 files_** on **_6 platforms_** so you can focus on your awesome project.\n\nFor more info see [list of changed fields](CHANGED_FIELDS.md)\n\n## Getting started\n\n#### Add to Dependencies\n\n```yaml\ndev_dependencies:\n  package_rename: ^1.10.0\n```\n\n#### Create configuration\n\nYou can create configurations by adding `package_rename_config` key in:\n\n1. Root `pubspec.yaml` file\n1. `package_rename_config.yaml` file at root of your project or a custom folder in the project\n\n## Usage\n\n#### Adding Platform Specific Configurations\n\n```yaml\npackage_rename_config:\n  android:\n    app_name: # (String) The display name of the android app\n    package_name: # (String) The package name of the android app\n    override_old_package: # (Optional) (String) Use this to delete the old folder structure of MainActivity or to use the existing code with the new package name\n    lang: # (Optional) (String) The android development language {kotlin(default) or java}\n\n  ios:\n    app_name: # (String) The display name of the ios app\n    bundle_name: # (String) The bundle name of the ios app\n    package_name: # (String) The product bundle identifier of the ios app\n\n  linux:\n    app_name: # (String) The window title of the linux app\n    package_name: # (String) The application id of the linux app\n    exe_name: # (String) The executable name (binary name) of the linux app\n\n  macos:\n    app_name: # (String) The product name of the macos app\n    package_name: # (String) The product bundle identifier of the macos app\n    copyright_notice: # (String) The product copyright of the macos app\n\n  web:\n    app_name: # (String) The title of the web app and PWA\n    short_app_name: # (String) The short display name of the PWA (Optional, defaults to app_name if not set)\n    description: # (String) The description of the web app and PWA\n\n  windows:\n    app_name: # (String) The window title \u0026 software name of the windows app\n    organization: # (String) The organization name (company name) of the windows app\n    copyright_notice: # (String) The legal copyright of the windows app\n    exe_name: # (String) The executable name (binary name) of the windows app\n```\n\n\u003e For full example click [here](example/example.md#default-configuration)\n\n#### Running Package Rename\n\nExecute the command as per your config location:\n\nif config file exists in either pubspec.yaml or root path:\n\n```bash\ndart run package_rename\n```\n\nOR\n\nif config file exists in a custom folder:\n\n```bash\ndart run package_rename --path=\"path/to/package_rename_config.yaml\"\n```\n\nor\n\n```bash\ndart run package_rename -p \"path/to/package_rename_config.yaml\"\n```\n\n## Flavour Support\n\nPackage Rename supports flavours. You can add flavour specific configurations by adding `flavour_name` in configuration key.\n\n```yaml\npackage_rename_config-flavour_name:\n  # ...\n```\n\n\u003e For full example click [here](example/example.md#flavour-configuration)\n\nAnd then run the following command:\n\n```bash\ndart run package_rename --flavour=flavour_name\n```\n\nor\n\n```bash\ndart run package_rename -f flavour_name\n```\n\nWith custom config file location:\n\n```bash\ndart run package_rename --flavour=flavour_name --path=\"path/to/package_rename_config.yaml\"\n```\n\n## Known Issues\n\n### iOS and macOS issues with `PRODUCT_BUNDLE_IDENTIFIER`:\n\nThe `PRODUCT_BUNDLE_IDENTIFIER`'s in **ios/Runner.xcodeproj/project.pbxproj** and **macos/Runner.xcodeproj/project.pbxproj** have different values for different targets. Like, in my case:\n\n**DEFAULT**\n\n- `rocks.outdatedguy.packageRenameExample`\n- `rocks.outdatedguy.packageRenameExample.RunnerTests`\n\n**EXTENSIONS**\n\n- `rocks.outdatedguy.packageRenameExample.Share-Extension`\n- `rocks.outdatedguy.packageRenameExample.NotificationServiceExtension`\n- blah blah blah...\n\nHence, to properly change the `PRODUCT_BUNDLE_IDENTIFIER` without removing the **Extension** name, make sure all `PRODUCT_BUNDLE_IDENTIFIER`'s except the **DEFAULT** ones are enclosed in double quotes (`\"\"`).\n\n```diff\n- PRODUCT_BUNDLE_IDENTIFIER = rocks.outdatedguy.packageRenameExample.Share-Extension;\n+ PRODUCT_BUNDLE_IDENTIFIER = \"rocks.outdatedguy.packageRenameExample.Share-Extension\";\n```\n\n## And that's it! 🎉\n\nNow you can deploy your production ready app to change the _WORLD!_\n\n### If you liked the package, then please give it a [Like 👍🏼][package] and [Star ⭐][repository]\n\n\u003c!-- Badges URLs --\u003e\n\n[package_svg]: https://img.shields.io/pub/v/package_rename.svg?color=blueviolet\n[license_svg]: https://img.shields.io/github/license/OutdatedGuy/package_rename.svg?color=purple\n[issues_svg]: https://img.shields.io/github/issues/OutdatedGuy/package_rename.svg\n[issues_closed_svg]: https://img.shields.io/github/issues-closed/OutdatedGuy/package_rename.svg?color=green\n\n\u003c!-- Links --\u003e\n\n[package]: https://pub.dev/packages/package_rename\n[repository]: https://github.com/OutdatedGuy/package_rename\n[issues]: https://github.com/OutdatedGuy/package_rename/issues\n[issues_closed]: https://github.com/OutdatedGuy/package_rename/issues?q=is%3Aissue+is%3Aclosed\n","funding_links":["https://github.com/sponsors/OutdatedGuy"],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOutdatedGuy%2Fpackage_rename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOutdatedGuy%2Fpackage_rename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOutdatedGuy%2Fpackage_rename/lists"}