build: 앱 이름을 vesiscan-demo 로 · applicationId 충돌 제거
이 브랜치는 동결 시연판이다. 이제 앱이 셋으로 늘어 한 폰에 같이 깔리므로, 이름과 applicationId 를 1:1 로 못 박아 무엇이 무엇인지 헷갈리지 않게 한다. vesiscan-demo com.medithings.vesiscan.demo ← 이 브랜치 vesiscan-user com.medithings.vesiscan ← vesiscan_pre_product vesiscan-caregiver com.medithings.vesiscan.caregiver ← vesiscan_pre_product ## 이름 "VesiScan-Basic Demo"(demo) · "VesiScan Dev"(dev) 를 각각 vesiscan-demo · vesiscan-demo-dev 로. 예전 이름은 **무슨 앱인지가 아니라 어떤 빌드인지**만 알려 줘서, 폰에 여러 개가 깔리면 구별할 수 없었다. ## applicationId — 이게 진짜 문제였다 base 가 `com.medithings.vesiscan` 이고 demo 플레이버가 `.demo` 를 붙이는 구조라, **dev 플레이버는 접미가 없어 `com.medithings.vesiscan`** 이었다. 그 id 는 새 저장소의 환자 앱과 정확히 같다 — 이 브랜치에서 devDebug 를 한 번 빌드해 깔면 환자 앱이 말없이 덮어써진다. 이름을 아무리 잘 붙여도 막을 수 없는 종류의 사고다. base 를 `com.medithings.vesiscan.demo` 로 옮기고(=demo 빌드의 id 는 그대로), demo 는 접미 없음, dev 는 `.dev` 를 붙인다. 이제 어떤 플레이버를 빌드해도 다른 앱을 건드리지 않는다. 검증: aapt2 dump badging — package `com.medithings.vesiscan.demo` · label `vesiscan-demo` · versionName `2.0.0-demo`. assembleDemoDebug PASS. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
<string name="app_name">VesiScan-Basic</string>
|
||||
<string name="app_name">vesiscan-demo</string>
|
||||
|
||||
<!-- Common -->
|
||||
<string name="confirm">확인</string>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
<string name="app_name">VesiScan-Basic</string>
|
||||
<string name="app_name">vesiscan-demo</string>
|
||||
|
||||
<!-- Common -->
|
||||
<string name="confirm">OK</string>
|
||||
|
||||
Reference in New Issue
Block a user