Change App Package Name with single command. It makes the process very easy and fast.
- Update AndroidManifest.xml files for release, debug & profile
- Update build.gradle file
- Update Activity files. Both java & kotlin supported.
- Move Activity files to new package directory structure
- Delete old package name directory structure.
Add Change App Package Name to your pubspec.yaml
in dev_dependencies:
section.
dev_dependencies:
change_app_package_name: ^1.1.0
Not migrated to null safety yet? use old version like this
dev_dependencies:
change_app_package_name: ^0.1.3
Update dependencies
flutter pub get
Run this command to change the package name.
flutter pub run change_app_package_name:main com.new.package.name
Where com.new.package.name
is the new package name that you want for your app. replace it with any name you want.
Atiq Samtia– @AtiqSamtia – me@atiqsamtia.com
Distributed under the MIT license.
https://github.com/atiqsamtia/change_app_package_name
- Fork it (https://github.com/atiqsamtia/change_app_package_name/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request