The first ever Bitcoin Vault wallet.
- Node.js v.12.14.1 or greater is required
- For Android:
- version 8 of the Java SE Development Kit (JDK)
- Android SDK
- Android SDK Platform
- Android Virtual Device
- For iOS:
- Xcode
- CocoaPods
- Supported devices:
- iOS 14+
- Android 8+
If you haven't launched any React Native projects before, you should check Setting up the development environment · React Native to set up your local development environment correctly.
$ git clone https://github.com/bitcoinvault/GoldWallet.git
$ cd GoldWallet
$ yarn install
To run iOS app you also need to install Swift project's dependencies:
$ cd ios
$ pod install
To build a binary of any variant, you must have sentry.properties
files created in root, ./ios
, and ./android
. You can create them by executing create-sentry-properties.sh
script with the valid Sentry Auth token:
$ SENTRY_AUTH_TOKEN=${TOKEN} bash ./create-sentry-properties.sh
But to run the app with Metro server, this step isn't required.
You can launch the Android app in two variants - prod
and beta
:
$ yarn run android:prod
$ yarn run android:beta
as well as iOS:
$ yarn run ios:prod
$ yarn run ios:beta
by default, the app runs in Debug
type which means you must run React packager/server first
$ yarn start
To run unit and integration tests:
$ yarn run test
To run Detox (end-to-end) tests, please follow the Install platform-specific dependencies, tools and dev-kits guideline to make sure you have everything configured correctly. Especially the part about Android (AOSP) Emulators is important.
Build the app for Detox:
$ yarn build:detox -- -c ${CONFIGURATION}
Start react-native packager:
$ yarn start:detox
And then run the tests:
$ yarn test:detox -- -c ${CONFIGRURATION}
Check .detoxrc.json
file to see all available configurations
To control what tests should be executed use the Jest's -t
flag:
$ yarn test:detox -- -c ${CONFIGRURATION} -t ${REGEX}
MIT