nativescript-dna-deviceinfo
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -493,18 +493,21 @@ var DeviceInfo_1; | ||
export { DeviceInfo }; | ||
let BluetoothManagerDelegate = class BluetoothManagerDelegate extends NSObject { | ||
static new() { | ||
return super.new(); | ||
var BluetoothManagerDelegate = /** @class */ (function (_super) { | ||
__extends(BluetoothManagerDelegate, _super); | ||
function BluetoothManagerDelegate() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
initWithResolverCallback(resolve) { | ||
BluetoothManagerDelegate.new = function () { | ||
return _super.new.call(this); | ||
}; | ||
BluetoothManagerDelegate.prototype.initWithResolverCallback = function (resolve) { | ||
this.resolve = resolve; | ||
return this; | ||
} | ||
centralManagerDidUpdateState(central) { | ||
this.resolve(central.state === 5); | ||
} | ||
}; | ||
BluetoothManagerDelegate.ObjCProtocols = [CBCentralManagerDelegate]; | ||
BluetoothManagerDelegate = __decorate([ | ||
NativeClass() | ||
], BluetoothManagerDelegate); | ||
}; | ||
BluetoothManagerDelegate.prototype.centralManagerDidUpdateState = function (central) { | ||
this.resolve(central.state === CBManagerState.PoweredOn); | ||
}; | ||
// Note: This ObjCProtocols is needed. | ||
BluetoothManagerDelegate.ObjCProtocols = [CBCentralManagerDelegate]; | ||
return BluetoothManagerDelegate; | ||
}(NSObject)); | ||
//# sourceMappingURL=deviceinfo.ios.js.map |
{ | ||
"name": "nativescript-dna-deviceinfo", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "NativeScript plugin to acquire device information.", | ||
@@ -70,2 +70,4 @@ "main": "deviceinfo", | ||
"IPv4", | ||
"IPv6", | ||
"IP Address", | ||
"Bluetooth", | ||
@@ -72,0 +74,0 @@ "Orientation", |
@@ -13,3 +13,5 @@ | ||
## Changelogs: | ||
- 3.5.0: Fixed runtime errors related to "NativeClass is not defined" observed on NativeScript Version 7 apps. The fix will likely benefit iOS apps. | ||
- 3.4.0: Added "dumpIpAddresses" API. Changed "wifiIpv4Address" and "cellularIpv4Address" to return an IPv4 address string, and their Android implementation is revised. | ||
@@ -16,0 +18,0 @@ - 3.3.1: Fixed a crash related to the retrieval of wifi SSID on iOS 13.0 version and above. |
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
401499
15570
535