Skip to content

Commit 9defed5

Browse files
authored
Adding production flavor for MoH CIV (#371)
* Adding production flavor for MoH CIV * Fix ANDROID_KEYSTORE_PATH * Update app icons and name
1 parent ea784f6 commit 9defed5

File tree

10 files changed

+44
-0
lines changed

10 files changed

+44
-0
lines changed

.github/workflows/publish.yml

+27
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,33 @@ jobs:
576576
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_GANDAKI_NE }}
577577

578578

579+
- name: Unpack secrets moh_civ
580+
env:
581+
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_CIV }}
582+
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_CIV }}
583+
run: make org=moh_civ keydec
584+
585+
- name: Assemble moh_civ
586+
uses: maierj/[email protected]
587+
with:
588+
lane: build
589+
options: '{ "flavor": "moh_civ" }'
590+
env:
591+
ANDROID_KEYSTORE_PATH: moh_civ.keystore
592+
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV }}
593+
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV }}
594+
595+
- name: Bundle moh_civ
596+
uses: maierj/[email protected]
597+
with:
598+
lane: bundle
599+
options: '{ "flavor": "moh_civ" }'
600+
env:
601+
ANDROID_KEYSTORE_PATH: moh_civ.keystore
602+
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV }}
603+
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV }}
604+
605+
579606
- name: GitHub release
580607
uses: softprops/action-gh-release@v1
581608
if: startsWith(github.ref, 'refs/tags/')

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,11 @@ android {
445445
applicationId = 'org.medicmobile.webapp.mobile.gandaki_ne'
446446
}
447447

448+
moh_civ {
449+
dimension = 'brand'
450+
applicationId = 'org.medicmobile.webapp.mobile.moh_civ'
451+
}
452+
448453
moh_civ_uat {
449454
dimension = 'brand'
450455
applicationId = 'org.medicmobile.webapp.mobile.moh_civ_uat'

secrets/secrets-moh_civ.tar.gz.enc

5.63 KB
Binary file not shown.

src/moh_civ/AndroidManifest.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />
6+
7+
</manifest>
8.44 KB
Loading
4.5 KB
Loading
13.4 KB
Loading
26.8 KB
Loading
44.4 KB
Loading

src/moh_civ/res/values/strings.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name">SanteComCIV</string>
4+
<string name="app_host">moh-civ.app.medicmobile.org</string>
5+
</resources>

0 commit comments

Comments
 (0)