PoojaBabusing d3b607206c INJIMOB-898 Remove Metro warnings (#1329)
* [INJIMOB-898] remove telemetry dependency from crypto utils

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-898] remove vcMetadata dependency from utils file

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-898] move common props key to constants

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-898] remove vcUtils dependency from vcVerification

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove profileIcon dependency from svg

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove vcItemFeild dependecy from vcUtils

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove vc dependecy from esignetVcItem and existing vcItem

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove storage dependency from api.ts

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove store dependency from storage

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove commom props dependency from api.ts

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] remove main.ts dependency from scanLayout

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] move VcItemConatinerProfileImage to different component

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] throw error when error is ENOENT and spell check

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] rename types to routeTypes and edit imports

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-898] move to idle state on tamperedVCs state

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

---------

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Signed-off-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
2024-03-07 09:19:30 +05:30
2022-02-15 10:26:25 +07:00
2022-05-11 18:40:05 +08:00
2023-12-20 10:17:46 +05:30
2022-02-28 13:39:10 +08:00
2022-02-15 10:26:25 +07:00

inji

MOSIP citizen app.

Dependencies

Be sure to have the following build tools installed before proceeding:

Generate keystore for APK signing

 # 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"

Running the app

Prepare environment

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

Android

# 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

iOS

# 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

Developing Android

Build via Android Studio

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

Build via command line

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

Developing iOS

Build for TestFlight

  1. Install all dependencies
    • npm install
    • npx pod-install
  2. Open the ios/ directory in XCode
  3. Set the build target to "Any iOS device (arm64)"
  4. Use an Apple Developer account that can provision builds for release/TestFlight

Screen Shot 2022-09-01 at 10 34 45 AM

  1. Don't forget to bump the version number when creating an archive

  2. Open the Product menu and from there click Archive

  3. Once done you can follow the dialog wizard to distribute the app to TestFlight

Screen Shot 2022-09-01 at 1 08 34 PM

  1. Go to your App Store Connect dashboard to manage the newly-uploaded build.

More info here:

View the complete DB :

  1. Connect your phone to the laptop and open Android Studio.
  2. On the bottom right vertical tab you will find a Device File Explorer button. Click on it and select you phone.
  3. Navigate to data -> data -> io.mosip.residentapp ->databases. You will find a file named RKStorage in it. Download it.
  4. Download DB Browser for SQLite .
  5. Open the file in this application. Click on Browse Data button and select catalystLocalStorage table. Now you should be able to view the entire DB of Inji.

Credits

Credits listed here

Congratulations! 🎉

You've successfully run and modified your React Native App. 🥳

Now what?

Troubleshooting

If you can't get this to work, see the Troubleshooting page.

Learn More

To learn more about React Native, take a look at the following resources:

Description
No description provided
Readme MIT 299 MiB
Languages
TypeScript 86.6%
Kotlin 5.2%
Swift 2.7%
Java 2.6%
JavaScript 1.4%
Other 1.4%