From 21a1725807eb7534a12eb867b7da1f634789f412 Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Tue, 3 Feb 2026 21:31:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20Firebase=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E4=BD=BF=E7=94=A8=E6=96=B0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 firebase.json、GoogleService-Info.plist 和 firebase_options.dart 中的配置,将项目从 `voitrans-e0e3d` 切换到 `voitrans`。这包括更新项目 ID、应用 ID、API 密钥和存储桶等设置,以匹配新的 Firebase 项目环境。 --- assets/config/GoogleService-Info.plist | 16 ++++------- firebase.json | 13 ++++----- lib/firebase_options.dart | 38 ++++++++++++-------------- 3 files changed, 27 insertions(+), 40 deletions(-) diff --git a/assets/config/GoogleService-Info.plist b/assets/config/GoogleService-Info.plist index 3b9d3b612..8a71c16f1 100644 --- a/assets/config/GoogleService-Info.plist +++ b/assets/config/GoogleService-Info.plist @@ -2,24 +2,18 @@ - CLIENT_ID - 907754492821-oc9e77svgmmlgouo0op7vv00e1hb8278.apps.googleusercontent.com - REVERSED_CLIENT_ID - com.googleusercontent.apps.907754492821-oc9e77svgmmlgouo0op7vv00e1hb8278 - ANDROID_CLIENT_ID - 907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com API_KEY - AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808 + AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE GCM_SENDER_ID - 907754492821 + 733281995296 PLIST_VERSION 1 BUNDLE_ID com.saitong.voitrans PROJECT_ID - deepsound-e0e3d + voitrans STORAGE_BUCKET - deepsound-e0e3d.firebasestorage.app + voitrans.firebasestorage.app IS_ADS_ENABLED IS_ANALYTICS_ENABLED @@ -31,6 +25,6 @@ IS_SIGNIN_ENABLED GOOGLE_APP_ID - 1:907754492821:ios:246794fc44b23174145c9c + 1:733281995296:ios:6a8351691312100bd70a45 \ No newline at end of file diff --git a/firebase.json b/firebase.json index e6102663b..4c0f13c76 100644 --- a/firebase.json +++ b/firebase.json @@ -3,20 +3,17 @@ "platforms": { "android": { "default": { - "projectId": "voitrans-e0e3d", - "appId": "1:907754492821:android:2deffc5aa1037ae2145c9c", + "projectId": "voitrans", + "appId": "1:733281995296:android:fd51ec5604787ab7d70a45", "fileOutput": "android/app/google-services.json" } }, "dart": { "lib/firebase_options.dart": { - "projectId": "voitrans-e0e3d", + "projectId": "voitrans", "configurations": { - "android": "1:907754492821:android:2deffc5aa1037ae2145c9c", - "ios": "1:907754492821:ios:8c1d7d1b583aec22145c9c", - "macos": "1:907754492821:ios:8c1d7d1b583aec22145c9c", - "web": "1:907754492821:web:99451e7efd7d120a145c9c", - "windows": "1:907754492821:web:e3e8040111db6871145c9c" + "android": "1:733281995296:android:fd51ec5604787ab7d70a45", + "ios": "1:733281995296:ios:6a8351691312100bd70a45" } } } diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index 6ecdbc6ad..53f36553e 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -51,33 +51,29 @@ class DefaultFirebaseOptions { ); static const FirebaseOptions android = FirebaseOptions( - apiKey: 'AIzaSyAj0_-nS3ygc8VFe1azotSE3-HGZYClkTs', - appId: '1:907754492821:android:2deffc5aa1037ae2145c9c', - messagingSenderId: '907754492821', - projectId: 'voitrans-e0e3d', - storageBucket: 'voitrans-e0e3d.firebasestorage.app', + apiKey: 'AIzaSyDPvThoWXxZ-LhE0gS9KH51jRE3f8YTmOE', + appId: '1:733281995296:android:fd51ec5604787ab7d70a45', + messagingSenderId: '733281995296', + projectId: 'voitrans', + storageBucket: 'voitrans.firebasestorage.app', ); static const FirebaseOptions ios = FirebaseOptions( - apiKey: 'AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808', - appId: '1:907754492821:ios:8c1d7d1b583aec22145c9c', - messagingSenderId: '907754492821', - projectId: 'voitrans-e0e3d', - storageBucket: 'voitrans-e0e3d.firebasestorage.app', - androidClientId: '907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com', - iosClientId: '907754492821-ej6j6pfto66jfhpj47b9bjs9amvo9dde.apps.googleusercontent.com', - iosBundleId: 'com.example.client', + apiKey: 'AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE', + appId: '1:733281995296:ios:6a8351691312100bd70a45', + messagingSenderId: '733281995296', + projectId: 'voitrans', + storageBucket: 'voitrans.firebasestorage.app', + iosBundleId: 'com.saitong.voitrans', ); static const FirebaseOptions macos = FirebaseOptions( - apiKey: 'AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808', - appId: '1:907754492821:ios:8c1d7d1b583aec22145c9c', - messagingSenderId: '907754492821', - projectId: 'voitrans-e0e3d', - storageBucket: 'voitrans-e0e3d.firebasestorage.app', - androidClientId: '907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com', - iosClientId: '907754492821-ej6j6pfto66jfhpj47b9bjs9amvo9dde.apps.googleusercontent.com', - iosBundleId: 'com.example.client', + apiKey: 'AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE', + appId: '1:733281995296:ios:6a8351691312100bd70a45', + messagingSenderId: '733281995296', + projectId: 'voitrans', + storageBucket: 'voitrans.firebasestorage.app', + iosBundleId: 'com.saitong.voitrans', ); static const FirebaseOptions windows = FirebaseOptions(