/mobile-wallet

Primary LanguageLiveScriptMIT LicenseMIT

React Native and Web3.js

Version node v16.X.X

  1. Clone project
git clone https://github.com/velas/mobile-wallet.git
  1. Install yarn
npm install -g yarn
  1. Enter the Mobile Wallet, install packages and pods
cd mobile-wallet/ && yarn && cd ios/ && pod install
  1. Run Ios or Android
yarn ios
yarn android

Problem solving

Android

If have error

Task :app:installDebug FAILED try use for resolve

rm -rf node_modules/ && yarn && cd android && ./gradlew clean && ./gradlew :app:bundleRelease

Deploy

Setup

Install Fastlane (http://docs.fastlane.tools/getting-started/ios/setup/)

  1. Install Xcode command line tools (macOS)
xcode-select --install
  1. Install rbenv (https://github.com/rbenv/rbenv#installation)
brew install rbenv ruby-build
rbenv init
  1. Install bundler
gem install bundler
  1. Install dependencies
bundle install

Build and deploy apps

Make sure app.json contains the correct values needed for the next build. For example to bump the app version for both platforms you need to update expo.version, expo.ios.buildNumber and expo.android.versionCode.

Android

Build the app

bundle exec fastlane android build

Upload to GooglePlay Console internal track

bundle exec fastlane android upload

Build and upload to GooglePlay Console internal track

bundle exec fastlane android build_and_upload

iOS

Build the app

bundle exec fastlane ios build

Upload to Testflight.

bundle exec fastlane ios upload

Build and upload to Testflight.

bundle exec fastlane ios build_and_upload