Change App Package Name for Flutter #
Change App Package Name with single command. It makes the process very easy and fast.
What It does? #
- [x] Update AndroidManifest.xml files for release, debug & profile
- [x] Update build.gradle file
- [x] Update MainActivity file. Both java & kotlin supported.
- [x] Move MainActivity file to new package directory structure
- [x] Delete old package name directory structure.
How to Use? #
Add Change App Package Name to your
dev_dependencies: change_app_package_name: ^0.1.2
flutter pub get
Run this command to change the package name.
flutter pub run change_app_package_name:main com.new.package.name
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 – firstname.lastname@example.org
Distributed under the MIT license.
- 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
[0.1.0] - (March 16, 2020) #
- Change Android Package Name with single command
[0.1.1] - (March 16, 2020) #
- Update code as per pub.dev guidelines
[0.1.2] - (March 16, 2020) #
- Bug Fix in README.md
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: change_app_package_name: ^0.1.2
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on May 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.8.1
- pana: 0.13.8-dev
Health issues and suggestions
Document public APIs. (-1 points)
22 out of 22 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
dartfmt to format
dartfmt to format
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
change_app_package_name.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=2.1.0 <3.0.0|