# Change package name

### iOS <a href="#ios" id="ios"></a>

change the package name and app group

<div data-full-width="true"><figure><img src="/files/MwMvUdrJ6cenNFsJ7cNB" alt=""><figcaption></figcaption></figure></div>

change the package name and app extension in iOS

<div data-full-width="true"><figure><img src="/files/1KDAF6jAR3Aiyt63djqt" alt=""><figcaption></figcaption></figure></div>

this step same like macOS version

#### Android <a href="#android" id="android"></a>

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

### Change the App Package Name for Flutter <a href="#change-the-app-package-name-for-flutter" id="change-the-app-package-name-for-flutter"></a>

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

#### What It does? <a href="#what-it-does" id="what-it-does"></a>

* 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? <a href="#how-to-use" id="how-to-use"></a>

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

Copy

```
dev_dependencies: 
  change_app_package_name: ^1.5.0
```

Update dependencies

Copy

```
flutter pub get
```

Run this command to change the package name.

Copy

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://orban-tech.gitbook.io/v2ray-vpn/app-guide/change-package-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
