-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
GoogleService-Info-Dev.plist and AuthService.swift hardcode prod Firebase (based-hardware). Dev builds should use dev Firebase (based-hardware-dev) so local backend testing works with dev credentials.
Current Behavior
GoogleService-Info-Dev.plistpoints tobased-hardware(prod) — same as prod plistAuthService.swift:87hardcodes prod API keyAIzaSyD9dzBdglc7IO9pPDIOvqnCoTis_xKkkC8- Dev builds authenticate against prod Firebase, making local backend testing with dev credentials impossible
Expected Behavior
Dev builds (./run.sh / Omi Dev.app) use based-hardware-dev Firebase project. Prod builds use based-hardware.
Affected Areas
| File | Line | Description |
|---|---|---|
desktop/Desktop/Sources/GoogleService-Info-Dev.plist |
12,20,22 | API_KEY, PROJECT_ID, STORAGE_BUCKET all prod values |
desktop/Desktop/Sources/AuthService.swift |
87 | Hardcoded firebaseApiKey (prod) |
Solution
-
GoogleService-Info-Dev.plist— update to dev values:API_KEY:AIzaSyBK-G7KmEoC72mR10gmQyb2NFBbZyDvcqMPROJECT_ID:based-hardware-devSTORAGE_BUCKET:based-hardware-dev.firebasestorage.appGCM_SENDER_ID:1031333818730GOOGLE_APP_ID:1:1031333818730:ios:3bea63d8e4f41dbfafb513
-
AuthService.swift— readAPI_KEYfrom the active GoogleService-Info plist at runtime instead of hardcoding. Dev builds loadGoogleService-Info-Dev.plist, prod builds loadGoogleService-Info.plist.
Files to Modify
desktop/Desktop/Sources/GoogleService-Info-Dev.plistdesktop/Desktop/Sources/AuthService.swift
Impact
None on prod — GoogleService-Info.plist (prod) unchanged. Only dev builds affected.
by AI for @beastoin
Reactions are currently unavailable