A Softwareproject done at Fh Minden in 2016
- Git
- NodeJs
- NPM (Included in the NodeJs installation)
- Python 2.x (Check "Add to PATH" when installing)
- JDK (Add JAVA_HOME to your environment variables)
- Android SDK or Android Studio
- react-native
To install react-native run the following:
npm install -g react-native
You need some packages of the Android SDK to build the App.
To download those, start the SDK Manager (SDK Manager.exe) from the SDK folder
or from within Android Studio (Configure -> SDK Manager).
The following packages are needed:
- build-tools 23.0.1
- latest SDK Tools
- latest SDK Plattform-tools
- Android 6.0 SDK Platform
- Android Support Repository
- Android Support Library
- Google Repository
- Google USB Driver (If needed)
Clone the project by running the command:
git clone *your repo url*
Then go into the newly created folder (cd) and run:
npm install
This downloads all the needed dependencies.
Before running you have to tell Gradle (The build-system of Android) where to
look for the Android SDK. To do so, go into the android
folder and create a
file named local.properties
. Add sdk.dir=C:\\Path\\To\\The\\SDK
.
You also need to setup ADB. (Android Debug Bridge) On your Phone, activate the developer settings and check ADB Debugging. On your computer you need to add ADB to your PATH.
To run the Application on your phone: open a second terminal, go into the project folder and run:
react-native start
From the first terminal you can then run:
react-native run-android
It might happen that you get an error screen on first launch. To fix this run the following:
adb reverse tcp:8081 tcp:8081