Android and iOS client to the EarthRanger platform
There are mulitple ways to run the app. You can open the respective IDE's, Android Studio or xCode and click the Run button with the app selected. Instructions below run the app from a terminal. In all instances, be sure you have a connected physical device and/or emulator/simulator running.
You can use the adb
tool to confirm you have a connected device:
# list connected android devices
$ adb devices
List of devices attached
740KPWT02R0050 device
Run the app with yarn
# run from the root of the project
$ yarn android
This should build and install the app on a running device/emulator
There are a couple of ways to run the iOS app.
yarn Yarn is the easiest tool to build and install the app with the following command:
# run from the root of the project
$ yarn ios --device="YOUR_DEVICE_NAME"
This should build and install the app on a running device/simulator
Fastlane
The build
lane has an option to install the app on your device, note it installs but does not automatically run the app. If you want to test this feature out you need to install ios-deploy
# install ios-deploy
$ brew install ios-deploy
# Connect a device or open a simulator, ios-deploy will default to the first found device id
# build the app
$ [bundle exec] fastlane ios build install:true
Contributions are welcome! If you find a bug or have a feature request, please open an issue.
A copy of the license is available in the repository's LICENSE file.