(Optional) 환경(디버깅/프로덕션) 분리

안드로이드: android/app/build.gradle

signingConfigs

buildTypes


수정 후 파이베이스에서 debug용 안드로이드 앱을 추가하고 debug용 google-services.json 파일을 다운 받은 후 적절한 path에 위치시킨다.

iOS: Signing & Capabilities

Packaging > Product Bundle Identifier 과 Product Name 에 dubug 용 추가

수정 후 파이어베이스에서 debug용 iOS 앱을 추가하고 debug용 GoogleService-Info.plist 파일을 다운 받고 파일 이름을 GoogleService-Info-Debug.plist 로 수정 후 적절한 path에 위치시킨다.

이전에 다운 받았던 production용 GoogleService-Info.plist 파일 이름은 GoogleService-Info-Release.plist 로 변경해준다.

Build Phases 에서 빌드 할 때 각각의 plist 파일 이름을 환경에 따라 GoogleService-Info.plist 로 수정하도록 스크립트 작성

빌드 결과물

Android

APK File(Android Package File): 안드로이드 기기에서 실행하면 앱 설치 가능

⭐️ AAB File(Android App Bundle File): 용량이 큰 APK를 대체하기 위해 나온 build output, AAB File만 올려두면 Playstore에서 디바이스의 해상도, 버전에 맞는 APK 파일을 재조합 하여 다운로드 하도록 함.