Welcome to your new Crowdbotics app.
After cloning the repo, install the dependencies locally with Yarn:
yarn install
Start your Metro server:
npx react-native start
npx react-native run-android
pod install --repo-update --project-directory=ios
npx react-native run-ios
Follow instructions at their README.md
Fastlane makes testing, building, and deploying apps easier.
Install fastlane globally (npm i -g fastlane
or yarn i -g fastlane
).
Android and iOS dependencies are the same as React Native CLI.
All fastlane commands are run from the platform directory. For example, Android
commands must be run from android/
. Fastlane should be executed using bundle exec
to ensure dependencies are managed correctly.
The commands for Android and iOS are the same:
- Run tests:
bundle exec fastlane tests
- Local build:
bundle exec fastlane build
- Build and upload a beta (requires signing):
bundle exec fastlane beta
- Build or promote a release:
bundle exec fastlane deploy
Publish an Android app you must first create an app in the Play Console and
manually upload an APK. After the first upload run bundle exec fastlane supply init
from android/
to sync with the Play store. All future releases will be
uploaded automatically.
Android uses tracks. A beta release will build the app and upload to the beta track. Deploying will promote from beta to production.
CB developers must follow fastlane's codesigning guide for using match. Match will automatically sign iOS builds.
New CB developers should get access to the codesigning repo and run bundle exec fastlane match development
from ios/
.
Not a CB developer? Create an Apple developer and follow the instructions on codesigning guide to setup your certificates.
It is to build and deploy your app as web platform which run on browser
Please follow the steps
- please run
yarn web-build
- the web_build folder is generated and copied to backend/ automatically. please commit/push the web_build folder to git