/irMobile

A very simple mobile app for interacting with Independent Reserve

Primary LanguageJavaScriptMIT LicenseMIT

irMobile

An iOS app that uses the ir-api to interact with Independent Reserve.

Note this is a 3rd Party app and is not developed by, or supported by Independent Reserve.

Features

The initial MVP version of the app allows an Independent Reserve member to:

  1. Add their apiKey and apiSecret
  2. Check the status of their coin holdings including current prices and an overall balance.

See milestone/1 for specifics.

Links

Project Status

Greenkeeper badge

This project is under active development and is being used as a learning project to teach myself React Native development.

Development

To set up your local development environment refer to the official doc: https://facebook.github.io/react-native/docs/getting-started

React Native Version

This app is currently built with React Native version 0.59.10.

I have tried to upgrade it to React Native 0.60.0 but that caused too many problems.

Under React Native 0.60.0 we see the following

  • tests never complete (jest hangs)
  • code does deploy to the iOS simulator
  • code deploys to the phone with development targets turned on, but with many warnings, and very slowly.
  • code does not deploy to the phone with release targets turned on.

Conclusion: It's far too early to upgrade to React Native 0.60.0

This will be revisited in issues/40.

Branches

Branch Tests Code Coverage Comments
develop CircleCI codecov Work in progress
master CircleCI codecov Latest Production Release

Prerequisites

  • NodeJS version 10.16.0 (LTS) or better. I use nvm to manage Node versions.

    brew install nvm
  • yarn instead of npm (typical for React Native builds.)

    brew install yarn
  • react-native-cli (version 1.3.0) — see note above about upgrading React Native to 0.60.0.

    yarn global add react-native-cli@1.3.0

Installing dependencies

yarn install

Running Tests

yarn test

Running Linter

yarn lint

Run the app

Make sure you have Xcode and Android studio installed with appropriate SDK

Run in the iOS Simulator

Ref: facebook.github.io/react-native/docs/getting-started#xcode

yarn ios

TROUBLESHOOTING NOTE: If you are having trouble bundling the app for the first time on ios delete /ios/build and rerun yarn ios

Run in Android Studio

Ref: facebook.github.io/react-native/docs/getting-started#1-install-android-studio

yarn android

Devices

The Android emulator and iOS simulator are great for testing however features should be tested on physical devices prior to issuing a merge request.

Redux dev tools

To view the state in the app install the Redux dev tools Chrome plugin.

Contributing

Please see the contributing notes.

Other ways to contribute

  • Join Independent Reserve using my referral code www.independentreserve.com/invite/AJNEHL
  • Send me Ether. 0xbd64860033c15c0af5df5a886b997f63a7723d5a
  • Send me Bitcoin. 1HiqYdJZGmGDaj1ryKjEjaB2RRZuZebZxZ