You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
지금 앱은 웹이 postMessage로 보내는 메시지를 safeAreaColors 하나만 받고, 파싱·검증·반영이 safeAreaColors.ts와 WebViewScreen.handleMessage에 1:1로 묶여 있다. 앞으로 인증 토큰·푸시 등 여러 영역에서 값을 받아올 예정이라, 메시지가 늘어도 화면 코드에 if (parseA) … else if (parseB) …가 쌓이지 않도록 웹 → 앱 브리지 인터페이스를 먼저 만든다.
메시지 추가 시 손대는 곳: 메시지 정의 파일 하나 + 레지스트리 한 줄 + 화면 핸들러 한 줄
type 문자열 ↔ payload 타입이 컴파일 타임에 묶여 핸들러에 캐스팅이 없다
검증 실패·모르는 메시지는 버린다 (지금 방침 유지)
📝 작업 상세 내용
메시지 봉투를 { type, payload }로 정한다
src/features/webview/bridge/bridge.ts — 레지스트리 + 타입 파생 + dispatchBridgeMessage
Activity
Merge pull request #10 from billilge/refactor/#9-webview-bridge