Shwaas Android App
Shwaas is a tool that can be used by semiliterate field workers in identifying high risk conditions that require a need to visit a medical care facility.
Shwaas was originally developed during Covid to identify those who are at risk of pneumonia. We now plan to expand the scope of Shwaas to include other ailments as well. Details to follow.
Some details to know before development
- Uses plain redux
- Uses Java version specified in the .java-version file. Use jenv if you want to automatically switch versions
- All questions are in the domain directory
- Stories in the storybook directory. Link here
- Uses React Native Paper for components
- Use eslint cleanup in Intellij if you find too many red lines. You might need to set up node to do this.
Development
- Clone this repository
- Start an emulator
- yarn
- See storybook section below to figure out what you are running
- yarn run android
- Optionally, you might need yarn start to run the packager
Storybook
App.js has two lines in the end
export default codePush(App);
export {default} from './storybook';
If you want to run the app, uncomment the first line. Else uncomment the second line.
Links
Design
Trello
Documentation
Release apk to staging
- Get values for ~/.gradle/gradle.properties and shwaas.keystore (android/app)
- Change value of CodePushDeploymentKey in android/app/src/main/values/strings.xml to production
make create-bundle
- Upload bundle
Release apk to production
- Update versionCode and versionName in android/app/build.gradle
- Get values for ~/.gradle/gradle.properties and shwaas.keystore (put it in android/app) from Keeweb
- Change value of CodePushDeploymentKey in android/app/src/main/values/strings.xml to production
make create-bundle
- Upload bundle
Codepush
Staging - make codepush-staging
Production - make codepush-production