feat: configure Firebase and signing for multiple environments in mobile app

This commit is contained in:
Achintha Isuru
2025-11-18 17:52:23 -05:00
parent ef35554635
commit c6ccd1e2e3
16 changed files with 443 additions and 59 deletions

View File

@@ -1 +1,64 @@
{"flutter":{"platforms":{"android":{"default":{"projectId":"krow-staging","appId":"1:14482748607:android:85b147490ff76b6924820a","fileOutput":"android/app/google-services.json"},"buildConfigurations":{"src/dev":{"projectId":"krow-workforce-dev","appId":"1:933560802882:android:edcddb83ea4bbb517757db","fileOutput":"android/app/src/dev/google-services.json"},"src/staging":{"projectId":"krow-workforce-staging","appId":"1:1032971403708:android:d35f6d13a9e03bcb356bb9","fileOutput":"android/app/src/staging/google-services.json"}}},"ios":{"default":{"projectId":"krow-staging","appId":"1:14482748607:ios:229a7ce2d64cb09f24820a","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"},"targets":{"Runner":{"projectId":"krow-workforce-staging","appId":"1:1032971403708:ios:b1a21a7337a268b3356bb9","uploadDebugSymbols":false,"fileOutput":"ios/flavors/staging/GoogleService-Info.plist"}}},"dart":{"lib/firebase_options.dart":{"projectId":"krow-staging","configurations":{"android":"1:14482748607:android:85b147490ff76b6924820a","ios":"1:14482748607:ios:229a7ce2d64cb09f24820a"}},"lib/firebase_options_dev.dart":{"projectId":"krow-workforce-dev","configurations":{"android":"1:933560802882:android:edcddb83ea4bbb517757db","ios":"1:933560802882:ios:7f0632ecbeff8f027757db"}},"lib/firebase_options_staging.dart":{"projectId":"krow-workforce-staging","configurations":{"android":"1:1032971403708:android:d35f6d13a9e03bcb356bb9","ios":"1:1032971403708:ios:b1a21a7337a268b3356bb9"}}}}}}
{
"flutter": {
"platforms": {
"android": {
"default": {
"projectId": "krow-staging",
"appId": "1:14482748607:android:85b147490ff76b6924820a",
"fileOutput": "android/app/google-services.json"
},
"buildConfigurations": {
"src/dev": {
"projectId": "krow-workforce-dev",
"appId": "1:933560802882:android:edcddb83ea4bbb517757db",
"fileOutput": "android/app/src/dev/google-services.json"
},
"src/staging": {
"projectId": "krow-workforce-staging",
"appId": "1:1032971403708:android:d35f6d13a9e03bcb356bb9",
"fileOutput": "android/app/src/staging/google-services.json"
}
}
},
"ios": {
"default": {
"projectId": "krow-staging",
"appId": "1:14482748607:ios:229a7ce2d64cb09f24820a",
"uploadDebugSymbols": false,
"fileOutput": "ios/Runner/GoogleService-Info.plist"
},
"targets": {
"Runner": {
"projectId": "krow-workforce-staging",
"appId": "1:1032971403708:ios:b1a21a7337a268b3356bb9",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/staging/GoogleService-Info.plist"
}
}
},
"dart": {
"lib/firebase_options.dart": {
"projectId": "krow-staging",
"configurations": {
"android": "1:14482748607:android:85b147490ff76b6924820a",
"ios": "1:14482748607:ios:229a7ce2d64cb09f24820a"
}
},
"lib/firebase_options_dev.dart": {
"projectId": "krow-workforce-dev",
"configurations": {
"android": "1:933560802882:android:edcddb83ea4bbb517757db",
"ios": "1:933560802882:ios:7f0632ecbeff8f027757db"
}
},
"lib/firebase_options_staging.dart": {
"projectId": "krow-workforce-staging",
"configurations": {
"android": "1:1032971403708:android:d35f6d13a9e03bcb356bb9",
"ios": "1:1032971403708:ios:b1a21a7337a268b3356bb9"
}
}
}
}
}
}