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

react-native-device-info

Package Overview
Dependencies
Maintainers
5
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-device-info - npm Package Compare versions

Comparing version 2.1.4 to 2.2.0

3

CHANGELOG.md

@@ -5,2 +5,5 @@ ## Release Notes

### 2.2.0
* feat: sync some methods from flutter (https://github.com/react-native-community/react-native-device-info/pull/711)
### 2.1.4

@@ -7,0 +10,0 @@ * fix: additional checking in simulation method (https://github.com/react-native-community/react-native-device-info/pull/710)

@@ -44,2 +44,16 @@ // should be imported this way:

getFontScale: () => number;
getBootloader: () => string;
getDevice: () => string;
getDisplay: () => string;
getFingerprint: () => string;
getHardware: () => string;
getHost: () => string;
getProduct: () => string;
getTags: () => string;
getType: () => string;
getBaseOS: () => string;
getPreviewSdkInt: () => number;
getSecurityPatch: () => string;
getCodename: () => string;
getIncremental: () => string;
is24Hour: () => boolean;

@@ -72,2 +86,4 @@ isPinOrFingerprintSet(): (

supportedABIs: () => string[];
supported32BitAbis: () => string[];
supported64BitAbis: () => string[];
hasSystemFeature: (feature: string) => Promise<boolean>;

@@ -74,0 +90,0 @@ getSystemAvailableFeatures: () => Promise<string[]>;

@@ -447,2 +447,44 @@ /**

},
getBootloader: function() {
return RNDeviceInfo.bootloader;
},
getDevice: function() {
return RNDeviceInfo.device;
},
getDisplay: function() {
return RNDeviceInfo.display;
},
getFingerprint: function() {
return RNDeviceInfo.fingerprint;
},
getHardware: function() {
return RNDeviceInfo.hardware;
},
getHost: function() {
return RNDeviceInfo.host;
},
getProduct: function() {
return RNDeviceInfo.product;
},
getTags: function() {
return RNDeviceInfo.tags;
},
getType: function() {
return RNDeviceInfo.type;
},
getBaseOS: function() {
return RNDeviceInfo.baseOS;
},
getPreviewSdkInt: function() {
return RNDeviceInfo.previewSdkInt;
},
getSecurityPatch: function() {
return RNDeviceInfo.securityPatch;
},
getCodename: function() {
return RNDeviceInfo.codename;
},
getIncremental: function() {
return RNDeviceInfo.incremental;
},
isEmulator: function() {

@@ -524,2 +566,8 @@ return RNDeviceInfo.isEmulator;

},
supported32BitAbis: function() {
return RNDeviceInfo.supported32BitAbis;
},
supported64BitAbis: function() {
return RNDeviceInfo.supported64BitAbis;
},
hasSystemFeature: function(feature) {

@@ -526,0 +574,0 @@ return RNDeviceInfo.hasSystemFeature(feature);

2

package.json
{
"name": "react-native-device-info",
"version": "2.1.4",
"version": "2.2.0",
"description": "Get device information using react-native",

@@ -5,0 +5,0 @@ "main": "deviceinfo.js",

@@ -252,3 +252,5 @@ # react-native-device-info

| [getApplicationName()](#getapplicationname) | `string` | ✅ | ✅ | ✅ | 0.14.0 |
| [getBaseOS()](#getbaseOS) | `string` | ❌ | ✅ | ❌ | ? |
| [getBatteryLevel()](#getbatterylevel) | `Promise<number>` | ✅ | ✅ | ✅ | 0.18.0 |
| [getBootloader()](#getbootloader) | `string` | ❌ | ✅ | ❌ | ? |
| [getBrand()](#getbrand) | `string` | ✅ | ✅ | ✅ | 0.9.3 |

@@ -259,11 +261,18 @@ | [getBuildNumber()](#getbuildnumber) | `string` | ✅ | ✅ | ✅ | ? |

| [getCarrier()](#getcarrier) | `string` | ✅ | ✅ | ❌ | 0.13.0 |
| [getCodename()](#getcodename) | `string` | ❌ | ✅ | ❌ | ? |
| [getDevice()](#getdevice) | `string` | ❌ | ✅ | ❌ | ? |
| [getDeviceCountry()](#getdevicecountry) | `string` | ✅ | ✅ | ✅ | 0.9.0 |
| [getDeviceId()](#getdeviceid) | `string` | ✅ | ✅ | ✅ | 0.5.0 |
| [getDeviceLocale()](#getdevicelocale) | `string` | ✅ | ✅ | ✅ | 0.7.0 |
| [getDisplay()](#getdisplay) | `string` | ❌ | ✅ | ❌ | ? |
| [getPreferredLocales()](#getpreferredlocale) | `Array<string>` | ✅ | ✅ | ❌ | ? |
| [getDeviceName()](#getdevicename) | `string` | ✅ | ✅ | ✅ | ? |
| [getFirstInstallTime()](#getfirstinstalltime) | `number` | ❌ | ✅ | ✅ | 0.12.0 |
| [getFingerprint()](#getfingerprint) | `string` | ❌ | ✅ | ❌ | ? |
| [getFontScale()](#getfontscale) | `number` | ✅ | ✅ | ❌ | 0.15.0 |
| [getFreeDiskStorage()](#getfreediskstorage) | `number` | ✅ | ✅ | ❌ | 0.15.0 |
| [getHardware()](#gethardware) | `string` | ❌ | ✅ | ❌ | ? |
| [getHost()](#gethost) | `string` | ❌ | ✅ | ❌ | ? |
| [getIPAddress()](#getipaddress) | `Promise<string>` | ✅ | ✅ | ✅ | 0.12.0 |
| [getIncremental()](#getincremental) | `string` | ❌ | ✅ | ❌ | ? |
| [getInstallReferrer()](#getinstallreferrer) | `string` | ❌ | ✅ | ❌ | 0.19.0 |

@@ -278,7 +287,12 @@ | [getInstanceID()](#getinstanceid) | `string` | ❌ | ✅ | ❌ | ? |

| [getPowerState()](#getpowerstate) | `Promise<object>` | ✅ | ❌ | ❌ | |
| [getProduct()](#getproduct) | `string` | ❌ | ✅ | ❌ | ? |
| [getPreviewSdkInt()](#getPreviewSdkInt) | `number` | ❌ | ✅ | ❌ | ? |
| [getReadableVersion()](#getreadableversion) | `string` | ✅ | ✅ | ✅ | ? |
| [getSerialNumber()](#getserialnumber) | `string` | ❌ | ✅ | ❌ | 0.12.0 |
| [getSecurityPatch()](#getsecuritypatch) | `string` | ❌ | ✅ | ❌ | ? |
| [getSystemName()](#getsystemname) | `string` | ✅ | ✅ | ✅ | ? |
| [getSystemVersion()](#getsystemversion) | `string` | ✅ | ✅ | ✅ | ? |
| [getBuildId()](#getbuildid) | `string` | ✅ | ✅ | ❌ | ? |
| [getTags()](#gettags) | `string` | ❌ | ✅ | ❌ | ? |
| [getType()](#gettype) | `string` | ❌ | ✅ | ❌ | ? |
| [getTimezone()](#gettimezone) | `string` | ✅ | ✅ | ✅ | ? |

@@ -301,2 +315,4 @@ | [getTotalDiskCapacity()](#gettotaldiskcapacity) | `number` | ✅ | ✅ | ❌ | 0.15.0 |

| [isAutoTimeZone()](#isAutoTimeZone) | `Promise<boolean>` | ❌ | ✅ | ❌ | 0.29.0 |
| [supported32BitAbis()](#supported32BitAbis) | `string[]` | ❌ | ✅ | ❌ | ? |
| [supported64BitAbis()](#supported64BitAbis | `string[]` | ❌ | ✅ | ❌ | ? |
| [supportedABIs()](#supportedABIs) | `string[]` | ✅ | ✅ | ❌ | 1.1.0 |

@@ -342,2 +358,15 @@ | [hasSystemFeature()](#hassystemfeaturefeature) | `Promise<boolean>` | ❌ | ✅ | ❌ | ? |

### getBaseOS()
The base OS build the product is based on.
**Examples**
```js
const baseOS = DeviceInfo.getBaseOS();
```
---
### getBatteryLevel()

@@ -370,2 +399,16 @@

### getBootloader()
The system bootloader version number.
**Examples**
```js
const bootloader = DeviceInfo.getBootloader();
// "mw8998-002.0069.00"
```
---
### getBrand()

@@ -454,2 +497,29 @@

### getCodename()
The current development codename, or the string "REL" if this is a release build.
**Examples**
```js
const codename = DeviceInfo.getCodename();
// "REL"
```
---
### getDevice()
The name of the industrial design.
**Examples**
```js
const device = DeviceInfo.getDevice();
// "walleye"
```
---
### getDeviceCountry()

@@ -499,2 +569,16 @@

### getDisplay()
A build ID string meant for displaying to the user.
**Examples**
```js
const display = DeviceInfo.getDisplay();
// "OPM2.171026.006.G1"
```
---
### getPreferredLocales()

@@ -550,2 +634,16 @@

### getFingerprint()
A string that uniquely identifies this build.
**Examples**
```js
const fingerprint = DeviceInfo.getFingerprint();
// "google/walleye/walleye:8.1.0/OPM2.171026.006.G1/4820017:user/release-keys"
```
---
### getFontScale()

@@ -594,2 +692,30 @@

### getHardware()
The name of the hardware (from the kernel command line or /proc).
**Examples**
```js
const hardware = DeviceInfo.getHardware();
// "walleye"
```
---
### getHost()
Hostname
**Examples**
```js
const host = DeviceInfo.getHost();
// "wprd10.hot.corp.google.com"
```
---
### getIPAddress()

@@ -617,2 +743,16 @@

### getIncremental()
The internal value used by the underlying source control to represent this build.
**Examples**
```js
const incremental = DeviceInfo.getIncremental();
// "4820017"
```
---
### getInstallReferrer()

@@ -774,2 +914,30 @@

### getProduct()
The name of the overall product.
**Examples**
```js
const product = DeviceInfo.getProduct();
// "walleye"
```
---
### getPreviewSdkInt()
The developer preview revision of a prerelease SDK.
**Examples**
```js
const previewSdkInt = DeviceInfo.getPreviewSdkInt();
// 0
```
---
### getReadableVersion()

@@ -807,2 +975,16 @@

### getSecurityPatch()
The user-visible security patch level.
**Examples**
```js
const securityPatch = DeviceInfo.getSecurityPatch();
// "2018-07-05"
```
---
### getSystemName()

@@ -857,2 +1039,30 @@

### getTags()
Comma-separated tags describing the build.
**Examples**
```js
const tags = DeviceInfo.getTags();
// "release-keys, unsigned, debug",
```
---
### getType()
The type of build.
**Examples**
```js
const type = DeviceInfo.getType();
// "user", "eng"
```
---
### getTimezone()

@@ -1109,2 +1319,30 @@

### supported32BitAbis()
An ordered list of 32 bit ABIs supported by this device.
**Examples**
```js
const supported32BitAbis = DeviceInfo.supported32BitAbis();
// ["armeabi-v7a", "armeabi"]
```
---
### supported64BitAbis()
An ordered list of 64 bit ABIs supported by this device.
**Examples**
```js
const supported64BitAbis = DeviceInfo.supported64BitAbis();
// ["arm64-v8a"]
```
---
### supportedABIs()

@@ -1111,0 +1349,0 @@

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