Discontinued The current development takes place at spaceapi-community/my-hackerspace.
First, get the sources.
git clone --recursive https://github.com/fixme-lausanne/MyHackerspace.git
cd MyHackerspace
Get the 3rd party librairies
git submodule init
git submodule update
With Android Studio, simply open the project directory and you should be set.
You can build the project using Gradle.
You'll first need the Android SDK, and install build tools 21.1.1 which is considered obsolete. You can find this version by ticking obsolete in the Android SDK Manager.
The following examples use the gradle wrapper script which will automatically
download gradle to your local directory. If you want to use your own
system-wide installation instead, simply replace ./gradlew
commands with
gradle
.
First, copy local.properties.example
to local.properties
and adjust the
path to your Android SDK installation.
To build a debug APK:
./gradlew assembleDebug
You will find your APK file in the app/build/outputs/apk/
directory.
You can also build and directly install the file to your connected smartphone:
./gradlew assembleDebug installDebug
To see other tasks that gradle offers, run
./gradlew tasks
For testing purposes you can run a local directory using this technique:
emulator -avd android6 -shared-net-id 16
sudo ifconfig eth0 10.0.2.3
./serv.py
https://10.0.2.3:8443/directory.json