Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 93166a5

Browse files
author
Fatme
authored
Merge pull request #27 from telerik/fatme/device-unique-id
feat: add uniqueId to device object
2 parents 56643ae + dcd02ad commit 93166a5

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-preview-sdk",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Handles the communication to the NativeScript Preview Apps",
55
"main": "src/nativescript-preview-sdk",
66
"typings": "src/nativescript-preview-sdk.d.ts",

src/models/device-connected-message.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export class DeviceConnectedMessage {
22
deviceId: string;
3+
deviceUniqueId: string;
34
deviceName: string;
45
name: string;
56
osVersion: string;

src/models/device.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export class Device {
22
id: string;
3+
uniqueId: string;
34
platform: string;
45
model: string;
56
name: string;

src/services/devices-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class DevicesService {
1010
let isAndroid = this.helpers.areCaseInsensitiveEqual(message.platform, "android");
1111
let device = new Device();
1212
device.id = message.deviceId;
13+
device.uniqueId = message.deviceUniqueId;
1314
device.model = this.getDeviceName(message);
1415
device.name = message.name || device.model;
1516
device.platform = message.platform;

0 commit comments

Comments
 (0)