Skip to content

Commit

Permalink
Add a new flavor: lumbini_chis (#389)
Browse files Browse the repository at this point in the history
* Add a new flavor: lumbini_chis
---------

Co-authored-by: Binod Adhikary <[email protected]>
  • Loading branch information
binokaryg and Binod Adhikary authored Jan 31, 2025
1 parent a6dec3a commit 0d24284
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,32 @@ jobs:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_NEPAL_MHEALTH }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_NEPAL_MHEALTH }}

- name: Unpack secrets LUMBINI_CHIS
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_LUMBINI_CHIS }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_LUMBINI_CHIS }}
run: make org=LUMBINI_CHIS keydec

- name: Assemble LUMBINI_CHIS
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "LUMBINI_CHIS" }'
env:
ANDROID_KEYSTORE_PATH: LUMBINI_CHIS.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_CHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_CHIS }}

- name: Bundle LUMBINI_CHIS
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "LUMBINI_CHIS" }'
env:
ANDROID_KEYSTORE_PATH: LUMBINI_CHIS.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_CHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_CHIS }}

- name: GitHub release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ android {
dimension = 'brand'
applicationId = 'org.medicmobile.webapp.mobile.moh_nepal_mhealth'
}

lumbini_chis {
dimension = 'brand'
applicationId = 'org.medicmobile.webapp.mobile.lumbini'
}

}

splits {
Expand Down
Binary file added secrets/secrets-lumbini_chis.tar.gz.enc
Binary file not shown.
7 changes: 7 additions & 0 deletions src/lumbini_chis/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />

</manifest>
Binary file added src/lumbini_chis/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/lumbini_chis/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions src/lumbini_chis/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file added src/lumbini_chis/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lumbini_chis/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions src/lumbini_chis/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
5 changes: 5 additions & 0 deletions src/lumbini_chis/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">CHIS Lumbini</string>
<string name="app_host">lumbini-ne.app.medicmobile.org</string>
</resources>

0 comments on commit 0d24284

Please sign in to comment.