MOSIP citizen app.
Be sure to have the following build tools installed before proceeding:
# Generate and use Debug keystore for development and testing purposes
keytool \
-genkey -v \
-storetype PKCS12 \
-keyalg RSA \
-keysize 2048 \
-validity 10000 \
-storepass 'android' \
-keypass 'android' \
-alias androiddebugkey \
-keystore android/app/debug.keystore \
-dname "CN=io.mosip.residentapp,OU=,O=,L=,S=,C=US"
# Generate and use Release keystore for Publishing to Play store
keytool \
-genkey -v \
-storetype PKCS12 \
-keyalg RSA \
-keysize 2048 \
-validity 10000 \
-storepass '<USE-YOUR-RELEASE-PASSWORD-HERE>' \
-keypass '<USE-YOUR-RELEASE-PASSWORD-HERE>' \
-alias androidreleasekey \
-keystore android/app/release.keystore \
-dname "CN=io.mosip.residentapp,OU=,O=,L=,S=,C=US"
Create a .env.local
file using .env
as your template:
MIMOTO_HOST=
And android/local.properties
:
More info here: Setup Google Nearby Messages in React
# install all dependencies
npm install
# run Inji Newlogic directly to connected emulator or device (Default)
npm run android:newlogic
# run Inji Mosip directly to connected emulator or device
npm run android:mosip
# run Inji Philippines directly to connected emulator or device
npm run android:ph
# install all dependencies
npm install
npx pod-install
# run Metro bundler in the background
npm start
# run Inji app directly to a connected device
npm run ios -- --device
The app is available in this repository's frontend/android
directory. Open this directory in Android Studio (version 4.1 and above) and the app can be built and run from there.
More info here: Build your app using Android Studio
You need Android SDK CLI to build APK.
# 1. Install dependencies
npm install
# 2. Setup the environment variables for the keystore
# Debug keystore
export DEBUG_KEYSTORE_ALIAS=androiddebugkey
export DEBUG_KEYSTORE_PASSWORD=android
# Release keystore
export RELEASE_KEYSTORE_ALIAS=androidreleasekey
export RELEASE_KEYSTORE_PASSWORD=<USE-YOUR-RELEASE-PASSWORD-HERE>
# https://hostname/residentmobileapp is the Mimoto service url
export BACKEND_SERVICE_URL=https://hostname/residentmobileapp
# Use one of following command to build the flavor you need.
# Build for Mosip Philippines test
npm run build:android:ph
# Build for Newlogic test
npm run build:android:newlogic
# Build for MOSIP test
npm run build:android:mosip
More info here: Build your app from the command line
npm install
npx pod-install
ios/
directory in XCodeDon't forget to bump the version number when creating an archive
Open the Product menu and from there click Archive
Once done you can follow the dialog wizard to distribute the app to TestFlight
More info here:
Device File Explorer
button. Click on it and select you phone.data -> data -> io.mosip.residentapp ->databases
. You will find a file named RKStorage
in it. Download it.Browse Data
button and select catalystLocalStorage
table. Now you should be able to view the entire DB of Inji.Credits listed here
You've successfully run and modified your React Native App. :partying_face:
If you can't get this to work, see the Troubleshooting page.
To learn more about React Native, take a look at the following resources:
@facebook/react-native
- the Open Source; GitHub repository for React Native.