New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-pixlive

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-pixlive - npm Package Compare versions

Comparing version 1.2.12 to 1.2.14

2

package.json
{
"version": "1.2.12",
"version": "1.2.14",
"name": "cordova-plugin-pixlive",

@@ -4,0 +4,0 @@ "cordova_name": "PixLive",

@@ -23,3 +23,3 @@ # Cordova plugin for PixLive SDK [https://github.com/vidinoti/cordova-plugin-PixLive](https://github.com/vidinoti/cordova-plugin-PixLive)

```bash
cordova create myArApp com.mycompany.myArApp myArApp --template https://github.com/vidinoti/cordova-template-PixLive.git
cordova create myArApp com.mycompany.myArApp myArApp --template git://github.com/vidinoti/cordova-template-PixLive.git
```

@@ -26,0 +26,0 @@

@@ -87,3 +87,4 @@ #!/usr/bin/env node

"NSLocationUsageDescription":"$APP_NAME tailors content based on your location.",
"NSLocationWhenInUseUsageDescription":"$APP_NAME tailors content based on your location."
"NSLocationWhenInUseUsageDescription":"$APP_NAME tailors content based on your location.",
"NSBluetoothPeripheralUsageDescription":"$APP_NAME tailors content based on your location."
},

@@ -94,3 +95,4 @@ 'fr': {

"NSLocationUsageDescription": "$APP_NAME vous fournit du contenu personnalisé en utilisant votre position.",
"NSLocationWhenInUseUsageDescription": "$APP_NAME vous fournit du contenu personnalisé en utilisant votre position."
"NSLocationWhenInUseUsageDescription": "$APP_NAME vous fournit du contenu personnalisé en utilisant votre position.",
"NSBluetoothPeripheralUsageDescription": "$APP_NAME vous fournit du contenu personnalisé en utilisant votre position."
},

@@ -101,3 +103,4 @@ 'de': {

"NSLocationUsageDescription": "$APP_NAME liefert den passenden Inhalt zu Ihrem Standort.",
"NSLocationWhenInUseUsageDescription": "$APP_NAME liefert den passenden Inhalt zu Ihrem Standort."
"NSLocationWhenInUseUsageDescription": "$APP_NAME liefert den passenden Inhalt zu Ihrem Standort.",
"NSBluetoothPeripheralUsageDescription": "$APP_NAME liefert den passenden Inhalt zu Ihrem Standort."
},

@@ -108,4 +111,4 @@ 'nl': {

"NSLocationUsageDescription": "$APP_NAME maakt gebruik van uw locatie om u gepersonaliseerde content aan te bieden.",
"NSLocationWhenInUseUsageDescription": "$APP_NAME maakt gebruik van uw locatie om u gepersonaliseerde content aan te bieden."
"NSLocationWhenInUseUsageDescription": "$APP_NAME maakt gebruik van uw locatie om u gepersonaliseerde content aan te bieden.",
"NSBluetoothPeripheralUsageDescription": "$APP_NAME maakt gebruik van uw locatie om u gepersonaliseerde content aan te bieden."
}

@@ -159,2 +162,4 @@ };

var f = path.join(xcodeProjectPath,languages[i]+'.lproj','InfoPlist.strings');
console.log('path infoPlist.strings ' + f);
var fLoc = path.join(xcodeProjectPath,languages[i]+'.lproj','Localizable.strings');

@@ -215,3 +220,3 @@ try {

name: 'InfoPlist.strings',
path: '../..',
path: 'Base.lproj/InfoPlist.strings',
sourceTree: '"<group>"'

@@ -224,3 +229,3 @@ };

name: 'Localizable.strings',
path: '../..',
path: 'Base.lproj/Localizable.strings',
sourceTree: '"<group>"'

@@ -227,0 +232,0 @@ };

@@ -52,2 +52,45 @@ var exec = require('cordova/exec');

/**
* GPSPoint
* @class
*/
PixLive.GPSPoint = function(prop) {
// Apply properties to the context object
var keys = Object.keys(prop);
for (var j = keys.length - 1; j >= 0; j--) {
this[keys[j]] = prop[keys[j]];
}
};
PixLive.GPSPoint.prototype = {
/**
* Returns the latitude of the GPS point
*/
getLat: function() {
return this.lat;
},
/**
* Returns the longitude of the GPS point
*/
getLon: function() {
return this.lon;
},
/**
* Returns the detection radius of the GPS point (a null value means unlimited)
*/
getDetectionRadius: function() {
return this.detectionRadius;
},
/**
* Returns the context ID of the context corresponding to the GPS point
*/
getContextId: function() {
return this.contextId;
}
};
PixLive.prototype = {

@@ -135,3 +178,3 @@ /**

* <li> [] if you do not want to use tags, all the contexts from the linked PixLive Maker account will be synchronized
* <li> ['tag1','tag2'] to synchronize with the contexts that are tagged with tag1 and tag2
* <li> ['tag1','tag2'] to synchronize with the contexts that are tagged with tag1 or tag2
* <li> [['tag1','tag2'], 'tag3'] to synchronize with the contexts that are tagged with (tag1 and tag2) or tag3

@@ -162,2 +205,36 @@ * </ul>

/**
* Will show the list of "nearby" contents. It can be either geolocalized points (GPS points)
* or beacons. If called with the coordinates (0, 0), a loading wheel (progress bar) will
* be displayed for indicating that the position is being acquired. The list can then be
* reloaded by calling the function PixLive.refreshNearbyList.
*
* @param {float} latitude - the current latitude
* @param {float} longitude - the current longitude
* @param {callback} success - success callback
* @param {callback} error - error callback
*/
PixLive.presentNearbyList = function (latitude, longitude, success, error) {
if( (!latitude && latitude != 0) || (!longitude && longitude != 0) ) {
exec(success, error, "PixLive", "presentNearbyList", []);
} else {
exec(success, error, "PixLive", "presentNearbyList", [latitude, longitude]);
}
}
/**
* If the list displaying the nearby GPS point is displayed, calling this function
* will reload the nearby elements according to the new given coordinate.
* The beacon list will be refreshed as well.
*
* @param {float} latitude - the current latitude
* @param {float} longitude - the current longitude
* @param {callback} success - success callback
* @param {callback} error - error callback
*/
PixLive.refreshNearbyList = function (latitude, longitude, success, error) {
exec(success, error, "PixLive", "refreshNearbyList", [latitude, longitude]);
}
/**
* Will open an url with the PixLive SDK internal browser

@@ -208,2 +285,59 @@ * @param {string} url - The url

/**
* The callback success is called with the distance
* @param {Number} lat1 latitude of point 1
* @param {Number} lon1 longitude of point 1
* @param {Number} lat2 latitude of point 2
* @param {Number} lon2 longitude of point 2
* @param {callback} success(list) - success callback with distance
* @param {callback} error - error callback
*/
PixLive.computeDistanceBetweenGPSPoints = function(lat1, lon1, lat2, lon2, success, error) {
exec(success, error, "PixLive", "computeDistanceBetweenGPSPoints", [lat1,lon1,lat2,lon2]);
};
/**
* Returns the list of nearby GPS points
* @param {Number} myLat current latitude
* @param {Number} myLon current longitude
* @param {callback} success(list) - success callback with the list of GPSPoint
* @param {callback} error - error callback
*/
PixLive.getNearbyGPSPoints = function(myLat, myLon, success, error) {
exec(function(list) {
if(success !== null) {
var ret = [];
for (var i = 0; i < list.length; i++) {
var prop = list[i];
var object = new PixLive.GPSPoint(prop);
ret.push(object);
}
success(ret);
}
}, error, "PixLive", "getNearbyGPSPoints", [myLat,myLon]);
};
/**
* Returns the list of GPS points in the bounding box specified by its lower left and uper right corner
* @param {Number} latitude of the lower left corner
* @param {Number} longitude of the lower left corner
* @param {Number} latitude of the uper right corner
* @param {Number} longitude of the uper right corner
* @param {callback} success(list) - success callback with the list of GPSPoint
* @param {callback} error - error callback
*/
PixLive.getGPSPointsInBoundingBox = function(minLat, minLon, maxLat, maxLon, success, error) {
exec(function(list) {
if(success !== null) {
var ret = [];
for (var i = 0; i < list.length; i++) {
var prop = list[i];
var object = new PixLive.GPSPoint(prop);
ret.push(object);
}
success(ret);
}
}, error, "PixLive", "getGPSPointsInBoundingBox", [minLat,minLon,maxLat,maxLon]);
};
/**
* Activates the bookmark feature. A bookmark icon will be shown when a context is

@@ -210,0 +344,0 @@ * displayed and the user has the possibility to "save" the context.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc