Skip to content

Commit

Permalink
Adding production flavor for MoH Nepal mHealth program (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: Binod Adhikary <[email protected]>
  • Loading branch information
binokaryg and Binod Adhikary authored Jan 30, 2025
1 parent 9892a48 commit a6dec3a
Show file tree
Hide file tree
Showing 25 changed files with 84 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,31 @@ jobs:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV }}

- name: Unpack secrets moh_nepal_mhealth
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_NEPAL_MHEALTH }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_NEPAL_MHEALTH }}
run: make org=moh_nepal_mhealth keydec

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

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

- name: GitHub release
uses: softprops/action-gh-release@v1
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ android {
dimension = 'brand'
applicationId = 'org.medicmobile.webapp.mobile.safaridoctors_kenya_yha'
}

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

splits {
Expand Down
Binary file added secrets/secrets-moh_nepal_mhealth.tar.gz.enc
Binary file not shown.
7 changes: 7 additions & 0 deletions src/moh_nepal_mhealth/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/moh_nepal_mhealth/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/moh_nepal_mhealth/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>
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 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions src/moh_nepal_mhealth/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">#EAEAEA</color>
</resources>
5 changes: 5 additions & 0 deletions src/moh_nepal_mhealth/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">mHealth Nepal</string>
<bool name="allowCustomHosts">false</bool>
</resources>
28 changes: 28 additions & 0 deletions src/moh_nepal_mhealth/res/xml/instances.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<instances xmlns:android="http://schemas.android.com/apk/res/android">
<instance name="Achham">https://achham-ne.app.medicmobile.org</instance>
<instance name="Bajhang">https://bajhang-ne.app.medicmobile.org</instance>
<instance name="Baitadi">https://dho-baitadi.app.medicmobile.org</instance>
<instance name="Bajura">https://dho-bajura-ne.app.medicmobile.org</instance>
<instance name="Banke">https://dpho-banke.app.medicmobile.org</instance>
<instance name="Bhojpur">https://bhojpur-ne.app.medicmobile.org</instance>
<instance name="Bardiya">https://bardiya-ne.app.medicmobile.org</instance>
<instance name="Dadeldhura">https://dho-dadeldhura-ne.app.medicmobile.org</instance>
<instance name="Dhading">https://ohw-dhading.app.medicmobile.org</instance>
<instance name="Dhankuta">https://dhankuta-ne.app.medicmobile.org</instance>
<instance name="Humla">https://humla-ne.app.medicmobile.org</instance>
<instance name="Ilam">https://kfn-ilam.app.medicmobile.org</instance>
<instance name="Jajarkot">https://jajarkot-ne.app.medicmobile.org</instance>
<instance name="Kailali">https://kailali-ne.app.medicmobile.org</instance>
<instance name="Kalikot">https://kalikot-ne.app.medicmobile.org</instance>
<instance name="Kanchanpur">https://dpho-kanchanpur.app.medicmobile.org</instance>
<instance name="Morang">https://morang-ne.app.medicmobile.org</instance>
<instance name="Panchthar">https://panchthar-ne.app.medicmobile.org</instance>
<instance name="Pyuthan">https://dpho-pyuthan-ne.app.medicmobile.org</instance>
<instance name="Rasuwa">https://dho-rasuwa-ne.app.medicmobile.org</instance>
<instance name="Sindhuli">https://care-sindhuli.app.medicmobile.org</instance>
<instance name="Sindhupalchowk">https://dho-sindhupalchowk-ne.app.medicmobile.org</instance>
<instance name="Salyan">https://salyan-ne.app.medicmobile.org</instance>
<instance name="Sankhuwasabha">https://sankhuwashabha-ne.app.medicmobile.org</instance>
<instance name="Sunsari">https://dho-sunsari-ne.app.medicmobile.org</instance>
</instances>

0 comments on commit a6dec3a

Please sign in to comment.