Tem Açúcar Android and iOS apps, built with React Native + Redux.
- clone the project
- run
npm install
-
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.
Xcode 7.0 or higher is required. It can be installed from the App Store.
- 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)
bin/run-ios
bin/run-android
-
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
-
For staging environment release, run
bin/build-ios-simulator
-
For production environment release, run
ENV=production bin/build-ios-simulator
-
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
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
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