Skip to content

Commit

Permalink
Adding production flavor for MoH CIV (#371)
Browse files Browse the repository at this point in the history
* Adding production flavor for MoH CIV

* Fix ANDROID_KEYSTORE_PATH

* Update app icons and name
  • Loading branch information
paulpascal authored Sep 12, 2024
1 parent ea784f6 commit 9defed5
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,33 @@ jobs:
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_GANDAKI_NE }}


- name: Unpack secrets moh_civ
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_CIV }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_CIV }}
run: make org=moh_civ keydec

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

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


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

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

moh_civ_uat {
dimension = 'brand'
applicationId = 'org.medicmobile.webapp.mobile.moh_civ_uat'
Expand Down
Binary file added secrets/secrets-moh_civ.tar.gz.enc
Binary file not shown.
7 changes: 7 additions & 0 deletions src/moh_civ/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_civ/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/moh_civ/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/moh_civ/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/moh_civ/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/moh_civ/res/mipmap-xxxhdpi/ic_launcher.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_civ/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">SanteComCIV</string>
<string name="app_host">moh-civ.app.medicmobile.org</string>
</resources>

0 comments on commit 9defed5

Please sign in to comment.