Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.2)
aws-partitions (1.1067.0)
aws-sdk-core (3.220.1)
aws-partitions (1.1084.0)
aws-sdk-core (3.222.1)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
jmespath (~> 1, >= 1.6.1)
logger
aws-sdk-kms (1.99.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.182.0)
aws-sdk-s3 (1.183.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -69,7 +70,7 @@ GEM
faraday_middleware (1.2.1)
faraday (~> 1.0)
fastimage (2.4.0)
fastlane (2.227.0)
fastlane (2.227.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -109,7 +110,7 @@ GEM
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-firebase_app_distribution (0.10.0)
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
Expand Down Expand Up @@ -167,6 +168,7 @@ GEM
json (2.10.2)
jwt (2.10.1)
base64
logger (1.7.0)
mini_magick (4.13.2)
mini_mime (1.1.5)
multi_json (1.15.0)
Expand Down Expand Up @@ -217,7 +219,7 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)
xcpretty (0.4.0)
xcpretty (0.4.1)
rouge (~> 3.28.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
Expand Down
266 changes: 245 additions & 21 deletions cmp-android/google-services.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,287 @@
{
"project_info": {
"project_number": "project_number",
"firebase_url": "firebase_url",
"project_id": "project_id",
"storage_bucket": "storage_bucket"
"project_number": "728434912738",
Copy link
Copy Markdown
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.

"project_id": "mifos-mobile-apps",
"storage_bucket": "mifos-mobile-apps.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "mobilesdk_app_id",
"mobilesdk_app_id": "1:728434912738:android:3902eb3363b0938f1a1dbb",
"android_client_info": {
"package_name": "org.mifos"
"package_name": "cmp.android.app"
Copy link
Copy Markdown
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.

}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:728434912738:android:ecdb5b96f0e735661a1dbb",
"android_client_info": {
"package_name": "com.mifos.mifosxdroid"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:728434912738:android:53d0930e402622611a1dbb",
"android_client_info": {
"package_name": "com.mifos.mifosxdroid.demo"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:728434912738:android:d853a78f14af0c381a1dbb",
"android_client_info": {
"package_name": "org.mifos.mobile"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "current_key"
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
]
}
},
{
"client_info": {
"mobilesdk_app_id": "mobilesdk_app_id",
"mobilesdk_app_id": "1:728434912738:android:7845cce9777d9cf11a1dbb",
"android_client_info": {
"package_name": "org.mifos.demo.debug"
"package_name": "org.mifos.mobile.demo"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "current_key"
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
]
}
},
{
"client_info": {
"mobilesdk_app_id": "mobilesdk_app_id",
"mobilesdk_app_id": "1:728434912738:android:49282a75468730891a1dbb",
"android_client_info": {
"package_name": "org.mifos.demo"
"package_name": "org.mifos.pisp.android"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "current_key"
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
]
}
},
{
"client_info": {
"mobilesdk_app_id": "mobilesdk_app_id",
"mobilesdk_app_id": "1:728434912738:android:ef7156e455c6a1a41a1dbb",
"android_client_info": {
"package_name": "org.mifos.debug"
"package_name": "org.mifos.pisp.android.debug"
}
},
"oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "current_key"
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:728434912738:android:0490c291986f0a691a1dbb",
"android_client_info": {
"package_name": "org.mifospay"
}
},
"oauth_client": [
{
"client_id": "728434912738-d4hshajpu39bq9m5e55s5d2u5hplh5ie.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.mifospay",
"certificate_hash": "d2fd346d362db97e693cfb13424b82bb94b92b56"
}
},
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:728434912738:android:48ccd9153349f31e1a1dbb",
"android_client_info": {
"package_name": "org.mifospay.demo"
}
},
"oauth_client": [
{
"client_id": "728434912738-qm031urb7aopd1jofq12u3b8snlj2nel.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "org.mifospay.demo",
"certificate_hash": "d2fd346d362db97e693cfb13424b82bb94b92b56"
}
},
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCUz3P8uUExMFcPHa1Ga3DBKhjK5zxNn70"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "728434912738-4sc51o624viccn8oi14f2mi77tljrdns.apps.googleusercontent.com",
"client_type": 3
}
]
}
]
}
}
],
"configuration_version": "1"
}
}
2 changes: 1 addition & 1 deletion fastlane-config/android_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module AndroidConfig
}

FIREBASE_CONFIG = {
firebase_prod_app_id: "1:728434912738:android:d853a78f14af0c381a1dbb",
firebase_prod_app_id: "1:728434912738:android:3902eb3363b0938f1a1dbb",
Copy link
Copy Markdown
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.

firebase_demo_app_id: "1:728434912738:android:8392hjksak9032skja",
firebase_service_creds_file: "secrets/firebaseAppDistributionServiceCredentialsFile.json",
firebase_groups: "kmp-project-template-testers"
Expand Down