Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 3.33 KB

File metadata and controls

36 lines (26 loc) · 3.33 KB

Windows Installation Guide

Follow the instructions described below if you want to setup RuinaMain using Windows and Android Studio.

Using a tablet

  1. Follow this react native tutorial (select React Native CLI Quickstart, Windows, and Android)
  • Make sure to select Android 9 (Pie) and Android SDK Platform 28 instead of the new versions. This can be done by following the green highlight portion in this google document
  • We recommend using nvm-windows to install Node.js, so you can easily install multiple versions and switch between them. Install the latest Node.js version via nvm install latest [arch]. Don't forget to actually pick a Node.js version once you install it via nvm use <version> [arch]. Confirm you have Node.js installed by typing node --version in the command prompt
  • Since we use Gradle 5.5, as of now, you should install JDK version 11. You can download the Windows zip file for JDK 11 here. Extract the zip folder into C:\Program Files\Java\ and then add C:\Program Files\Java\jdk-11 to the System Path variable. To easily switch between different JDK version, I would recommend following this tutorial. Confirm you have JDK installed by typing java -version in the command prompt
  • In case you need to install Gradle, you can do that here

image

  1. Follow the first two steps of this tutorial to connect a tablet with Android (select Android and Windows)

image

  1. Clone the RuinaMain repo
  • In a terminal, cd into the main directory of the repo
  • rmdir /s node_modules if there exists a node_modules folder in the repo
  • yarn install (if yarn is not recognized as a command then run npm install -g yarn in a command prompt run as administrator)
  1. In order to get the app running, you need to add the required Anyline config files
  • To add them, create a new folder called anylineConfigs in your RuinaMain directory
  • Download all the files from here, and put them in the anylineConfigs folder

image

  1. Rebuild the Android folder with the following commands

    • cd android
    • gradlew clean
    • cd ..
  2. Run app via npx react-native run-android within the main RuinaMain directory (make sure your tablet is plugged in and registered as a device when you type adb devices into a terminal)

Using an Emulator

Note: using an emulator requires the same steps as the above section but instead of doing step 2, you have to set up the emulator. You can do this by following the "Using a virtual device" section in the react native setup tutorial (select React Native CLI Quickstart, Windows, and Android). Don't forget to launch your Android Virtual Device before running npx react-native run-android!