How to change company domain name in flutter?

2,973

For Android project (android folder of Flutter project):

  • Change applicationId in android/app/build.gradle;
  • Change package attribute in manifest tag in android/app/src/XX/AndroidManifest.xml, where XX is a build type (main, debug, profile);
  • Change package name in your MainActivity.java (or .kt) (also rename directory).

For iOS project (ios folder of Flutter project):

  • Change PRODUCT_BUNDLE_IDENTIFIER for 3 buildSettings (debug, release, profile) in ios/Runner.pbxproj (you can open it in xcode or just as text).
  • Change value for key CFBundleName in ios/Runner/Info.plist
Share:
2,973
Adit Luhadia
Author by

Adit Luhadia

Updated on December 15, 2022

Comments

  • Adit Luhadia
    Adit Luhadia over 1 year

    I have made an application using Flutter. However, now I want to change the domain name I initially used while creating the application. How can I do that?

    Most of the answers on Stackoverflow explain how to change package name and domain name in normal Android Studio projects (not for Flutter projects).