Changing Package/Version name in Flutter

Start from Dec 2019, for package name just change in build build.gradle only
defaultConfig {
    applicationId "your.package.name"
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

If you need to change your version name and code, you need to specify in pubspec.yaml

change the version to whatever version you want
+ (plus sign) is for versionCode
For iOS
Change the bundle identifier from your Info.plist file inside your ios/Runner directory.
<key>CFBundleIdentifier</key>
<string>com.your.packagename</string>

Comments

Popular posts from this blog

Publishing Flutter app

Solving flutter web app CORS policy