Before you can proceed with building and testing the BC Wallet app, you must install and configure the following products on your development machine:
- Git
- Node.js - (version specified in the
engines
field of ./package.json) - yarn 3 - (version specified in the
engines
field of ./package.json) - Java 11
- Android Studio
- cmake 3.22.1
- ndk 25.1.8937393
If you are using Mac OS with ARM64 chip, see this suggested setup
React Native environment setup instructions are documented here. Be sure to select the correct React Native version (currently 0.66.x) from the dropdown. This will guide you through setting up your development environment for your operating system and choice of iOS (only if you are using a Mac) or Android.
Next, install the npm modules needed to build and test the app.
# from the root of the cloned repository, run:
yarn install
Some packages need to be build, transpiled befoer it can be uses from the app
# from the root of the cloned repository, run:
yarn run prepare
During the development process, you may want to run the app in the emulator to see see what it looks like or for some manual testing.
Setting up Android studio and emulator might be different for each OS. See the suggested Mac OS arm64 setup
If you have done the setup correctly, you should be able to start the emulator by running:
emulator -avd Pixel_6_API_31 -netdelay none -netspeed full
Once you've created and configured your emulator:
# from the root of the cloned repository, run:
yarn workspace aries-bifold-app run android