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

nativescript-uber

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-uber - npm Package Compare versions

Comparing version 1.2.8 to 1.3.0

references.d.ts

30

package.json
{
"name": "nativescript-uber",
"version": "1.2.8",
"description": "Integration of rides-ios-sdk for Nativescript",
"version": "1.3.0",
"description": "Uber Rides plugin for Nativescript",
"main": "uber-view",

@@ -9,23 +9,20 @@ "typings": "uber-view.d.ts",

"platforms": {
"android": "1.5.1",
"ios": "1.5.1"
"android": "3.0.0",
"ios": "3.0.0"
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "./node_modules/.bin/tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Yamilquery/nativescript-uber.git"
"url": "git+ssh://git@github.com/yamilquery/nativescript-uber.git"
},
"keywords": [
"nativescript",
"uber",
"nativescript-uber",
"rides",
"cabify",
"ios",
"android",
"xcode",
"cocoapods"
"Nativescript",
"Google",
"Maps",
"API",
"SDK"
],

@@ -38,8 +35,7 @@ "author": "Yamil Díaz Aguirre <yamilquery@gmail.com> (https://github.com/yamilquery)",

"homepage": "https://github.com/yamilquery/nativescript-uber#readme",
"dependencies": {},
"devDependencies": {
"tns-core-modules": "^3.0.0",
"tns-platform-declarations": "^3.0.1",
"typescript": "^1.8.0"
"typescript": "^2.3.2"
}
}

@@ -6,10 +6,12 @@ NativeScript plugin for Google Maps SDK

[![NPM version][npm-image]][npm-url] [![Dependency status][david-dm-image]][david-dm-url]
[npm-url]: https://npmjs.org/package/nativescript-google-maps-sdk
[npm-image]: http://img.shields.io/npm/v/nativescript-google-maps-sdk.svg
[david-dm-url]:https://david-dm.org/dapriett/nativescript-google-maps-sdk
[david-dm-image]:https://david-dm.org/dapriett/nativescript-google-maps-sdk.svg
[![NPM version][npm-image]][npm-url]
[![Dependency status][david-dm-image]][david-dm-url]
[![NPM](https://nodei.co/npm/nativescript-google-maps-sdk.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/nativescript-google-maps-sdk)
[npm-url]: https://npmjs.org/package/nativescript-uber
[npm-image]: http://img.shields.io/npm/v/nativescript-uber.svg
[david-dm-url]:https://david-dm.org/dapriett/nativescript-uber
[david-dm-image]:https://david-dm.org/dapriett/nativescript-uber.svg
[![NPM](https://nodei.co/npm/nativescript-uber.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/nativescript-uber)
Prerequisites

@@ -29,3 +31,3 @@ ===

```
tns plugin add nativescript-google-maps-sdk
tns plugin add nativescript-uber
```

@@ -36,3 +38,5 @@

See demo code included [here](https://github.com/dapriett/nativescript-google-maps-sdk/tree/master/demo)
See demo code included [here](https://github.com/dapriett/nativescript-uber/tree/master/demo)
Live Demo [here](https://tinyurl.com/m7ndp7u)

@@ -44,3 +48,3 @@ ## Setup Android API Key

```
cp -r node_modules/nativescript-google-maps-sdk/platforms/android/res/values app/App_Resources/Android/
cp -r node_modules/nativescript-uber/platforms/android/res/values app/App_Resources/Android/
```

@@ -79,5 +83,5 @@

## Adding the MapView
## Adding the UberView
Modify your view by adding the namespace `xmlns:maps="nativescript-google-maps-sdk"` to your page, then using the `<maps:mapView />` tag to create the MapView.
Modify your view by adding the namespace `xmlns:maps="nativescript-uber"` to your page, then using the `<maps:mapView />` tag to create the UberView.

@@ -88,3 +92,3 @@ ```

xmlns="http://www.nativescript.org/tns.xsd"
xmlns:maps="nativescript-google-maps-sdk"
xmlns:maps="nativescript-uber"
>

@@ -134,3 +138,3 @@ <GridLayout>

var mapsModule = require("nativescript-google-maps-sdk");
var mapsModule = require("nativescript-uber");

@@ -175,4 +179,4 @@ function onMapReady(args) {

// Important - must register MapView plugin in order to use in Angular templates
registerElement("MapView", () => require("nativescript-google-maps-sdk").MapView);
// Important - must register UberView plugin in order to use in Angular templates
registerElement("UberView", () => require("nativescript-uber").UberView);

@@ -183,3 +187,3 @@ @Component({

<GridLayout>
<MapView (mapReady)="onMapReady($event)"></MapView>
<UberView (mapReady)="onMapReady($event)"></UberView>
</GridLayout>

@@ -190,3 +194,3 @@ `

@ViewChild("MapView") mapView: ElementRef;
@ViewChild("UberView") mapView: ElementRef;

@@ -200,3 +204,3 @@ //Map events

# Clustering Support (Issue [#57](https://github.com/dapriett/nativescript-google-maps-sdk/issues/57))
# Clustering Support (Issue [#57](https://github.com/dapriett/nativescript-uber/issues/57))

@@ -213,2 +217,2 @@ There is a seperate plugin in development thanks to [@naderio](https://github.com/naderio) - see [nativescript-google-maps-utils](https://github.com/naderio/nativescript-google-maps-utils)

Finally, if you have found an issue with the NativeScript Google Maps SDK itself, or requesting a new feature, please report them here [Issues](https://github.com/dapriett/nativescript-google-maps-sdk/issues).
Finally, if you have found an issue with the NativeScript Google Maps SDK itself, or requesting a new feature, please report them here [Issues](https://github.com/dapriett/nativescript-uber/issues).

@@ -8,3 +8,2 @@ {

"removeComments": true,
"noLib": false,
"preserveConstEnums": true,

@@ -14,19 +13,20 @@ "suppressImplicitAnyIndexErrors": true,

"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true
"noEmitHelpers": true,
"lib": [
"es6",
"dom"
],
"baseUrl": ".",
"paths": {
"*": [
"./node_modules/tns-core-modules/*",
"./node_modules/*"
]
}
},
"filesGlob": [
"./**/*.ts",
"!./node_modules/**/*.ts"
],
"files": [
"uber-view.d.ts",
"uber-view-common.ts",
"uber-view.android.ts",
"uber-view.ios.ts"
],
"exclude": [
"./platforms/**/*.ts"
"node_modules",
"platforms",
"demo"
]
}

@@ -1,4 +0,208 @@

export class UberView {
import { View } from "tns-core-modules/ui/core/view";
import { Property } from "tns-core-modules/ui/core/properties";
import { Image } from "tns-core-modules/ui/image";
import { Color } from "tns-core-modules/color";
import { EventData } from "tns-core-modules/data/observable";
export class Camera {
public latitude: number;
public longitude: number;
public zoom: number;
public bearing: number;
public tilt: number;
}
export class UberView extends View {
public latitude: number;
public longitude: number;
public zoom: number;
public bearing: number;
public tilt: number;
public padding: number;
public notifyMapReady(): void;
public updateCamera(): void;
public setViewport(bounds:Bounds, padding?:number): void;
public updatePadding(): void;
public static mapReadyEvent: string;
public static markerSelectEvent: string;
public static markerInfoWindowTapEvent:string;
public static shapeSelectEvent: string;
public static markerBeginDraggingEvent: string;
public static markerEndDraggingEvent: string;
public static markerDragEvent: string;
public static coordinateTappedEvent: string;
public static coordinateLongPressEvent: string;
public static cameraChangedEvent: string;
public nativeView: any; /* GMSUberView | com.google.android.gms.maps.UberView */
public gMap: any;
public addMarker(marker: Marker): void;
public removeMarker(marker: Marker): void;
public removeAllMarkers(): void;
public findMarker(callback: (marker: Marker) => boolean): Marker;
public notifyMarkerEvent(eventName: string, marker: Marker);
public addPolyline(shape: Polyline): void;
public addPolygon(shape: Polygon): void;
public addCircle(shape: Circle): void;
public removeShape(shape: Shape): void;
public removeAllShapes(): void;
public findShape(callback: (shape: Shape) => boolean): Shape;
public clear(): void;
public setStyle(style: Style): boolean;
}
export const latitudeProperty: Property<UberView, number>;
export const longitudeProperty: Property<UberView, number>;
export const bearingProperty: Property<UberView, number>;
export const zoomProperty: Property<UberView, number>;
export const tiltProperty: Property<UberView, number>;
export const paddingProperty: Property<UberView, number>;
export class Position {
public latitude: number;
public longitude: number;
public static positionFromLatLng(latitude: number, longitude: number): Position;
public ios: any; /* CLLocationCoordinate2D */
public android: any;
}
export class Bounds {
public northeast: Position;
public southwest: Position;
public ios: any; /* GMSCoordinateBounds */
public android: any;
}
export class Marker {
public position: Position;
public rotation: number;
public anchor: Array<number>;
public title: string;
public snippet: string;
public icon: Image;
public alpha: number;
public flat: boolean;
public draggable: boolean;
public visible: boolean;
public zIndex: number;
public showInfoWindow(): void;
public userData: any;
public _map: any;
public ios: any;
public android: any;
}
export class Shape {
public shape: string;
public visible: boolean;
public zIndex: number;
public userData: any;
public _map: any;
public ios: any;
public android: any;
public clickable: boolean;
}
export class Polyline extends Shape {
public width: number;
public color: Color;
public geodesic: boolean;
public addPoint(shape: Position): void;
public addPoints(shapes: Position[]): void;
public removePoint(shape: Position): void;
public removeAllPoints(): void;
public getPoints(): Array<Position>;
}
export class Polygon extends Shape {
public strokeWidth: number;
public strokeColor: Color;
public fillColor: Color;
public addPoint(shape: Position): void;
public addPoints(shapes: Position[]): void;
public removePoint(shape: Position): void;
public removeAllPoints(): void;
public getPoints(): Array<Position>;
}
export class Circle extends Shape {
public center: Position;
public radius: number;
public strokeWidth: number;
public strokeColor: Color;
public fillColor: Color;
}
export class Style extends Array<StyleElement> {
public center: Position;
public radius: number;
public strokeWidth: number;
public strokeColor: Color;
public fillColor: Color;
}
export class StyleElement {
public featureType?: StyleFeatureType;
public elementType?: StyleElementType;
public stylers: Array<StyleStylers>;
}
export type StyleElementType = "all" | "administrative" | "administrative.country" | "administrative.land_parcel" |
"administrative.locality" | "administrative.neighborhoodadministrative.province" | "landscape" |
"landscape.man_made" | "landscape.natural" | "landscape.natural.landcover" | "landscape.natural.terrain" |
"poi" | "poi.attraction" | "poi.business" | "poi.government" | "poi.medical" | "poi.park" |
"poi.place_of_worship" | "poi.school" | "poi.sports_complex" | "road" | "road.arterial" | "road.highway" |
"road.highway.controlled_access" | "road.local" | "transit" | "transit.line" | "transit.station" |
"transit.station.airport" | "transit.station.bus" | "transit.station.rail" | "water";
export type StyleFeatureType = "all" | "geometry" | "geometry.fill" | "geometry.stroke" | "labels" | "labels.icon" |
"labels.text" | "labels.text.fill" | "labels.text.stroke";
export type StyleVisibility = "on" | "off" | "simplified";
export class StyleStylers {
public hue?: string;
public lightness?: number;
public saturation?: number;
public gamma?: number;
public invert_lightness: boolean;
public visibility: StyleVisibility;
public color?: string;
public weight: number;
}
export interface MarkerEventData extends EventData {
marker: Marker;
}
export interface ShapeEventData extends EventData {
shape: Shape;
}
export interface CameraEventData extends EventData {
camera: Camera;
}
export interface PositionEventData extends EventData {
position: Position;
}

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