Programming-[CrossPlatform]/Flutter
[링크, TIL] 안드로이드 앱 배포
컴퓨터 탐험가 찰리
2024. 9. 18. 21:44
728x90
반응형
https://whoyoung90.tistory.com/79
[Flutter] 안드로이드 앱 배포하기
Flutter에서 하이드리드 앱 개발시구글 플레이스토어에 비해 iOS 앱스토어에 배포하는 방법은 비교적 간단했다. iOS 앱스토어 배포는 따로 키를 서명할 필요없이 xcode에서 Product > Archieve 해주고 Dist
whoyoung90.tistory.com
버전 관리
안드로이드용
versionCode는 1씩 무조건 증가해야한다. versionName은 실제 표시되는 버전 이름이다.
build.gradle 내용 중 일부
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "1"
}
def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}
local.properties를 참조하고 null 일 때만 build.gradle을 참조하므로, local.properties에 내용을 추가하고 수정하면서 배포한다.
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=...
flutter.versionCode = 2
flutter.versionName = 1.0.1
앱 번들 생성
flutter build appbundle로 앱 번들을 생성한다.
완료되면 build > app > outputs > bundle > release / 디렉토리 내부에 생성된다.

구글 플레이 콘솔에 업로드
upload new version을 눌러서 추가로 업로드가 가능하다.

이후 Internal Testing 중이라 internal testing -> create new release -> upload from library를 선택하여 업로드 했다.

이후 배포에는 첫 배포 때처럼 시간이 좀(1시간 정도) 걸린다.
728x90
반응형