TemAcucar
Tem Açúcar Android and iOS apps, built with React Native + Redux.
Installation
- clone the project
- run
npm install
Configuration
-
Copy
.env.sample
to.env.debug
to create debug environment for development and set the config vars. -
Copy
.env.sample
to.env.staging
to create staging environment and set the config vars. -
Copy
.env.sample
to.env.production
to create production environment and set the config vars.
iOS Setup
Xcode 7.0 or higher is required. It can be installed from the App Store.
Android Setup
- Follow this guide: https://facebook.github.io/react-native/docs/android-setup.html
- Instal Google Play Services SDK package: https://developers.google.com/android/guides/setup and https://developer.android.com/intl/pt-br/sdk/installing/adding-packages.html (Step 3)
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
-
Request the appropriate
keystore
file and passwords to your team's manager and save thekeystore
file toandroid/app
-
Configure the passwords on the appropriate
.env.*
files -
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 "Release Changelog" --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 "Release Changelog" --mandatory