[Feat] firebase app distribution CI 오류 수정 및 방식 수정 #450
+57
−29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Describe your changes
Issue
To reviewers
이전 pr 병합 후 테스트를 해보니 오류가 나더라구요.. 알아보니까 우선
Firebase App Distribution은 하나의 Firebase App = 하나의 패키지명(applicationId)을 기준으로 동작합니다
그런데 우리 프로젝트의 Debug APK는 com.eatssu.android.debug, Release APK는 com.eatssu.android 처럼 패키지명이 달라요
Firebase는 업로드되는 APK의 패키지명이 자신이 등록한 앱의 패키지명과 정확히 일치해야만 배포와 메일 발송을 해주는데..
그래서 하나의 Firebase App으로는 서로 다른 패키지명의 APK 두 개를 동시에 배포할 수 없는 것 같아요
Debug와 Release를 각각 메일로 보내려면 Firebase App 프로젝트를 2개 만들거나,
아니면 Debug APK의 패키지명을 Release와 같게 만들어야 하는데 이건 기존 로직을 해칠 수도 있을 것 같아서 우선 메일로는 release apk파일을 보내고, debug용 apk는 별도로 추출하는 형식으로 가야하지 않을까 싶습니다
사실 이렇게 되면 굳이 app distribution을 쓰는 의미가 있을까 싶긴해요
내부 안드팀끼리 논의하시고 굳이 필요없는 CI라고 생각되시면 관련 코드를 삭제하고 사용하셔도 될 것 같습니다
*현재 ci로는 메일로 정상 발송됨을 확인하긴 했습니다!