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 torelease.keystore.properties
- Update
release.keystore.properties
configuration to match your signing reqs (keystore location, key alias, passwords)
- Rename
-
Setup a
Google Service Account
by following the Fastlane supply guide here and saving the downloaded credentials file asgoogle_developer_key.json
under theandroid
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).