Update starting guide doc (#14107)
* Update starting guide doc * Fix bad placement of tut * formatting and style fixes Signed-off-by: Jakub Sokołowski <jakub@status.im> * add adb link Signed-off-by: Jakub Sokołowski <jakub@status.im> Co-authored-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
69c49a5557
commit
390ac858dc
|
@ -14,14 +14,25 @@ This step will take a while the first time as it will download all dependencies.
|
||||||
|
|
||||||
There are three steps necessary to start development, in this case for Android:
|
There are three steps necessary to start development, in this case for Android:
|
||||||
|
|
||||||
1. `make run-clojure` - Compiles Clojure into JavaScript, watches for changes on cljs files, and hot-reloads code in the app
|
1. `make run-clojure` - Compiles Clojure into JavaScript, watches for changes on cljs files, and hot-reloads code in the app.
|
||||||
2. `make run-metro` - Starts metro bundler and watches JavaScript code
|
2. `make run-metro` - Starts metro bundler and watches JavaScript code.
|
||||||
3. `make run-android` - Builds the Android app and starts it on the device
|
3. `make run-android` or `make run-ios` - Builds the Android/iOS app and starts it on the device.
|
||||||
|
|
||||||
The first two will continue watching for changes and keep re-building the app. They need to be ready first.
|
The first two will continue watching for changes and keep re-building the app. They need to be ready first.
|
||||||
The last one will exit once the app is up and ready.
|
The last one will exit once the app is up and ready.
|
||||||
|
|
||||||
You need to have your emulator or real devices running and visible to adb, before you run `make run-android`.
|
## Simulators and Devices
|
||||||
|
### Android
|
||||||
|
|
||||||
|
You need to have an emulator like [AVD](https://developer.android.com/studio/run/emulator), or [Genymotion](#genymotion-virtualization), or a real device running and visible to [adb](https://developer.android.com/studio/command-line/adb), before you run `make run-android`.
|
||||||
|
|
||||||
|
### iOS
|
||||||
|
|
||||||
|
You can specify the simulator type by adding the `SIMULATOR` flag:
|
||||||
|
```sh
|
||||||
|
make run-ios SIMULATOR="iPhone 11 Pro"
|
||||||
|
```
|
||||||
|
Some manual steps are necesary for [developing on a physical iOS Device](#physical-ios-device).
|
||||||
|
|
||||||
# Build release
|
# Build release
|
||||||
|
|
||||||
|
@ -71,3 +82,17 @@ Steps:
|
||||||
2. [Setup Git to use your GPG key](https://help.github.com/en/github/authenticating-to-github/telling-git-about-your-signing-key)
|
2. [Setup Git to use your GPG key](https://help.github.com/en/github/authenticating-to-github/telling-git-about-your-signing-key)
|
||||||
3. [Setup Git to sign commits](https://help.github.com/en/github/authenticating-to-github/signing-commits)
|
3. [Setup Git to sign commits](https://help.github.com/en/github/authenticating-to-github/signing-commits)
|
||||||
4. [Setup GitHub to validate commits](https://help.github.com/en/github/authenticating-to-github/adding-a-new-gpg-key-to-your-github-account)
|
4. [Setup GitHub to validate commits](https://help.github.com/en/github/authenticating-to-github/adding-a-new-gpg-key-to-your-github-account)
|
||||||
|
|
||||||
|
## Physical iOS Device
|
||||||
|
|
||||||
|
To use a physical iPhone your device UDID must be added to provisioning profiles and your Apple account invited as Developer to Status team.
|
||||||
|
|
||||||
|
1. [Get your UDID of your iPhone.](https://www.extentia.com/post/finding-the-udid-of-an-ios-device)
|
||||||
|
2. Request from someone with access like @cammellos or @jakubgs to
|
||||||
|
- Add the UDID to development devices on Apple Developer Portal.
|
||||||
|
- Invite your Apple account to be Developer in Status team.
|
||||||
|
3. Run a build in XCode using the project from `status-mobile/ios` directory.
|
||||||
|
- You might see error: `Select a development team in the Signing & Capabilities editor`
|
||||||
|
- Select `STATUS HOLDINGS PTE. LTD.` as the development team and rebuild again.
|
||||||
|
|
||||||
|
Once build finishes Status should start on your iPhone with its logs in terminal running `make run-metro`.
|
||||||
|
|
Loading…
Reference in New Issue