Giter VIP home page Giter VIP logo

mobile-wallet's Introduction

Liquality Mobile Wallet

Project Setup

  • Install NVM
  • Go to the project root folder and run nvm use. This will make sure the right version of Node is used.
  • Add a mnemonic and password for easy testing. Create .env file:
    MNEMONIC="your seed phrase"
    PASSWORD="123123123"
    
  • Install npm dependencies
    yarn install
    
  • Install Cocoapods dependencies
    cd ios && pod install && cd ..
    

Android environment

  • Ensure you have JDK11 installed and setup

IOS environment

  • Ensure you have latest version of Xcode and Command-Line-Tools
  • To simulate background fetch in iOS emulator, build and run the /ios/LiqualityMobile.xcworkspace directly in Xcode and navigate to the 'Signing and capabilities' โ€“> 'Background Modes' โ†’ to make sure that the following are checked:
  • Audio, Airplay and Picture in Picture
  • Background fetch
  • Remote notifications
  • Background processing
  • Make sure to create a .env file and add these environment variables to it: MNEMONIC, PASSWORD, and INFURA_API_KEY

Running the app

  • For iOS
    yarn run ios
    
  • For Android
    yarn run android
    

Using Node modules

We are using rn-nodeify to provide polyfills for the code that is using crypto and Node related modules. All the magic happens when we load the shim.js file. The shim file is generated in the postinstall step

Linting

yarn run lint

Running Tests

yarn run test

Deploying to Testflight

  • iOS
cd ios/fastlane && fastlane ios beta
  • Android
cd android/fastlane && fastlane android alpha

Deploying to production

Standards

Theming

Localization

Error Tracking

  • Sentry.io

Analytics

Troubleshoot

  1. FBReactNativeSpec - Command PhaseScriptExecution failed with a nonzero exit code
    react-native-community/upgrade-support#161
    In node_modules/react-native/scripts/find-node.sh, comment out this code block:
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
  # shellcheck source=/dev/null
  . "$HOME/.nvm/nvm.sh" --no-use
  nvm use 2> /dev/null || nvm use default
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
  # shellcheck source=/dev/null
  . "$(brew --prefix nvm)/nvm.sh" --no-use
  nvm use 2> /dev/null || nvm use default
fi
  1. Android Error: Plugin with id 'maven' not found
  Replace maven with maven-publish

License

MIT

mobile-wallet's People

Contributors

urvesh109 avatar adilmezghouti avatar johannafransn avatar heyradcode avatar b0b4456 avatar monokh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.