Commit e2e7212e authored by Chris Scott's avatar Chris Scott

Move the js reference window.plugins.backgroundGeoLocation ->...

Move the js reference window.plugins.backgroundGeoLocation -> window.BackgroundGeolocation:  Cordova 5 is clobbering my clobbers statement I'm finding personally as well as reported by others.  While I was in here, I changed the remaining name-style references of BackgroundGeoLocation -> BackgroundGeolocation.  Change dependency-style to npm-style with a note and commented-out pre-Cordova style
parent dbbd0b7d
......@@ -3,7 +3,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.transistorsoft.cordova.background-geolocation"
version="0.5.2">
version="0.5.3">
<name>BackgroundGeolocation</name>
<description>Sophisticated, battery-efficient background-geolocation plugin for Cordova</description>
<license>MIT</license>
......@@ -13,10 +13,16 @@
<engine name="cordova" version=">=3.0.0" />
</engines>
<!--
Pre-Cordova 5, non-npm plugin reference. Uncomment this if you're not using Cordova 5.
<dependency id="org.apache.cordova.dialogs" />
-->
<js-module src="www/BackgroundGeoLocation.js" name="BackgroundGeoLocation">
<clobbers target="plugins.backgroundGeoLocation" />
<!-- Cordova 5 npm-style plugin referernce. Comment this out if you're not using Cordova 5 -->
<dependency id="cordova-plugin-dialogs" />
<js-module src="www/BackgroundGeolocation.js" name="BackgroundGeolocation">
<clobbers target="window.BackgroundGeolocation" />
</js-module>
<!-- android -->
......@@ -51,7 +57,7 @@
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BackgroundGeoLocation">
<feature name="BackgroundGeolocation">
<param name="android-package" value="com.transistorsoft.cordova.bggeo.CDVBackgroundGeolocation"/>
</feature>
</config-file>
......@@ -61,7 +67,7 @@
<!-- required background modes: App registers for location updates -->
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>This app requires background location tracking</string>
<string>TSLocationManager requires background location tracking</string>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
......@@ -71,7 +77,7 @@
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="BackgroundGeoLocation">
<feature name="BackgroundGeolocation">
<param name="ios-package" value="CDVBackgroundGeolocation"/>
</feature>
</config-file>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment