nostros/SETUP.md

54 lines
1.2 KiB
Markdown
Raw Normal View History

2022-11-03 21:42:58 +00:00
# OSX
2022-11-03 22:02:37 +00:00
Make sure you have Node 16.x
2022-11-03 21:42:58 +00:00
## Install JDK
Make sure you install version 17
```
https://www.oracle.com/java/technologies/downloads
```
## Install Android Studio
Download and install https://developer.android.com/studio/index.html
Make sure you have the following libraries installed globally.
```
npm install -g react-native-cli
brew install android-platform-tools
```
2022-11-03 22:19:30 +00:00
Open `nostros/android` to automatically start the first build process.
You'll probably need to `Sync with gradle files` (top-right corner)
2022-11-03 21:42:58 +00:00
## Install watchman
Check https://github.com/facebook/watchman/releases/download or use brew:
```
brew install node
brew install watchman
```
## Create Emulator (or connect Android phone and install adb)
Use the GUI of Android studio to create a new virtual devide, make sure you add enought internal storage (>= 2 GB).
As of 11/10/2022 we are using a Pixel 5 as template and System image R API level 30 Android 11.0
## Run app
- Point a terminal to `nostros`
- Install yarn packages
```
yarn install
```
2022-11-03 22:54:00 +00:00
- Make sure your device is running, if you are using a physical one remember to run on a terminal `adb reverse tcp:8081 tcp:8081` so it can connect to Metro.
2022-11-03 21:42:58 +00:00
- Run Metro
```
yarn start
```