Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add digital payments flavour #331

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,32 @@ jobs:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_NIGER_CHW }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_NIGER_CHW }}

- name: Unpack secrets digital payments
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_DIGITAL_PAYMENTS }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_DIGITAL_PAYMENTS }}
run: make org=digital_payments keydec

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

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

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

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

splits {
Expand Down
Binary file added secrets/secrets-digital_payments.tar.gz.enc
Binary file not shown.
8 changes: 8 additions & 0 deletions src/digital_payments/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>
5 changes: 5 additions & 0 deletions src/digital_payments/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">Digital Payments Zanzibar</string>
<string name="app_host">digital-payments-zanzibar.dev.medicmobile.org</string>
</resources>
Loading