Skip to content

Mobile client reference implementation for DAF

License

Notifications You must be signed in to change notification settings

Muhammad-Altabba/daf-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI codecov

Daf mobile

Daf mobile is a reference implementation for Daf framework and also the source code for uPort Open mobile app. uPort Open mobile app along with Daf will replace the current uPort app and legacy architecture. Full documentation coming soon.

Setup

Longer - Contributors (iOS)

If you will be contributing to this project you will need to install bundler to manage ruby gems so the versions installed in the project stay consistent with our CI

Install Bundler (You do not need to be in the project directory for this command)

$ gem install bundler

From the root of the project directory run:

$ bundle install

This installs cocopods and fastlane into your project. From here we will always use the local version. The Gems are shared accross both iOS and Android so no need to install twice.

To install pods use:

$ yarn
$ cd ios && bundle exec pod install

Quick - Non Contributors (iOS)

You can safely install pods directly without bundler. You will need to have cocopods installed globally on your machine.

$ yarn
$ cd ios && pod install

Running locally

yarn start

in another terminal

$ react-native run-ios OR
$ react-native run-android

Environment variables

React-native-config is being used for environment variables

Add variables to .env. You may want to replace your .env file during build time.

TGE_URI=https://custom.my-tgserver.com
TGE_WS_URI=wss://custom.my-tgserver.com

In code:

import Config from 'react-native-config'

console.log(Config.ENV) // dev

To use a different env file set ENVFILE variable:

$ ENVFILE=.env.production react-native run-android

Sentry

Sentry is set up. Add the correct configs to .env