Skip to content

Commit

Permalink
MoH Niger CHW - Generate the APK (#280) (#285)
Browse files Browse the repository at this point in the history
Cherry picked from 77b380d
This commit adds MoH Niger CHW flavor
  • Loading branch information
ernestoteo authored Jun 14, 2022
1 parent b879663 commit d8051e7
Show file tree
Hide file tree
Showing 10 changed files with 44 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 @@ -280,6 +280,32 @@ jobs:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CHT_RCI }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CHT_RCI }}

- name: Unpack secrets moh_niger_chw
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_NIGER_CHW }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_NIGER_CHW }}
run: make org=moh_niger_chw keydec

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

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

- 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 @@ -375,6 +375,11 @@ android {
dimension = 'brand'
applicationId = 'org.medicmobile.webapp.mobile.cht_rci'
}

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

}

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

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

</manifest>
Binary file added src/moh_niger_chw/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_niger_chw/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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_niger_chw/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">RCOM (Relais Communautaire)</string>
<string name="app_host">moh-niger-chw.app.medicmobile.org</string>
</resources>

0 comments on commit d8051e7

Please sign in to comment.