Skip to content
Branch: master
Find file History
raduachim chore: 🤖codeclimate (#122)
* chore: 🤖 add codeclimate to travis config

* chore: 🤖 run unit tests in travis

* chore: 🤖 lerna travis codeclimate

* chore: 🤖 pass coverage to all test commands

* chore: 🤖 push operator .env for unit tests

* chore: 🤖 ignore coverage files for app

* chore: 🤖 traverse folders for codeclimate

* chore: 🤖 improve codeclimate folder traverse

* chore: 🤖 delete accidentally added folder
Latest commit a4de326 Jul 16, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
__e2e__ Refactor: write/read data (#112) Jul 15, 2019
android fix: 🐛 Android build issue with react-native-camera (#111) Jul 3, 2019
assets feat: add login functionality (#57) Apr 2, 2019
ios refactor: permissions (#104) Jun 27, 2019
lib Refactor: write/read data (#112) Jul 15, 2019
.babelrc feat: add login functionality (#57) Apr 2, 2019
.buckconfig Rearrange and rename folders Feb 12, 2019
.dockerignore Create .dockerignore Mar 19, 2019
.eslintignore Resolve merge conflicts, fix tests and linting Feb 27, 2019
.eslintrc.json
.gitattributes
.gitignore chore: 🤖codeclimate (#122) Jul 16, 2019
.nvmrc chore(app): add Testflight support (#35) Mar 18, 2019
.prettierrc refactor: permissions (#104) Jun 27, 2019
.watchmanconfig Rearrange and rename folders Feb 12, 2019
Dockerfile Update Dockerfile Mar 19, 2019
README.md fix: 🐛 Android build issue with react-native-camera (#111) Jul 3, 2019
app.json chore: rename app to Egendata (#105) Jun 4, 2019
babel.config.js feat(app): ui-improvements (#15) Mar 12, 2019
index.js feat(app): ui-improvements (#15) Mar 12, 2019
jest.config.js fix: 🐛 Android build issue with react-native-camera (#111) Jul 3, 2019
jest.setup.js fix: 🐛 Android build issue with react-native-camera (#111) Jul 3, 2019
metro.config.js
package-lock.json chore(deps): bump lodash from 4.17.11 to 4.17.14 in /app (#117) Jul 16, 2019
package.json Refactor: write/read data (#112) Jul 15, 2019
rn-cli.config.js Rearrange and rename folders Feb 12, 2019

README.md

Egendata-app

An example app for managing consents and viewing data

Prerequisites

OS X

  • Install Android Studio
  • Install Watchman brew install watchman
  • Install React Native cli npm install -g react-native-cli

Linux and Android

Config

  • Create a .env in project root with:
DROPBOX_KEY=tsw50ay5z1j0k0k
OPERATOR_URL=http://192.168.110.130:3000/api

(or whatever adress you are running the operator on)

  • Run
react-native link

Run

For Android:

  • Start the device that will run the app from Android Studio. Virtual devices are under Tools->AVD Manager (if you do not see AVD Manager, go to Help and use Find action)

Run apps:

npm run ios
npm run android

If the app doesn't open automatically go into apps and find MyData

React debug menu available on ios with ⌘d and on android with ⌘m / ctrl+m

Releasing Betas

Install fastlane

# Using RubyGems
sudo gem install fastlane -NV

or

# Alternatively using Homebrew
brew cask install fastlane

iOS (Testflight)

Prerequisites:

  1. Install the latest Xcode command line tools:

xcode-select --install

  1. Certificates
  • Add a file name "Appfile" within ios/fastlane. For contents, see LastPass.
  • Download and open the matching certificates and provisioning-profiles from the Apple Developer Potal. For Signing (Debug) use "Egendata iOS", for Signing (Release) use "Egendata iOS Distribution Profile".
  1. Release

NOTE: Remember to change .env-file (correct OPERATOR_URL etc.) before doing the steps below

cd ios
fastlane beta

Android (Google Play)

NOTE: Remember to change .env-file (correct OPERATOR_URL etc.) before doing the steps below

  1. Download the Google Play JSON-file (it's in LastPass)
  • Place the .json-file somewhere, you'll need to point to it from android/fastlane/Appfile json_key_file("/path/to/egendata_google_play.json")
  • Place the release.keystore in android/app
  • Place gradle.properties in android
cd android
fastlane beta
You can’t perform that action at this time.