GithubHelp home page GithubHelp logo

app's Introduction

1. Install & configure system dependencies

1.1 Node 14.17 & NPM 6.14

Recommended using NVM.

1.2 Expo

Expo docs

npm install --global expo-cli

2. Clone repo and install dependecies

git clone [email protected]:appjusto/app.git
cd app
npm install

2. Configure .env

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=

3. Running locally

# 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>"

4. Publishing

FLAVOR=consumer expo publish FLAVOR=courier expo publish

5. 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:

6. Building on expo

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

7. Bulding with eas

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

app's People

Contributors

danielfbl avatar dependabot[bot] avatar fhfuzii avatar guilhermebailoni avatar marcelocfsf avatar pdandradeb avatar renanf68 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.