Skip to content

rlemasquerier/pet-feeder

Repository files navigation

Requirements

Install

Decrypt secret files

  1. Install transcrypt:
    brew install transcrypt
  2. Ask a project's developper for the transcrypt password
  3. Run the following decrypt command
    transcrypt -c aes-256-cbc -p '<password>'

All your secret files (including .secret keystores) are decrypted and you are now able to deploy to any environment.

Install dependencies

yarn

Install dependencies IOS

In ios directory, run:

bundle exec pod install --repo-update

If you have a problem with iOS build, delete the folder ios/Pods and relaunch the command.

Development

Run the app on iOS emulator with

yarn run-ios

Run the app on Android with

yarn run-android

Deploy

Staging

Hard deploy

Android

yarn deploy -e staging -o android -t hard

iOS

yarn deploy -e staging -o ios -t hard

Soft deploy (code push)

Android

yarn deploy -e staging -o android -t soft

iOS

yarn deploy -e staging -o ios -t soft

Production

Hard deploy

Android

bundle exec fastlane android deploy --env=production

Environments

There are currently two environments.

Development

You need to run a server on localhost

Staging

See file environments/.env.staging