Recommended using NVM.
npm install --global expo-cli
git clone [email protected]:appjusto/app.git
cd app
npm install
FIREBASE_API_KEY=
FIREBASE_REGION=
FIREBASE_PROJECT_ID=
FIREBASE_DATABASE_NAME=
FIREBASE_MESSAGING_SENDER_ID=
FIREBASE_CONSUMER_APP_ID=
FIREBASE_CONSUMER_MEASUREMENT_ID=
FIREBASE_COURIER_APP_ID=
FIREBASE_COURIER_MEASUREMENT_ID=
GOOGLE_MAPS_API_KEY=
IUGU_ACCOUNT_ID=
ALGOLIA_APPID=
ALGOLIA_APIKEY=
SENTRY_DSN=
SENTRY_AUTH_TOKEN=
SEGMENT_CONSUMER_IOS_KEY=
SEGMENT_CONSUMER_ANDROID_KEY=
SEGMENT_COURIER_IOS_KEY=
SEGMENT_COURIER_ANDROID_KEY=
ENVIRONMENT=
# running consumer connected to firebase cloud
FLAVOR=consumer ENV=dev npm run start
# running courier connected to firebase cloud
FLAVOR=courier ENV=dev npm run start
# running consumer connected to local emulator
FLAVOR=consumer ENV=dev FIREBASE_EMULATOR=true npm run start
# Deeplink testing
xcrun simctl openurl booted "exp://127.0.0.1:19000/--/?link=<link>"
adb shell am start -a "android.intent.action.VIEW" -d "exp://127.0.0.1:19000/--/?link=<link>"
FLAVOR=consumer expo publish FLAVOR=courier expo publish
# 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:
- https://docs.expo.io/distribution/turtle-cli/
- https://docs.expo.io/distribution/building-standalone-apps/
Edit app.config.js
and update version and versionCode and run:
# consumer ios
FLAVOR=consumer expo build:ios -t archive
# consumer android apk
FLAVOR=consumer expo build:android -t apk
# consumer android app-bundle
FLAVOR=consumer expo build:android -t app-bundle
# courier ios
FLAVOR=courier expo build:ios -t archive
# courier android apk
FLAVOR=courier expo build:android -t apk
# courier android app-bundle
FLAVOR=courier expo build:android -t app-bundle
cat .live.env | grep "=" | awk -F "=" '{print "--name="$1" --value="$2}' | ENV=live ENVIRONMENT=live FLAVOR=courier xargs -n2 eas secret:create --type string --force