feat: Add Codemagic environment variables and update Firebase configurations for multi-environment support

This commit is contained in:
Achintha Isuru
2025-11-18 12:16:42 -05:00
parent fbb33d025a
commit 9eacb8639e
6 changed files with 214 additions and 10 deletions

View File

@@ -5,6 +5,42 @@
"storage_bucket": "krow-workforce-dev.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:933560802882:android:edcddb83ea4bbb517757db",
"android_client_info": {
"package_name": "com.krow.app.business.dev"
}
},
"oauth_client": [
{
"client_id": "933560802882-grp98a1v7amflnnup68vh01tj06eaem1.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDBYhflhK6DThKnS7RM-9raKdvyKzLUjY4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "933560802882-grp98a1v7amflnnup68vh01tj06eaem1.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "933560802882-ml2526jqnnsteent4i9li50c00hisoge.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.krow.app.business.dev"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:933560802882:android:f4587798877cbb917757db",
@@ -31,10 +67,10 @@
"client_type": 3
},
{
"client_id": "933560802882-qgbq6m04moicvkff2b3i6p9agu7i4gou.apps.googleusercontent.com",
"client_id": "933560802882-ml2526jqnnsteent4i9li50c00hisoge.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.krow.app.dev"
"bundle_id": "com.krow.app.business.dev"
}
}
]

View File

@@ -5,6 +5,25 @@
"storage_bucket": "krow-workforce-staging.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1032971403708:android:d35f6d13a9e03bcb356bb9",
"android_client_info": {
"package_name": "com.krow.app.business.staging"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAZ4dOatvf3ZBt4qnbSlIvJ51bblHaRsRw"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1032971403708:android:87edb39679f806ab356bb9",

View File

@@ -32,12 +32,42 @@
"uploadDebugSymbols": false,
"fileOutput": "ios/Runner/GoogleService-Info.plist"
},
"targets": {
"Runner": {
"buildConfigurations": {
"Debug-dev": {
"projectId": "krow-workforce-dev",
"appId": "1:1032971403708:ios:1d9b09307e6f3983356bb9",
"appId": "1:933560802882:ios:07becdd41ac6ca627757db",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/dev/GoogleService-Info.plist"
},
"Profile-dev": {
"projectId": "krow-workforce-dev",
"appId": "1:933560802882:ios:07becdd41ac6ca627757db",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/dev/GoogleService-Info.plist"
},
"Release-dev": {
"projectId": "krow-workforce-dev",
"appId": "1:933560802882:ios:07becdd41ac6ca627757db",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/dev/GoogleService-Info.plist"
},
"Debug-staging": {
"projectId": "krow-workforce-staging",
"appId": "1:1032971403708:ios:1d9b09307e6f3983356bb9",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/staging/GoogleService-Info.plist"
},
"Profile-staging": {
"projectId": "krow-workforce-staging",
"appId": "1:1032971403708:ios:1d9b09307e6f3983356bb9",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/staging/GoogleService-Info.plist"
},
"Release-staging": {
"projectId": "krow-workforce-staging",
"appId": "1:1032971403708:ios:1d9b09307e6f3983356bb9",
"uploadDebugSymbols": false,
"fileOutput": "ios/flavors/staging/GoogleService-Info.plist"
}
}
},

View File

@@ -249,6 +249,7 @@
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
924B93AB74D97EF4B42824EC /* [CP] Embed Pods Frameworks */,
8A3E049698DB74713226DAC2 /* [CP] Copy Pods Resources */,
CA84EF6F10FA3C39D36D57BC /* FlutterFire: "flutterfire bundle-service-file" */,
);
buildRules = (
);
@@ -456,6 +457,24 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
};
CA84EF6F10FA3C39D36D57BC /* FlutterFire: "flutterfire bundle-service-file" */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "FlutterFire: \"flutterfire bundle-service-file\"";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\n#!/bin/bash\nPATH=\"${PATH}:$FLUTTER_ROOT/bin:${PUB_CACHE}/bin:$HOME/.pub-cache/bin\"\nflutterfire bundle-service-file --plist-destination=\"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\" --build-configuration=${CONFIGURATION} --platform=ios --apple-project-path=\"${SRCROOT}\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */