Browse Source

chore: 更新 Firebase 配置以使用新项目

更新 firebase.json、GoogleService-Info.plist 和 firebase_options.dart 中的配置,将项目从 `voitrans-e0e3d` 切换到 `voitrans`。这包括更新项目 ID、应用 ID、API 密钥和存储桶等设置,以匹配新的 Firebase 项目环境。
newdev_shunjiawei
lxm 8 months ago
parent
commit
21a1725807
  1. 16
      assets/config/GoogleService-Info.plist
  2. 13
      firebase.json
  3. 38
      lib/firebase_options.dart

16
assets/config/GoogleService-Info.plist

@ -2,24 +2,18 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CLIENT_ID</key>
<string>907754492821-oc9e77svgmmlgouo0op7vv00e1hb8278.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.907754492821-oc9e77svgmmlgouo0op7vv00e1hb8278</string>
<key>ANDROID_CLIENT_ID</key>
<string>907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com</string>
<key>API_KEY</key> <key>API_KEY</key>
<string>AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808</string> <string>AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE</string>
<key>GCM_SENDER_ID</key> <key>GCM_SENDER_ID</key>
<string>907754492821</string> <string>733281995296</string>
<key>PLIST_VERSION</key> <key>PLIST_VERSION</key>
<string>1</string> <string>1</string>
<key>BUNDLE_ID</key> <key>BUNDLE_ID</key>
<string>com.saitong.voitrans</string> <string>com.saitong.voitrans</string>
<key>PROJECT_ID</key> <key>PROJECT_ID</key>
<string>deepsound-e0e3d</string> <string>voitrans</string>
<key>STORAGE_BUCKET</key> <key>STORAGE_BUCKET</key>
<string>deepsound-e0e3d.firebasestorage.app</string> <string>voitrans.firebasestorage.app</string>
<key>IS_ADS_ENABLED</key> <key>IS_ADS_ENABLED</key>
<false></false> <false></false>
<key>IS_ANALYTICS_ENABLED</key> <key>IS_ANALYTICS_ENABLED</key>
@ -31,6 +25,6 @@
<key>IS_SIGNIN_ENABLED</key> <key>IS_SIGNIN_ENABLED</key>
<true></true> <true></true>
<key>GOOGLE_APP_ID</key> <key>GOOGLE_APP_ID</key>
<string>1:907754492821:ios:246794fc44b23174145c9c</string> <string>1:733281995296:ios:6a8351691312100bd70a45</string>
</dict> </dict>
</plist> </plist>

13
firebase.json

@ -3,20 +3,17 @@
"platforms": { "platforms": {
"android": { "android": {
"default": { "default": {
"projectId": "voitrans-e0e3d", "projectId": "voitrans",
"appId": "1:907754492821:android:2deffc5aa1037ae2145c9c", "appId": "1:733281995296:android:fd51ec5604787ab7d70a45",
"fileOutput": "android/app/google-services.json" "fileOutput": "android/app/google-services.json"
} }
}, },
"dart": { "dart": {
"lib/firebase_options.dart": { "lib/firebase_options.dart": {
"projectId": "voitrans-e0e3d", "projectId": "voitrans",
"configurations": { "configurations": {
"android": "1:907754492821:android:2deffc5aa1037ae2145c9c", "android": "1:733281995296:android:fd51ec5604787ab7d70a45",
"ios": "1:907754492821:ios:8c1d7d1b583aec22145c9c", "ios": "1:733281995296:ios:6a8351691312100bd70a45"
"macos": "1:907754492821:ios:8c1d7d1b583aec22145c9c",
"web": "1:907754492821:web:99451e7efd7d120a145c9c",
"windows": "1:907754492821:web:e3e8040111db6871145c9c"
} }
} }
} }

38
lib/firebase_options.dart

@ -51,33 +51,29 @@ class DefaultFirebaseOptions {
); );
static const FirebaseOptions android = FirebaseOptions( static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyAj0_-nS3ygc8VFe1azotSE3-HGZYClkTs', apiKey: 'AIzaSyDPvThoWXxZ-LhE0gS9KH51jRE3f8YTmOE',
appId: '1:907754492821:android:2deffc5aa1037ae2145c9c', appId: '1:733281995296:android:fd51ec5604787ab7d70a45',
messagingSenderId: '907754492821', messagingSenderId: '733281995296',
projectId: 'voitrans-e0e3d', projectId: 'voitrans',
storageBucket: 'voitrans-e0e3d.firebasestorage.app', storageBucket: 'voitrans.firebasestorage.app',
); );
static const FirebaseOptions ios = FirebaseOptions( static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808', apiKey: 'AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE',
appId: '1:907754492821:ios:8c1d7d1b583aec22145c9c', appId: '1:733281995296:ios:6a8351691312100bd70a45',
messagingSenderId: '907754492821', messagingSenderId: '733281995296',
projectId: 'voitrans-e0e3d', projectId: 'voitrans',
storageBucket: 'voitrans-e0e3d.firebasestorage.app', storageBucket: 'voitrans.firebasestorage.app',
androidClientId: '907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com', iosBundleId: 'com.saitong.voitrans',
iosClientId: '907754492821-ej6j6pfto66jfhpj47b9bjs9amvo9dde.apps.googleusercontent.com',
iosBundleId: 'com.example.client',
); );
static const FirebaseOptions macos = FirebaseOptions( static const FirebaseOptions macos = FirebaseOptions(
apiKey: 'AIzaSyAvyBQcOXuO_q851vevqZIufsPRTMCe808', apiKey: 'AIzaSyBEQPL-2Qh6fERxrxLP9Pzcm95mTmTpBxE',
appId: '1:907754492821:ios:8c1d7d1b583aec22145c9c', appId: '1:733281995296:ios:6a8351691312100bd70a45',
messagingSenderId: '907754492821', messagingSenderId: '733281995296',
projectId: 'voitrans-e0e3d', projectId: 'voitrans',
storageBucket: 'voitrans-e0e3d.firebasestorage.app', storageBucket: 'voitrans.firebasestorage.app',
androidClientId: '907754492821-9jakqvathu61e6b8g95i41ssi7o4dnka.apps.googleusercontent.com', iosBundleId: 'com.saitong.voitrans',
iosClientId: '907754492821-ej6j6pfto66jfhpj47b9bjs9amvo9dde.apps.googleusercontent.com',
iosBundleId: 'com.example.client',
); );
static const FirebaseOptions windows = FirebaseOptions( static const FirebaseOptions windows = FirebaseOptions(

Loading…
Cancel
Save