Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atiqsamtia/change_app_package_name
Change App Package Name with single command. It makes the process very easy and fast.
https://github.com/atiqsamtia/change_app_package_name
android android-app flutter flutter-app flutter-package
Last synced: 5 days ago
JSON representation
Change App Package Name with single command. It makes the process very easy and fast.
- Host: GitHub
- URL: https://github.com/atiqsamtia/change_app_package_name
- Owner: atiqsamtia
- License: mit
- Created: 2020-04-16T12:11:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-19T20:58:54.000Z (4 months ago)
- Last Synced: 2024-12-28T23:32:36.432Z (12 days ago)
- Topics: android, android-app, flutter, flutter-app, flutter-package
- Language: Dart
- Homepage: https://pub.dev/packages/change_app_package_name
- Size: 22.5 KB
- Stars: 140
- Watchers: 5
- Forks: 68
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
- [x] 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.
- [x] 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.
```yaml
dev_dependencies:
change_app_package_name: ^1.4.0
```
or run this command
```bash
flutter pub add -d change_app_package_name
```
Not migrated to null safety yet? use old version like this
```yaml
dev_dependencies:
change_app_package_name: ^1.4.0
```Update dependencies
```
flutter pub get
```
Run this command to change the package name for both platforms.```
dart run change_app_package_name:main com.new.package.name
```
To rename only Android:
```
dart run change_app_package_name:main com.new.package.name --android
```
To rename only IOS:
```
dart run change_app_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
Atiq Samtia– [@AtiqSamtia](https://twitter.com/atiqsamtia) – [email protected]
Distributed under the MIT license.
[https://github.com/atiqsamtia/change_app_package_name](https://github.com/atiqsamtia/change_app_package_name)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request