@ionic-native/geolocation
Advanced tools
Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3
@@ -127,3 +127,3 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
*/ | ||
export declare class Geolocation extends IonicNativePlugin { | ||
export declare class GeolocationOriginal extends IonicNativePlugin { | ||
/** | ||
@@ -156,1 +156,3 @@ * Get the device's current position. | ||
} | ||
export declare const Geolocation: GeolocationOriginal; |
25
index.js
@@ -13,8 +13,8 @@ var __extends = (this && this.__extends) || (function () { | ||
import { Observable } from 'rxjs/Observable'; | ||
var Geolocation = (function (_super) { | ||
var GeolocationOriginal = /** @class */ (function (_super) { | ||
__extends(Geolocation, _super); | ||
function Geolocation() { | ||
function GeolocationOriginal() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
Geolocation.prototype.getCurrentPosition = function (options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); }; | ||
GeolocationOriginal.prototype.getCurrentPosition = function (options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); }; | ||
/** | ||
@@ -38,3 +38,3 @@ * Watch the current device's position. Clear the watch by unsubscribing from | ||
*/ | ||
Geolocation.prototype.watchPosition = function (options) { | ||
GeolocationOriginal.prototype.watchPosition = function (options) { | ||
return new Observable(function (observer) { | ||
@@ -45,12 +45,13 @@ var watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); | ||
}; | ||
Geolocation.pluginName = "Geolocation"; | ||
Geolocation.plugin = "cordova-plugin-geolocation"; | ||
Geolocation.pluginRef = "navigator.geolocation"; | ||
Geolocation.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
Geolocation.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
Geolocation.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
Geolocation.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
return Geolocation; | ||
GeolocationOriginal.pluginName = "Geolocation"; | ||
GeolocationOriginal.plugin = "cordova-plugin-geolocation"; | ||
GeolocationOriginal.pluginRef = "navigator.geolocation"; | ||
GeolocationOriginal.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
GeolocationOriginal.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
GeolocationOriginal.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
GeolocationOriginal.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
return GeolocationOriginal; | ||
}(IonicNativePlugin)); | ||
var Geolocation = new GeolocationOriginal(); | ||
export { Geolocation }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGx1Z2lucy9nZW9sb2NhdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQ0EsT0FBTywwQ0FBc0MsTUFBTSxvQkFBb0IsQ0FBQztBQUN4RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7O0lBOEpaLCtCQUFpQjs7OztJQVdoRCx3Q0FBa0IsYUFBQyxPQUE0QjtJQUUvQzs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FpQkc7SUFDSCxtQ0FBYSxHQUFiLFVBQWMsT0FBNEI7UUFDeEMsTUFBTSxDQUFDLElBQUksVUFBVSxDQUNuQixVQUFDLFFBQWE7WUFDWixJQUFJLE9BQU8sR0FBRyxTQUFTLENBQUMsV0FBVyxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ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BcbiAgICpcbiAgICogQHBhcmFtIHtHZW9sb2NhdGlvbk9wdGlvbnN9IG9wdGlvbnMgIFRoZSBbZ2VvbG9jYXRpb24gb3B0aW9uc10oaHR0cHM6Ly9kZXZlbG9wZXIubW96aWxsYS5vcmcvZW4tVVMvZG9jcy9XZWIvQVBJL1Bvc2l0aW9uT3B0aW9ucykuXG4gICAqIEByZXR1cm5zIHtPYnNlcnZhYmxlPEdlb3Bvc2l0aW9uPn0gUmV0dXJucyBhbiBPYnNlcnZhYmxlIHRoYXQgbm90aWZpZXMgd2l0aCB0aGUgW3Bvc2l0aW9uXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvUG9zaXRpb24pIG9mIHRoZSBkZXZpY2UsIG9yIGVycm9ycy5cbiAgICovXG4gIHdhdGNoUG9zaXRpb24ob3B0aW9ucz86IEdlb2xvY2F0aW9uT3B0aW9ucyk6IE9ic2VydmFibGU8R2VvcG9zaXRpb24+IHtcbiAgICByZXR1cm4gbmV3IE9ic2VydmFibGU8R2VvcG9zaXRpb24+KFxuICAgICAgKG9ic2VydmVyOiBhbnkpID0+IHtcbiAgICAgICAgbGV0IHdhdGNoSWQgPSBuYXZpZ2F0b3IuZ2VvbG9jYXRpb24ud2F0Y2hQb3NpdGlvbihvYnNlcnZlci5uZXh0LmJpbmQob2JzZXJ2ZXIpLCBvYnNlcnZlci5uZXh0LmJpbmQob2JzZXJ2ZXIpLCBvcHRpb25zKTtcbiAgICAgICAgcmV0dXJuICgpID0+IG5hdmlnYXRvci5nZW9sb2NhdGlvbi5jbGVhcldhdGNoKHdhdGNoSWQpO1xuICAgICAgfVxuICAgICk7XG4gIH1cblxufVxuIl19 |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { Observable } from 'rxjs/Observable'; | ||
var Geolocation = (function (_super) { | ||
var Geolocation = /** @class */ (function (_super) { | ||
__extends(Geolocation, _super); | ||
@@ -23,0 +23,0 @@ function Geolocation() { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"Coordinates":{"__symbolic":"interface"},"Geoposition":{"__symbolic":"interface"},"PositionError":{"__symbolic":"interface"},"GeolocationOptions":{"__symbolic":"interface"},"Geolocation":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"getCurrentPosition":[{"__symbolic":"method"}],"watchPosition":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"Coordinates":{"__symbolic":"interface"},"Geoposition":{"__symbolic":"interface"},"PositionError":{"__symbolic":"interface"},"GeolocationOptions":{"__symbolic":"interface"},"Geolocation":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":160,"character":33},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":159,"character":1}}],"members":{"getCurrentPosition":[{"__symbolic":"method"}],"watchPosition":[{"__symbolic":"method"}]}}}}] |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/geolocation","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.2"},"version":"5.0.0-alpha.2"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/geolocation","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.3"},"version":"5.0.0-alpha.3"} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34023
5
273