V2-6 — Mobile (Expo) MVP
- apps/mobile/ 신규, npm workspace에서 제외 (Expo deps 부담 회피)
- Expo SDK 51 + Expo Router + AsyncStorage Supabase 클라이언트
- 화면: index/login/(tabs)/{meetings,record,profile}
- expo-av로 녹음 → Edge Function stt-proxy 호출
- expo-web-browser + expo-linking으로 OAuth 콜백 처리
- README에 setup/EAS build 가이드
- 루트 package.json workspaces를 명시 나열로 변경 (apps/mobile 제외)
V2-7 — 팀 기능 (Web)
- apps/web/src/app/teams/page.tsx — 가입한 팀 카드 그리드
- apps/web/src/app/teams/[id]/page.tsx — 멤버 + 공유 회의
- components/teams/create-team-form.tsx — 팀 생성 + owner 자동 team_members
- components/teams/invite-member-form.tsx — user_id 직접 초대 (V2-7b에서 invite flow)
- Sidebar에 Teams/Billing 메뉴 + 아이콘
- ko.json에 nav.teams/nav.billing 키 추가
- V2-2 teams/team_members RLS 활용
V2-8 — 결제 스캐폴딩
- apps/web/src/app/billing/page.tsx — Free/Pro/Team 가격표 + 현재 구독
- components/billing/checkout-button.tsx — Edge Function 호출 후 redirect
- server/supabase/functions/stripe-checkout/index.ts:
- JWT 인증 -> 기존 customer 조회/생성 -> Checkout Session 생성
- subscriptions 테이블에 customer_id upsert
- server/supabase/functions/stripe-webhook/index.ts:
- checkout.session.completed -> subscriptions tier=pro/team active
- customer.subscription.updated/created -> status/period 업데이트
- customer.subscription.deleted -> tier=free, status=canceled
- signature 검증은 placeholder (V2-8b에서 정식)
- server/supabase/config.toml에 두 함수 등록 (webhook verify_jwt=false)
검증:
- desktop typecheck OK (회귀 없음)
- web typecheck OK
- web next build OK (11 라우트)
- mobile은 별도 install 필요 (workspace 제외)
memory/project_status.md 갱신 — V2 마스터 플랜 전 페이즈 로컬 완료
|
||
|---|---|---|
| .. | ||
| app | ||
| lib | ||
| app.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@d3ro/mobile — D3RO Voice Mobile (Expo)
D3RO Voice의 React Native (Expo) 앱. npm workspace에서 제외됨 — Expo의 무거운 native 의존성 때문에 별도 install 필요.
설치
cd apps/mobile
npm install
실행
# Expo dev server 실행 (브라우저에 QR 표시)
npm start
# iOS 시뮬레이터
npm run ios
# Android 에뮬레이터
npm run android
Supabase 설정
app.json의 expo.extra에 환경변수를 추가하거나, EAS Secrets 사용:
{
"expo": {
"extra": {
"supabaseUrl": "https://your-project.supabase.co",
"supabaseAnonKey": "eyJ..."
}
}
}
또는 app.config.ts로 변환해서 process.env에서 읽기.
화면 구성
| Route | 설명 |
|---|---|
/ |
진입점, auth 상태에 따라 리다이렉트 |
/login |
OAuth (Google/GitHub) 로그인 |
/(tabs)/meetings |
회의 리스트 (Supabase fetch) |
/(tabs)/record |
녹음 (expo-av) → stt-proxy |
/(tabs)/profile |
사용자 정보 + 로그아웃 |
OAuth 콜백
app.json의 scheme: "d3ro-voice"로 deep link 등록.
Supabase Auth providers의 redirect URL에 다음 추가:
d3ro-voice://auth-callbackhttps://auth.expo.io/@your-username/d3ro-voice(Expo Go 사용 시)
빌드 (EAS)
npm install -g eas-cli
eas login
eas build:configure
eas build --platform ios
eas build --platform android
의존성 비고
@d3ro/core, @d3ro/i18n, @d3ro/api-client 등 monorepo 패키지는 향후 file: link로
재사용 예정. 현재 V2-6 MVP는 코드 중복 (lib/supabase.ts) 허용.
V2-6 MVP 한계
- DS 컴포넌트 (
@d3ro/ui)는 MUI 기반이라 RN에서 미사용. 별도@d3ro/ui-native패키지가 V2-6b에서 필요. - 푸시 알림 미구현 (V2-6b)
- 회의 상세 화면 미구현 (V2-6b)
- 오프라인 캐싱 미구현 (V2-6b)