- Install Android SDK
- Clone the repo
- Plug in your phone. Check it's detected with
adb devices
- Execute:
make
(will also push app unto phone)
Refer to https://github.com/medic/medic#testing-locally-with-devices.
To build and deploy APKs for all configured brands:
make branded
To add a new brand:
- add
productFlavors { <new_brand> { ... } }
inbuild.gradle
- add icons, strings etc. in
src/<new_brand>
To release a new version, create a git tag starting with v
, e.g. v1.2.3
, and push this to GitHub. Travis CI will build the release and push the debug APK to https://github.com/medic/medic-android/releases.
To publish to the play store:
-
identify the git tag of the app version you want to build
-
open remote desktop connection to our Jenkins server, windows.dev.medicmobile.org
-
log in to Jenkins on remote desktop (http://localhost:8080)
-
trigger job
medic-android
, supplying the version number/git tag from step 1 as the "VERSION_TO_BUILD" (eg 0.1.93) -
wait for
medic-android
job to complete successfully -
upload the APK to the play store
initial load: upload the .apk file to the APK page in the play store dev console
updates: trigger the job
medic-android-publish
, selecting the version, release track, and branding you wish to publish -
repeat the previous step if you want to publish the app for multiple brands
Copyright 2013-2018 Medic Mobile, Inc. hello@medicmobile.org
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.