chore(firebase): switch to diygod Firebase config (#4868)

This commit is contained in:
DIYgod 2026-02-22 15:15:13 +08:00 committed by GitHub
parent 845539a8d4
commit 0bba08f103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 36 additions and 44 deletions

View File

@ -3,17 +3,17 @@
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyBD8lePDcfuPeJpJkvY1Egc_5sLX5lrtpg</string>
<string>AIzaSyBl6-TXvw5F0CX1r-935w0x_xPbVr0SSbQ</string>
<key>GCM_SENDER_ID</key>
<string>194977404578</string>
<string>992336953943</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>is.follow</string>
<key>PROJECT_ID</key>
<string>follow-428106</string>
<string>diygod-folo</string>
<key>STORAGE_BUCKET</key>
<string>follow-428106.firebasestorage.app</string>
<string>diygod-folo.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
@ -25,6 +25,6 @@
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:194977404578:ios:f26373d7487896293669fb</string>
<string>1:992336953943:ios:75a436f716af190dc11912</string>
</dict>
</plist>

View File

@ -1,26 +1,36 @@
{
"project_info": {
"project_number": "194977404578",
"project_id": "follow-428106",
"storage_bucket": "follow-428106.firebasestorage.app"
"project_number": "992336953943",
"project_id": "diygod-folo",
"storage_bucket": "diygod-folo.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:194977404578:android:b160305b94681dcb3669fb",
"mobilesdk_app_id": "1:992336953943:android:7e45e76b1a8986e1c11912",
"android_client_info": {
"package_name": "is.follow"
}
},
"oauth_client": [],
"oauth_client": [
{
"client_id": "992336953943-3rja1g44ep4tmsmv84mkaa6itv9ejrsi.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyA8knDQi334H3YBPflxfrYuod7AGZFQt64"
"current_key": "AIzaSyC7X-OdrxXWogeQwVDIFNkZzy81TINa7Fs"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
"other_platform_oauth_client": [
{
"client_id": "992336953943-3rja1g44ep4tmsmv84mkaa6itv9ejrsi.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}

View File

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyBD8lePDcfuPeJpJkvY1Egc_5sLX5lrtpg</string>
<key>GCM_SENDER_ID</key>
<string>194977404578</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>is.follow</string>
<key>PROJECT_ID</key>
<string>follow-428106</string>
<key>STORAGE_BUCKET</key>
<string>follow-428106.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:194977404578:ios:f26373d7487896293669fb</string>
</dict>
</plist>

View File

@ -0,0 +1 @@
../../build/GoogleService-Info.plist

View File

@ -1,8 +1,19 @@
const FIREBASE_CONFIG_DEFAULT = JSON.stringify({
apiKey: "AIzaSyBpGB2C2Vz-9ktivqVkW7uTtVopNh3ELvo",
authDomain: "diygod-folo.firebaseapp.com",
projectId: "diygod-folo",
storageBucket: "diygod-folo.firebasestorage.app",
messagingSenderId: "992336953943",
appId: "1:992336953943:web:998aae576c8bc77dc11912",
measurementId: "G-HS4SF4GHWG",
})
export const DEFAULT_VALUES = {
PROD: {
API_URL: "https://api.folo.is",
WEB_URL: "https://app.folo.is",
INBOXES_EMAIL: "@follow.re",
FIREBASE_CONFIG: FIREBASE_CONFIG_DEFAULT,
OPENPANEL_CLIENT_ID: "4382168f-b8d2-40c1-9a26-133a312d072b",
OPENPANEL_API_URL: "https://openpanel.follow.is/api",
RECAPTCHA_V3_SITE_KEY: "6LeNhgwsAAAAAHO1dhunH0a-FI1YvOc9Ny98Oast",

View File

@ -14,7 +14,7 @@ export const env = createEnv({
VITE_DEV_PROXY: z.string().optional(),
VITE_SENTRY_DSN: z.string().optional(),
VITE_INBOXES_EMAIL: z.string().default(DEFAULT_VALUES.PROD.INBOXES_EMAIL),
VITE_FIREBASE_CONFIG: z.string().optional(),
VITE_FIREBASE_CONFIG: z.string().default(DEFAULT_VALUES.PROD.FIREBASE_CONFIG),
VITE_OPENPANEL_CLIENT_ID: z.string().optional(),
VITE_OPENPANEL_API_URL: z.string().url().optional(),

View File

@ -14,7 +14,7 @@ export const env = createEnv({
VITE_DEV_PROXY: z.string().optional(),
VITE_SENTRY_DSN: z.string().optional(),
VITE_INBOXES_EMAIL: z.string().default(DEFAULT_VALUES.PROD.INBOXES_EMAIL),
VITE_FIREBASE_CONFIG: z.string().optional(),
VITE_FIREBASE_CONFIG: z.string().default(DEFAULT_VALUES.PROD.FIREBASE_CONFIG),
VITE_OPENPANEL_CLIENT_ID: z.string().optional(),
VITE_OPENPANEL_API_URL: z.string().url().optional(),