-
Globally install react-native CLI
-
Install Yarn:
brew install yarn
On the command prompt run the following commands
yarn
react-native link
- Run
react-native run-ios
oryarn ios
in your terminal
- Run
react-native run-android
oryarn android
in your terminal
Integrate with CodePush
- Create an app on ClearSummit's Mobile Center to get deployment keys. We should have a separate app for iOS and Android.
Below steps can be done through App Center's Dashboard
-
Generate deployment keys:
code-push deployment add <app_name> "Staging or Production"
-
View deployment keys:
code-push deployment ls <app_name> -k
-
iOS: muti-deployment testing doc Do step 9.
-
Android: muti-deployment testing doc Do step 2.
Integrate to ClearSummit's Sentry
-
Create a new project in Sentry
-
Run
react-native link react-native-sentry
and follow instructions. Check out documents -
Go to Project Settings -> Client Keys -> Copy and paste the DNS url to
SentryUtil.configure('')
in App.js
-
Change
API_URL
string in.env
,.env.staging
,.env.production
-
Android: problems with Proguard? Check this link out.
- Change
<token here>
in.circleci/config.yml
file with Code Climate's repo token
-
Make sure circleci is running with macOS plan
-
Modify
.circleci/config.yml
by uncommenting the commented lines and removing these:
docker:
- image: circleci/node:10.10.0
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > /tmp/cc-test-reporter
- Run
reg-suit init --use-yarn
to re-install and re-configure reg-suit and plugins into our project. Check out documents
- [DANGER] Method removes information. We have a debug sample of contacts which can be loaded onto the device, through the debug menu. This will clear your contacts and load in our contacts. Only use on test devices