sudo apt-get install build-essential # curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - # sudo apt install nodejs
sudo apt-get install python-pip sudo pip install nodeenv
LIB=<some-path> nodeenv --node=0.10.33 $LIB . $LIB/bin/activate
npm install -g ionic # npm install -g bower
update
npm update -g ionic cordova
Activate library
. $LIB/bin/activate
NAME=PeperStart ionic start $NAME blank cd $NAME ionic browser add crosswalk #(this command enable also android platform)
. $LIB/bin/activate npm install -g ionic cd <project> ionic lib update
It is important to install native gradle or use gradle shipped with android studio (see PATH below)
$P is $NAME/platforms/android path
Create zip file named gpio.jar and put into platforms/android/libs
lib
└── armeabi
└── libgpio.so
build.gradle search inside libs for *jar (see dependancy section)
<video ng-controller="startVideo" controls="" style="width:100%; height:auto" autoplay="false"> <source src=""></source> </video>
.controller('startVideo', function($scope) { angular.element('video').attr('src','http://...'); });