React Native and Web3.js
Version node v16.X.X
- Clone project
git clone https://github.com/velas/mobile-wallet.git
- Install yarn
npm install -g yarn
- Enter the Mobile Wallet, install packages and pods
cd mobile-wallet/ && yarn && cd ios/ && pod install
- 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/)
- Install Xcode command line tools (macOS)
xcode-select --install
- Install rbenv (https://github.com/rbenv/rbenv#installation)
brew install rbenv ruby-build
rbenv init
- Install bundler
gem install bundler
- 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