앱스토어와 플레이스토어 모두 새로운 버전을 업로드하기 위해서는 새로운 버전명과 빌드번호를 사용해야 한다.
그래야 새로운 버전으로 인식함 !!
버전명과 빌드번호를 변경하는 방법은 아주 간단하다.
pubspec.yaml 파일을 열고 제일 상단에 있는 version 속성을 변경하면 된다.
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.0+20
앞쪽의 1.2.0이 버전명이고, +뒤에 20이 빌드번호임.
버전명은 버전의 변경 정도에 따라 해주면 되고, 빌드번호는 일련번호로 이전번호보다 높은 번호로 사용하면 됨.
안드로이드 ios 모두 변경됩니다.