Skip to content

ChildMindInstitute/mindlogger-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MindLogger 0.21.92

Note: v0.1 is deprecated as of June 12, 2019.

This mobile app (Android ≥ 5.0 "Lollipop" and iOS ≥ 10.0 "Whitetail") is intended to build apps for collecting data.

Bitrise Build Status

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system, or visit https://mindlogger.org for instructions to download the demo mobile app.

Widget development

See the widget development guide

Prerequisites

You need to have your own Girder instance running or leave your defaultApiHost set to 'https://api.mindlogger.org/api/v1' in app/config.js.

You need Node ≤10.11.0, npm ≥4.3.0 & ≤6.4.1, yarn ≥1.3.2 and React Native ≥0.49.3 to be installed. For example

npm -v
4.3.0
yarn -v
1.3.2
react-native -v
react-native: 0.49.3

You also need to have Xcode and Android Studio to be installed.

Installing

You need to install packages first.

yarn install

Link packages with React Native iOS and Android projects

react-native link

Development

iOS:

yarn ios

Android:

yarn android

Testing

You can run unit tests locally.

yarn test

You can also run eslint on the entire codebase.

yarn lint

Release build

Bitrise

Continuous integration: changes to the master branch will be automatically built through Bitrise.

fastlane (iOS)

iOS:

You can use fastlane From root directory of repository

cd ios
fastlane beta

It will archive release build for iOS and push to appstore. It will take several minutes.

Xcode (iOS)

Otherwise, you can build and archive manually using Xcode.

yarn (Android)

Android:

yarn prod-bundle
yarn prod-build

It will create app-release.apk in android/app/build/outputs folder

Built With

Contributing

See 🔗 CONTRIBUTING.

Versioning

See 🔗 CONTRIBUTING#Versioning.

Deployment

See 🔗 CONTRIBUTING#Deployment.

Authors

License

CPAL 1.0