简体   繁体   中英

How to change company domain name in flutter?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM