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
259
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 3.0.0-beta.3 to 3.0.0-rc.1

11

CHANGELOG.md
<!-- markdownlint-disable MD024 MD034 MD033 -->
# Release Notes
## 3.0.0-rc.3
## 3.0.0-rc.1
* fix incorrect use of macos for API selection vs ios in rc.3, rendering ios builds mostly useless
* verified last of the v2->v3 discrepancies, this is a release candidate now
## 3.0.0-beta.3
* fix some real android device v2->v3 discrepancies

@@ -10,7 +15,7 @@ * BREAKING CHANGE: more capitalization changes for API calls to standardize (see below)

## 3.0.0-rc.2
## 3.0.0-beta.2
* fix all emulator/simulator v2->v3 discrepancies
## 3.0.0-rc.1
## 3.0.0-beta.1

@@ -17,0 +22,0 @@ Each BREAKING CHANGE contains the required information to migrate. The example App.js shows sample usage.

@@ -379,3 +379,3 @@ /**

export async function getIpAddress() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getIpAddress();

@@ -394,3 +394,3 @@ }

export async function getMacAddress() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getMacAddress();

@@ -402,3 +402,3 @@ }

export async function getDeviceId() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getDeviceId();

@@ -410,3 +410,3 @@ }

export async function getManufacturer() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getSystemManufacturer();

@@ -445,3 +445,3 @@ }

export async function getBrand() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getBrand();

@@ -453,3 +453,3 @@ }

export async function getSystemName() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getSystemName();

@@ -461,3 +461,3 @@ }

export async function getSystemVersion() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getSystemVersion();

@@ -469,3 +469,3 @@ }

export async function getBuildId() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getBuildId();

@@ -484,3 +484,3 @@ }

export async function getBundleId() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getBundleId();

@@ -492,3 +492,3 @@ }

export async function getApplicationName() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getAppName();

@@ -500,3 +500,3 @@ }

export async function getBuildNumber() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getBuildNumber();

@@ -508,3 +508,3 @@ }

export async function getVersion() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getAppVersion();

@@ -520,3 +520,3 @@ }

export async function getDeviceName() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getDeviceName();

@@ -528,3 +528,3 @@ }

export async function getUsedMemory() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getUsedMemory();

@@ -536,3 +536,3 @@ }

export async function getUserAgent() {
if (OS === 'android' || OS === 'macos' || OS === 'web') {
if (OS === 'android' || OS === 'ios' || OS === 'web') {
return RNDeviceInfo.getUserAgent();

@@ -544,3 +544,3 @@ }

export async function getFontScale() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getFontScale();

@@ -650,3 +650,3 @@ }

export async function isEmulator() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.isEmulator();

@@ -658,3 +658,3 @@ }

export async function isTablet() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.isTablet();

@@ -666,3 +666,3 @@ }

export async function isPinOrFingerprintSet() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.isPinOrFingerprintSet();

@@ -714,3 +714,3 @@ }

export async function getCarrier() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getCarrier();

@@ -722,3 +722,3 @@ }

export async function getTotalMemory() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getTotalMemory();

@@ -737,3 +737,3 @@ }

export async function getTotalDiskCapacity() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getTotalDiskCapacity();

@@ -745,3 +745,3 @@ }

export async function getFreeDiskStorage() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getFreeDiskStorage();

@@ -753,3 +753,3 @@ }

export async function getBatteryLevel() {
if (OS === 'android' || OS === 'macos' || OS === 'windows') {
if (OS === 'android' || OS === 'ios' || OS === 'windows') {
return RNDeviceInfo.getBatteryLevel();

@@ -761,3 +761,3 @@ }

export async function getPowerState() {
if (OS === 'macos') {
if (OS === 'ios') {
return RNDeviceInfo.getPowerState();

@@ -769,3 +769,3 @@ }

export async function isBatteryCharging() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.isBatteryCharging();

@@ -789,3 +789,3 @@ }

export async function getDeviceType() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getDeviceType();

@@ -797,3 +797,3 @@ }

export async function supportedAbis() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getSupportedAbis();

@@ -833,3 +833,3 @@ }

export async function isLocationEnabled() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.isLocationEnabled();

@@ -841,3 +841,3 @@ }

export async function getAvailableLocationProviders() {
if (OS === 'android' || OS === 'macos') {
if (OS === 'android' || OS === 'ios') {
return RNDeviceInfo.getAvailableLocationProviders();

@@ -844,0 +844,0 @@ }

{
"name": "react-native-device-info",
"version": "3.0.0-beta.3",
"version": "3.0.0-rc.1",
"description": "Get device information using react-native",

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

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