EAS (Expo Application Services) build에서 Play Console로 직접 배포
EAS (Expo Application Services) build에서 Play Console로 직접 배포하는 방법을 설명해드리겠습니다.
1. 먼저 eas.json 설정이 필요합니다:
```json
{
"build": {
"production": {
"android": {
"buildType": "app-bundle",
"submitToPlayStore": true
}
}
},
"submit": {
"production": {
"android": {
"serviceAccountKeyPath": "./pc-api-key.json",
"track": "internal" // internal, alpha, beta, production 중 선택
}
}
}
}
```
2. Google Play Console API 접근을 위한 서비스 계정 키가 필요합니다:
- Play Console → 설정 → API 액세스
- 서비스 계정 생성 후 JSON 키 다운로드
- 프로젝트 루트에 `pc-api-key.json`으로 저장
3. 빌드와 제출을 한번에 하려면:
```bash
eas build --platform android --auto-submit
```
또는 따로 하려면:
```bash
# 빌드만
eas build --platform android
# 제출만
eas submit -p android
```
주의사항:
- app.json의 version과 android.versionCode가 Play Console의 이전 버전보다 높아야 합니다
- 처음 제출시에는 수동으로 Play Console에서 앱 등록이 필요합니다
- submitToPlayStore: true 설정이 있어야 자동 제출됩니다
실제 배포 전에 internal 트랙으로 테스트하는 것을 추천드립니다.
더 자세한 설정이 필요하신가요?