Skip to content

pradeeplx/TemAcucar

 
 

Repository files navigation

TemAcucar

Tem Açúcar Android and iOS apps, built with React Native + Redux.

Installation

  • clone the project
  • run npm install

Configuration

  1. Copy .env.sample to .env.debug to create debug environment for development and set the config vars.

  2. Copy .env.sample to .env.staging to create staging environment and set the config vars.

  3. Copy .env.sample to .env.production to create production environment and set the config vars.

iOS Setup

Xcode 7.3.1 is required. It can be downloaded from here: https://developer.apple.com/download/more/?name=Xcode%207.3.1

Android Setup

Running on iOS

bin/run-ios

Running on Android

bin/run-android

Building release for iPhone

  • For staging environment release, run bin/build-ios

  • For debug environment release, run ENV=debug bin/build-ios

  • For production environment release, run ENV=production bin/build-ios

Building release for iOS simulator

  • For staging environment release, run bin/build-ios-simulator

  • For production environment release, run ENV=production bin/build-ios-simulator

Building release for Android

  1. Request the appropriate keystore file and passwords to your team's manager and save the keystore file to android/app

  2. Configure the passwords on the appropriate .env.* files

  3. Then:

  • For staging environment release, run bin/build-android

  • For production environment release, run ENV=production bin/build-android

Releasing iOS bundle to CodePush

Use this if you didn't need to rebuild and just want to publish new JS + assets (works only on device, wont work on Appetize.io).

bin/bundle-ios
code-push release TemAcucar-iOS ./release/ios-bundle 0.0.1 --description "JS version X.Y.Z" --mandatory

Releasing Android bundle to CodePush

Use this if you didn't need to rebuild and just want to publish new JS + assets (works only on device, wont work on Appetize.io).

bin/bundle-android
code-push release TemAcucar-Android ./release/android-bundle 0.0.1 --description "JS version X.Y.Z" --mandatory

About

Tem Açúcar Android and iOS apps, built with React Native + Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.5%
  • Objective-C 1.6%
  • Other 1.9%