Library project for Android apps that use the Sense platform and communicate with CommonSense.
See this projects' GitHub pages.
Please read the tutorial on the Sense Developer Portal.
When using Maven (3.0.5+), you can add this project as an APKLIB into your local Maven repository as follows.
First add some dependencies to your local Maven repository that are not available in Maven central:
Note that you need the compatibility-v4 library, revision 12. Google didn't put that into Maven central (yet). If your local Maven repository does not contain it, install it locally by using the maven-android-sdk-deployer.
Navigate to the Library's libs/
folder and execute the following command:
mvn install:install-file \
-Dfile=cordova-2.7.0.jar \
-DgroupId=org.apache.cordova \
-DartifactId=cordova \
-Dversion=2.7.0 \
-Dpackaging=jar \
-DgeneratePom=true
Now put the Sense Library to your local Maven repository:
git clone https://github.com/senseobservationsystems/sense-android-library
cd sense-android-library/sense-android-library/
mvn install
which should result in a BUILD SUCCESS
.
After that, you can reference the Sense Library in a Maven-flavoured Android App by adding the following dependency to your POM:
<dependency>
<groupId>nl.sense_os</groupId>
<artifactId>sense-android-library</artifactId>
<version>1.0-SNAPSHOT</version>
<type>apklib</type>
</dependency>