Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

fractapp/fractapp

Repository files navigation

Only android version

Getting Started

  1. Setup ANDROID SDK and React Native (without expo and use java version from instruction)

    https://reactnative.dev/docs/environment-setup

  2. Install the emulator or connect a device

  3. Create debug.keystore

keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
  1. 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
  1. 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

  2. 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.

  3. 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
  1. Install yarn packages
yarn install
  1. Start on android device or emulator
yarn android --reset-cache

Setup firebase

  1. Add project
  2. Enter a name
  3. Add app (Android)
  4. Set "com.fractapp" in the "Android package name" input
  5. 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
  1. Copy google-services.json to android/app/google-services.json
  2. Skip other steps
  3. Finish

Tests

Start tests with coverage info

yarn test

Start tests with update snapshot

yarn test --u

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •