Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

nearit/RedeemIT-app

Repository files navigation

RedeemIT

NearIT coupon scanner

Requirements

Basic

To work on the RedeemIT app you'll need:

Deployment

Besides basic requirements, to deploy you'll need:

Setup

Install the required dependencies by running

yarn install

Commands

Each command must be run through Yarn, like this

yarn <command>

start

Start the Metro Bundler to compile Javascript code

android

Start the Metro Bundler, compile Android native code and launch the development app on a connected device or simulator.

ios

Start the Metro Bundler, compile iOS native code and launch the development app on a simulator.

N.B. To launch the app on a connected iDevice run the command with the following option

yarn ios --device

N.B. To launche the app on a specific simulator (instead of the default iPhone 6) run the command with the following option

yarn ios --simulator "iPhone X"

test

Run available Jest tests

publish:ios:beta

Compile app in production mode and deploy it to Apple Testflight.

N.B. This is a shortcut command to launch Fastlane on the ios beta lane. For more info see Fastlane doc and this project Fastfile (located under the fastlane folder).

publish:android:beta

Compile app in production mode and deploy it to Google Play Store Beta.

N.B. This is a shortcut command to launch Fastlane on the android beta lane. For more info see Fastlane doc and this project Fastfile (located under the fastlane folder).

Deployment

Deployment of this app can be done using Fastlane scripts.

Beta

Deployment to Apple Testflight and Google Play Store Beta.

iOS

Setup is done automatically when running the publish:ios:beta command.

Android

To prepare to deploy the Android app you'll need to:

  • Setup your signing configuration inside the android/keystores folder:

    • Rename release.keystore.properties.sample file to release.keystore.properties
    • Update release.keystore.properties configuration to match your signing reqs (keystore location, key alias, passwords)
  • Setup a Google Service Account by following the Fastlane supply guide here and saving the downloaded credentials file as google_developer_key.json under the android folder.

Then simply run the publish:android:beta command.

Production

Production deployment must be done by hand through the respective web portals (iTunesConnect and Google Play Developer Console).