- Clone this repository
git clone https://github.com/em-casa/native.git
cd native
- Install dev dependencies
yarn install
bundle install
(cd ios && pod install)
To run and develop the app locally:
- Start the bundler:
yarn start
- Run a simulator:
yarn ios
oryarn android
In development mode, this app communicates with the staging API server https://em-casa-backend-staging.herokuapp.com
by default.
Optionally, to use a local instance of the backend server:
- Download and run em-casa/backend
export API_CLIENT="https://localhost:4000"
- Restart the bundler
bundle exec fastlane android build
The android apk
distributable is outputted into android/app/build/outputs/apk/
.
You can pass any of the following options to fastlane's build task by appending {option}:{value}
to the command.
e.g: bundle exec fastlane android build bump:true version:1.0.0
option | type | default | description |
---|---|---|---|
signed* | bool |
false |
Enable code signing |
bump | bool |
false |
Bump version number |
build_number | int |
current build nห + 1 |
New build number to bump to |
version | string |
package.json version |
New version to bump to |
* Requires the ANDROID_KEY*
environment variables. See .env.example
TODO
This project uses Crashnalytics for beta testing.
bundle exec fastlane android beta
In addition to all of build
task's options, you can pass the following to beta
:
option | type | default | description |
---|---|---|---|
groups | string |
nil |
Comma delimited list of beta tester groups to invite for this update |
promote | bool |
false |
Send update notifications to beta testers |
comment | string |
nil |
Release notes |
TODO
Feel free to open issues and PRs.
At the moment, we're tracking tasks at https://www.pivotaltracker.com/n/projects/2125081
This project was bootstrapped with Create React Native App.