fix: resolve Firebase App Distribution failure in KMP template#55
fix: resolve Firebase App Distribution failure in KMP template#55therajanmaurya merged 1 commit intoopenMF:devfrom
Conversation
|
@therajanmaurya , @niyajali Firebase App Distribution is updated now. The issue was due to a mismatched applicationId (cmp.android.app vs. org.mifos.mobile) and an invalid or missing Firebase service credentials file. These have been corrected and the setup now works locally. To verify if CI is fully functional, this needs to be merged and the workflow run. We’ll monitor and make any necessary adjustments post-merge.
|
| "firebase_url": "firebase_url", | ||
| "project_id": "project_id", | ||
| "storage_bucket": "storage_bucket" | ||
| "project_number": "728434912738", |
There was a problem hiding this comment.
@HekmatullahAmin The inclusion of actual credentials was unnecessary. Only the package name is required for it to function correctly. We intentionally avoid exposing sensitive credentials publicly, as the actual file will be overridden during the specific CI run.
| "mobilesdk_app_id": "1:728434912738:android:3902eb3363b0938f1a1dbb", | ||
| "android_client_info": { | ||
| "package_name": "org.mifos" | ||
| "package_name": "cmp.android.app" |
There was a problem hiding this comment.
Simply add the prod/demo flavor's package name will suffice and keep the existing Mifos mobile packages. Usually when you register the new app in Firebase, the google-services.json file will automatically update to include the new package name while preserving the existing configurations.
|
|
||
| FIREBASE_CONFIG = { | ||
| firebase_prod_app_id: "1:728434912738:android:d853a78f14af0c381a1dbb", | ||
| firebase_prod_app_id: "1:728434912738:android:3902eb3363b0938f1a1dbb", |
There was a problem hiding this comment.
This is sufficient to build and deploy the project. But we've to encode and add the actual google services file on GitHub secrets.
Before we had a plan to publish and deploy apps to Playstore and Firebase and but due to some other work we've not registered our app and update this file.
|
@HekmatullahAmin Send a quick pr to remove the actual credentials from google services file. And encode the actual file to base64 and update the GitHub secrets. |
Done |

KMPPT-26