Skip to content

fix: resolve Firebase App Distribution failure in KMP template#55

Merged
therajanmaurya merged 1 commit intoopenMF:devfrom
HekmatullahAmin:KMPPT-26
Apr 10, 2025
Merged

fix: resolve Firebase App Distribution failure in KMP template#55
therajanmaurya merged 1 commit intoopenMF:devfrom
HekmatullahAmin:KMPPT-26

Conversation

@HekmatullahAmin
Copy link
Member

@HekmatullahAmin HekmatullahAmin commented Apr 10, 2025

@HekmatullahAmin
Copy link
Member Author

HekmatullahAmin commented Apr 10, 2025

@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.

Screenshot 2025-04-10 at 17 05 51

@therajanmaurya therajanmaurya disabled auto-merge April 10, 2025 16:22
@therajanmaurya therajanmaurya merged commit 9132215 into openMF:dev Apr 10, 2025
"firebase_url": "firebase_url",
"project_id": "project_id",
"storage_bucket": "storage_bucket"
"project_number": "728434912738",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@niyajali
Copy link
Collaborator

@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.

@HekmatullahAmin
Copy link
Member Author

@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

@HekmatullahAmin HekmatullahAmin deleted the KMPPT-26 branch April 19, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants