Eclipse users: Mark Murphy on his blog explained how to use aar
format in Eclipse.
- Create
libs
directory inside your project and copy there estimote-sdk.aar. - In your
build.gradle
addflatDir
entry to your repositories
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
- Add dependency to Estimote SDK. All needed permissions (
BLUETOOTH
,BLUETOOTH_ADMIN
andINTERNET
) and services will be merged from SDK'sAndroidManifest.xml
to your application'sAndroidManifest.xml
.
dependencies {
compile(name:'estimote-sdk', ext:'aar')
}
- Initialize Estimote SDK in your Application class onCreate() method - if you are using Estimote Cloud:
// App ID & App Token can be taken from App section of Estimote Cloud.
EstimoteSDK.initialize(applicationContext, appId, appToken);
// Optional, debug logging.
EstimoteSDK.enableDebugLogging(true);