-
Setup ANDROID SDK and React Native (without expo and use java version from instruction)
-
Install the emulator or connect a device
-
Create debug.keystore
keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
- Get SHA1 key for next step (it will be needed for setup google drive and firebase)
keytool -list -v -keystore android/app/debug.keystore -alias androiddebugkey -storepass android -keypass android
-
Setup Google Drive api (If you want to use save/import seed with Google Drive)
5.1. Enable Api
5.2. Setting up OAuth 2.0
5.3. Open OAuth consent screen -> Edit App -> Save and continue -> Add or remove scopes -> add '.../auth/drive' scope
-
Setup firebase. The instruction is below
If you want to receive notifications without install fractapp-server and setup firebase then use apk file from release. Otherwise, you need to run fractapp-server.
-
Configure .env (example in .env-temp)
FRACTAPP_API - fractapp server url
WSFRACTAPP_API - fractapp server ws url
MAIN_BOT_ID - main bot fractapp auth id
- Install yarn packages
yarn install
- Start on android device or emulator
yarn android --reset-cache
- Add project
- Enter a name
- Add app (Android)
- Set "com.fractapp" in the "Android package name" input
- Get SHA1 and set this in the "Debug signing certificate SHA-1" input
keytool -list -v -keystore android/app/debug.keystore -alias androiddebugkey -storepass android -keypass android
- Copy google-services.json to android/app/google-services.json
- Skip other steps
- Finish
Start tests with coverage info
yarn test
Start tests with update snapshot
yarn test --u