-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Geza Kovacs edited this page Oct 2, 2017
·
1 revision
To get yourself set up: install nodejs (version 8)
Then install nativescript:
npm install -g nativescript
You will need to install the Android SDK and then set ANDROID_HOME to point to it, by editing ~/.bash_profile and adding the following lines (substitute /Users/geza with the path your Android SDK is installed to)
export ANDROID_HOME=/Users/geza/Library/Android/sdk/
export ANDROID_SDK_ROOT=/Users/geza/Library/Android/sdk/
Now run tns doctor
to check that everything is working correctly.
Then you can clone the codebase:
git clone https://github.com/habitlab/HabitLabMobile.git
cd HabitLabMobile
Now connect your device and ensure that it is listed when you type adb devices
, then you can build the codebase as follows:
./rebuild
If you want to run in debug mode (gives you a javascript console) then do:
tns debug android