nativescript-dna-deviceinfo
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -151,10 +151,12 @@ "use strict"; | ||
var cellularProviders = sm.getActiveSubscriptionInfoList(); | ||
for (var i = 0; i < cellularProviders.size(); i++) { | ||
var carrier = DeviceInfo_1.prepareCarrier(cellularProviders.get(i)); | ||
if (carrier.mobileCountryCode === DeviceInfo_1.activeProviderMcc() && | ||
carrier.mobileNetworkCode === DeviceInfo_1.activeProviderMnc()) { | ||
carrier.networkType = DeviceInfo_1.activeProviderRadioAccessTechnology(); | ||
carrier.generation = deviceinfo_interface_1.wirelessCellularGenerator(carrier.networkType); | ||
if (cellularProviders) { | ||
for (var i = 0; i < cellularProviders.size(); i++) { | ||
var carrier = DeviceInfo_1.prepareCarrier(cellularProviders.get(i)); | ||
if (carrier.mobileCountryCode === DeviceInfo_1.activeProviderMcc() && | ||
carrier.mobileNetworkCode === DeviceInfo_1.activeProviderMnc()) { | ||
carrier.networkType = DeviceInfo_1.activeProviderRadioAccessTechnology(); | ||
carrier.generation = deviceinfo_interface_1.wirelessCellularGenerator(carrier.networkType); | ||
} | ||
carriers.push(carrier); | ||
} | ||
carriers.push(carrier); | ||
} | ||
@@ -161,0 +163,0 @@ } |
{ | ||
"name": "nativescript-dna-deviceinfo", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "NativeScript plugin to acquire device information.", | ||
@@ -5,0 +5,0 @@ "main": "deviceinfo", |
@@ -171,3 +171,3 @@ | ||
Returns a list of GSM network providers, *Carrier*, of a device is equipped with. | ||
Returns a list of GSM network providers, *Carrier*, in use by device. In absence of adequate permission, returns empty *Carrier* list. | ||
@@ -237,3 +237,3 @@ ```javascript | ||
Returns service set identifier(SSID) of a wireless local area network (WLAN). In the absence of right permissions, returns an empty string. | ||
Returns service set identifier(SSID) of a wireless local area network (WLAN). In absence of right permissions, returns an empty string. | ||
@@ -338,3 +338,3 @@ ```javascript | ||
Returns Promise which resolves to 'true' if Location Service is enabled and the app has permission to access it, otherwise false. | ||
Depending on the state of Location Service and the app permission, returned Promise may resolve to 'true' or 'false'. In the absence of appropriate permission, rejected Promise is returned. | ||
@@ -359,3 +359,3 @@ ```javascript | ||
Returns Promise which resolves to 'true' if Bluetooth is enabled, otherwise false. | ||
Depending on the state of Bluetooth and the app permission, returned Promise may resolve to 'true' or 'false'. In the absence of appropriate permission, rejected Promise is returned. | ||
@@ -382,3 +382,3 @@ ```javascript | ||
```javascript | ||
printDeviceInfo() { | ||
async printDeviceInfo() { | ||
console.log("Free memory: ", formatBytes(DeviceInfo.freeMemory())); | ||
@@ -448,2 +448,3 @@ console.log("Total memory: ", formatBytes(DeviceInfo.totalMemory())); | ||
- 2.4.1: Updated documentation. | ||
- 2.4.2: Handled crash in the API *cellularServiceProviders* for the Android platform. | ||
@@ -450,0 +451,0 @@ ## License |
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
368023
14743
448