Skip to content

PDA MOBILE

pace edited this page May 22, 2020 · 3 revisions

Prerequisites

  • React Native
  • Git
  • Yarn
  • react-native-cli
  • Gradle

Installation

A step by step process to set up PDA-MOBILE, Get the application from the git repository.

https://github.com/Socion-PDA/PDA-MOBILE.git

Install all the packages required to run the application using yarn.

yarn install-all

To run the package server using yarn

yarn start

Configuration

Routing related configuration and service configuration are initialized in src/utils/httpClient/Url.js

Run on Android

Participant

  1. You have to connect hardware device using ADB or run emulator.
  2. Invoke yarn android-participant-debug command.
  3. Open app from Mobile menu

Trainer

  1. You have to connect hardware device using ADB or run emulator.
  2. Invoke yarn android-trainer-debug command.
  3. Open app from Mobile menu

Run on iOS

  1. You have to get Xcode installed on your machine.
  2. Invoke react-native run-ios command.

Android - Generate Signed APK

Participant

Invoke yarn apk-participant command

Trainer

Invoke yarn apk-trainer command

IOS - build

  1. Run this on terminal from root folder "bash ./GenerateIosBuild"
  2. Open xCode
  3. From AppDelegate.m replace "jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];" line to "jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"js bundle"];"
  4. Change schema into Generic IOS Device
  5. Click Product -> Archive
Clone this wiki locally