Skip to content

Commit a4c2f23

Browse files
refactor: Final Clean-up (#2843)
1 parent 955f75d commit a4c2f23

24 files changed

+118
-46
lines changed

.github/workflows/android-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
release_type: ${{ inputs.release_type }}
7979
target_branch: ${{ inputs.target_branch }}
80-
android_package_name: 'androidApp' # <-- Change this to your android package name
80+
android_package_name: 'cmp-android' # <-- Change this to your android package name
8181
tester_groups: 'mifos-mobile-apps' # <-- Change this to your Firebase tester group
8282
secrets:
8383
original_keystore_file: ${{ secrets.ORIGINAL_KEYSTORE_FILE }}

.github/workflows/pr-check-kmp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ name: PR Checks for KMP
6767
# Trigger conditions for the workflow
6868
on:
6969
push:
70-
branches: [ kmp-impl ] # Runs on pushes to dev branch
70+
branches: [ development ] # Runs on pushes to dev branch
7171
pull_request:
72-
branches: [ kmp-impl ] # Runs on pushes to dev branch
72+
branches: [ development ] # Runs on pushes to dev branch
7373

7474
# Concurrency settings to prevent multiple simultaneous workflow runs
7575
concurrency:
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# GitHub Actions Workflow for Play Store Release Promotion
2+
#
3+
# PURPOSE:
4+
# This workflow automates the process of promoting a beta release
5+
# to the production track on Google Play Store.
6+
#
7+
# PREREQUISITES:
8+
# 1. Fastlane setup with Android deployment configurations
9+
# 2. Configured Fastlane lanes:
10+
# - `promote_to_production`: Handles beta to production promotion
11+
#
12+
# REQUIRED CONFIGURATION:
13+
# - Secrets:
14+
# PLAYSTORECREDS: Google Play Store service account JSON credentials
15+
#
16+
# INPUTS:
17+
# - android_package_name: Name of the Android project module
18+
# (REQUIRED, must match your project's module structure)
19+
#
20+
# WORKFLOW TRIGGERS:
21+
# - Can be called manually or triggered by other workflows
22+
# - Typically used after beta testing and validation
23+
#
24+
# DEPLOYMENT PROCESS:
25+
# 1. Checks out repository code
26+
# 2. Sets up Ruby and Fastlane environment
27+
# 3. Inflates Play Store credentials
28+
# 4. Runs Fastlane lane to promote beta to production
29+
#
30+
# IMPORTANT NOTES:
31+
# - Requires proper Fastlane configuration in your project
32+
# - Ensures consistent and automated Play Store deployments
33+
# - Configurable retry mechanism for upload stability
34+
#
35+
# RECOMMENDED FASTLANE LANE IMPLEMENTATION:
36+
# ```ruby
37+
# lane :promote_to_production do
38+
# upload_to_play_store(
39+
# track: 'beta',
40+
# track_promote_to: 'production',
41+
# json_key: './playStorePublishServiceCredentialsFile.json'
42+
# )
43+
# end
44+
# ```
45+
46+
# https://github.com/openMF/mifos-mobile-github-actions/blob/main/.github/workflows/promote-to-production.yaml
47+
48+
# ##############################################################################
49+
# DON'T EDIT THIS FILE UNLESS NECESSARY #
50+
# ##############################################################################
51+
52+
name: Promote Release to Play Store
53+
54+
# Workflow triggers:
55+
# 1. Manual trigger with option to publish to Play Store
56+
# 2. Automatic trigger when a GitHub release is published
57+
on:
58+
workflow_dispatch:
59+
release:
60+
types: [ released ]
61+
62+
concurrency:
63+
group: "production-deploy"
64+
cancel-in-progress: false
65+
66+
permissions:
67+
contents: write
68+
69+
jobs:
70+
# Job to promote app from beta to production in Play Store
71+
play_promote_production:
72+
name: Promote Beta to Production Play Store
73+
uses: openMF/mifos-x-actionhub/.github/.github/workflows/promote-to-production.yaml@main
74+
secrets:
75+
playstore_creds: ${{ secrets.PLAYSTORECREDS }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tag Weekly Release
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 4 * * 0'
7+
jobs:
8+
tag:
9+
name: Tag Weekly Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4.2.2
18+
with:
19+
distribution: 'temurin'
20+
java-version: '17'
21+
22+
- name: Tag Weekly Release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.TAG_PUSH_TOKEN }}
25+
run: ./gradlew :reckonTagPush -Preckon.stage=final
26+
27+
- name: Trigger Workflow
28+
uses: actions/github-script@v7
29+
with:
30+
script: |
31+
github.rest.actions.createWorkflowDispatch({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
workflow_id: 'android-release.yml',
35+
ref: 'development',
36+
inputs: {
37+
"release_type": "beta",
38+
},
39+
})

.github/workflows/upload-demo-app-on-firebase-kmp.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
pull_request:
1313
types: [ labeled ]
1414
branches:
15-
- 'kmp-impl'
15+
- 'development'
1616

1717
concurrency:
1818
group: firebase-${{ github.ref }}
@@ -26,7 +26,6 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828
with:
29-
ref: kmp-impl
3029
fetch-depth: 0
3130

3231
- name: ☁️ Deploy Android App on Firebase
-89.6 KB
Binary file not shown.

androidApp/src/demo/res/mipmap-anydpi-v26/ic_launcher.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

androidApp/src/demo/res/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.
-2.51 KB
Binary file not shown.
-5.19 KB
Binary file not shown.

0 commit comments

Comments
 (0)