change_package_name 1.1.0 copy "change_package_name: ^1.1.0" to clipboard
change_package_name: ^1.1.0 copied to clipboard

Change your App Package Name with single command. Update AndroidManifest, build.gradle, MainActivity files & move MainActivity file to new directory structure automatically.

Change App Package Name for Flutter #

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

What It does? #

  • [✅] Update AndroidManifest.xml files for release, debug & profile
  • [✅] Update build.gradle file
  • [✅] Update MainActivity file. Both java & kotlin supported.
  • [✅] Move MainActivity file to new package directory structure
  • [✅] Delete old package name directory structure.
  • [✅] Update Product Bundle Identifier in iOS.
    • if you have customized CFBundleIdentifier in Info.plist, it will not be updated. You have to update it manually.
  • [✅] Specify which platform they want to rename the package for.

How to Use? #

Add Change App Package Name to your pubspec.yaml in dev_dependencies: section.

dev_dependencies: 
  change_package_name: ^1.1.0

or run this command

flutter pub add -d change_package_name

Not migrated to null safety yet? use old version like this

dev_dependencies: 
  change_package_name: ^1.1.0

Update dependencies

flutter pub get

Run this command to change the package name for both platforms.

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

To rename only Android:

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

To rename only IOS:

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

Where com.new.package.name is the new package name that you want for your app. replace it with any name you want.

Meta #

Distributed under the MIT license.

https://github.com/KANAGARAJ-M/change_package_name

1
likes
135
points
312
downloads

Publisher

verified publishernocorps.org

Weekly Downloads

Change your App Package Name with single command. Update AndroidManifest, build.gradle, MainActivity files & move MainActivity file to new directory structure automatically.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on change_package_name