/app

Primary LanguageTypeScriptApache License 2.0Apache-2.0

1. Clone repo and install dependecies

git clone git@github.com:appjusto/app.git
cd app
npm install

2. Configure .env

GOOGLE_IOS_API_KEY=
GOOGLE_ANDROID_API_KEY=
FIREBASE_REGION=
FIREBASE_PROJECT_ID=
FIREBASE_DATABASE_NAME=
FIREBASE_MESSAGING_SENDER_ID=
FIREBASE_APP_ID=
FIREBASE_MEASUREMENT_ID=
FIREBASE_EMULATOR_HOST=
SEGMENT_ANDROID_KEY=
SEGMENT_IOS_KEY=
SENTRY_DSN=
SENTRY_AUTH_TOKEN=
IUGU_ACCOUNT_ID=

3. Running locally

# using firebase cloud
FLAVOR=<consumer | courier> expo start -c

# using firabase local emulator (also running expo with tunnel)
FLAVOR=<consumer | courier> FIREBASE_EMULATOR=true expo start --tunnel -c

# Deeplink testing
xcrun simctl openurl booted "exp://<local-ip-address>:19000/--/?link=<link>"
adb shell am start -a "android.intent.action.VIEW" -d "exp://<local-ip-address>:19000/--/?link=<link>"

4. Building locally

# fetch keys
FLAVOR=consumer expo fetch:android:keystore
FLAVOR=courier expo fetch:android:keystore

# configure environment variables
export EXPO_USERNAME=
export EXPO_PASSWORD=
export EXPO_ANDROID_KEYSTORE_PASSWORD=
export EXPO_ANDROID_KEY_PASSWORD=

# install turtle
npm install -g turtle-cli

# build Android
FLAVOR=consumer turtle build:android -t apk --keystore-path <path-to-keystore> --keystore-alias <keystore-alias>

Docs: