Skip to content

star4277/change_app_package_name_plus

Repository files navigation

change_app_package_name_plus

中文文档

Change app package/bundle name for Flutter projects with one command.

Features

  • Update Android applicationId (build.gradle / build.gradle.kts).
  • Update Android manifest package declarations (main, debug, profile).
  • Migrate Android source files under old package path to new package path.
  • Update Java/Kotlin package references during migration.
  • Remove empty old package directories after migration.
  • Update iOS bundle identifier in project.pbxproj.
  • Update OHOS bundle name in ohos/AppScope/app.json5.
  • Rename all platforms at once, or one platform at a time.

Install

Add this package to dev_dependencies:

dev_dependencies:
  change_app_package_name_plus: ^1.6.0

Or:

flutter pub add -d change_app_package_name_plus

Then:

flutter pub get

Usage

Rename Android + iOS + OHOS:

dart run change_app_package_name_plus:main com.new.package.name

Rename Android only:

dart run change_app_package_name_plus:main com.new.package.name --android

Rename iOS only:

dart run change_app_package_name_plus:main com.new.package.name --ios

Rename OHOS only:

dart run change_app_package_name_plus:main com.new.package.name --ohos

Notes

  • If you have customized CFBundleIdentifier in Info.plist, update it manually.
  • com.new.package.name is an example. Replace it with your own package name.

Thanks

This project is based on and inspired by the original project:

Thanks for the original implementation and open-source contribution.

License

MIT

About

Change App Package Name with single command. It makes the process very easy and fast.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors