Skip to content

Building & Releasing

Sworup Shakya edited this page Nov 14, 2022 · 2 revisions

Building from source

  • Make sure you the Environment variables set correctly.
  • To build mSupply Mobile from source, you will need a signing key from a Sussol insider.
  • Copy or move the release key to the ./android/app directory, e.g. mv my-release-key.keystore ./android/app.
  • Run yarn clean-mac-cache before building.
  • Build the mSupply Mobile APK: yarn build.
  • The mSupply Mobile APK file can be found at android/app/build/outputs/apk/app-release.apk.
  • For more information, see the official React Native documentation for generating signed APKs.

Releasing

  • Bump the version number in package.json to the intended release version before building (if unsure, check with a mSupply Mobile team member!)
  • Follow the steps above to build from source
  • After the build has completed, run yarn upload-bugsnag to upload source maps to BugSnag
  • Create a new release in GitHub (https://github.com/openmsupply/mobile/releases/new)
  • Drag and drop the apps from android/app/build/outputs/apk/release into assets and add release notes as required
Clone this wiki locally