<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-sparta-estimote"
version="0.1.0">

	<name>EstimoteBeacon</name>
        <description>Phonegap/Cordova Plugin for Estimote</description>
        <license>MIT</license>
        <keywords>Estimote,Beacons</keywords>
	
	<js-module src="plugin/www/estimotebeacon.js" name="EstimoteBeacon">
		<clobbers target="EstimoteBeacon" />
	</js-module>
	
	<platform name="android">
		<!-- android-specific elements -->
		
		<config-file target="res/xml/config.xml" parent="/*">
       		<feature name="EstimoteBeacon" >
              	<param name="android-package" value="com.sparta.estimote.EstimoteBeacon"/>
        	</feature>
   		</config-file>
		
		<!--Native Permissions-->
		<config-file target="AndroidManifest.xml" parent="/*">
			<uses-permission android:name="android.permission.BLUETOOTH"/>
			<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
			<uses-permission android:name="android.permission.INTERNET"/>
			<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    	</config-file>
		
		<!--Broadcast Receiver-->
		<config-file target="AndroidManifest.xml" parent="/manifest/application">
			<service android:name="com.estimote.sdk.service.BeaconService" android:exported="false"/>
        </config-file>
		
		<framework src="plugin/src/android/estimotebeacon.gradle" custom="true" type="gradleReference" />
		
		<resource-file src="plugin/src/android/estimote-sdk.aar" target="libs/estimote-sdk.aar" />
		
		<source-file src="plugin/src/android/EstimoteBeacon.java" target-dir="src/com/sparta/estimote" />
		
	</platform>
	<platform name="ios">
		<!-- ios-specific elements -->
	</platform>

</plugin>	
