Skip to content

Instantly share code, notes, and snippets.

@Ademking Ademking/
Created Jul 26, 2019

What would you like to do?
Flutter: upgrade the version code for play store (Fix)


Update version:A.B.C+X in pubspec.yaml.

For Android:

A.B.C represents the versionName such as 1.0.0.

X (the number after the +) represents the versionCode such as 1, 2, 3, etc.

When you run flutter packages get after updating this version in the pubspec file, the versionName and versionCode in are updated which are later picked up in the build.gradle (app) when you build your flutter project using flutter build or flutter run which is ultimately responsibly for setting the versionName and versionCode for the apk.

For iOS:

A.B.C represents the CFBundleShortVersionString such as 1.0.0.

X (the number after the +) represents the CFBundleVersion such as 1, 2, 3, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.