Skip to content

PDA MOBILE

Pradeep.Biradar edited this page Nov 5, 2020 · 6 revisions

Prerequisites

  • React Native
  • Git
  • Yarn
  • react-native-cli
  • Gradle-5.1.1 (or newer)
  • cocoapods

Installation

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

git clone https://github.com/PDA-Open-Source/PDA-MOBILE.git
cd PDA-MOBILE

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

yarn install-all

for IOS

cd ios
pod install

Initial Setup

Modify PDA-MOBILE-master/src/util/AesUtil.js to update encryption values

let iv="" //In case to change the value refer PDA-WEB wiki
let salt="" //In case to change the value refer PDA-WEB wiki
let passPhrase="" //In case to change the value refer PDA-WEB wiki
To run the package server using yarn

To run the package server using yarn

yarn start

Configuration

Routing related configuration and Base URL configuration is initialized in src/utils/httpClient/Url.js

Run on Android

Open the emulator and run the project from the android studio.

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

Update the gradle.properties in the android folder

MYAPP_RELEASE_STORE_FILE=
MYAPP_RELEASE_KEY_ALIAS=
MYAPP_RELEASE_STORE_PASSWORD=
MYAPP_RELEASE_KEY_PASSWORD=

Refer the link for more information to create keys link1 link2

Participant

Invoke yarn android:participant:release command

Trainer

Invoke yarn android:trainer:release command

IOS - build

open project in Xcode and then open PDA-MOBILE.xcworkspace and build project using cmd+b

Select a scheme to build a trainer or a participant Application.