Flutter - change PRODUCT_BUNDLE_IDENTIFIER in 2020
20200920
1.app / build.gradle defaultConfig
defaultConfig {
applicationId "co.yourName.appName"
2.app/src/main/
AndroidManifest.xml 3.app/src/debug/
AndroidManifest.xml 4.app/src/profile/
AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.yourName.appName">
5. app/main/kotlin/co/yourName/ newName
6.app/main/kotlin/co/yourName/ newName/ MainActivity.java
package co.yourName.appName;7.pubspec.yaml
name: appName
8. lib all dart file change appName9.Runner.xcodeproj / project.pbxproj (there are 3 PRODUCT_BUNDLE_IDENTIFIER) must be changed.)
PRODUCT_BUNDLE_IDENTIFIER = co.yourName.appName;
10. terminal
flutter clean
11. File >Invalidate Caches/Restart...
👍done
Comments
Post a Comment