# Change package name

## iOS

change the package name and app group

<figure><img src="https://content.gitbook.com/content/RTIkM7mLrmv2QWvtQw9Y/blobs/FFC52Dt9WqOglKbrwXsF/ios.jpg" alt=""><figcaption></figcaption></figure>

change the package name and app extension in iOS

this step same like macOS version

### Android

For Android just use the change\_app\_package\_name: ^1.1.0 plugin

## Change the App Package Name for Flutter&#x20;

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

### What It does?&#x20;

* 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.

### How to Use?&#x20;

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

```yaml
dev_dependencies: 
  change_app_package_name: ^1.1.0
```

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

```yaml
dev_dependencies: 
  change_app_package_name: ^0.1.3
```

Update dependencies

```dart
flutter pub get
```

Run this command to change the package name.

```dart
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.
