Recent Releases of https://github.com/react-native-device-info/react-native-device-info

https://github.com/react-native-device-info/react-native-device-info - v14.0.4

14.0.4 (2025-02-03)

Bug Fixes

  • android: quiet a build warning for users (07017cb)

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v14.0.3

14.0.3 (2025-02-03)

Bug Fixes

  • android: restore compatibility for Android <= 23 (75ea74e)

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v14.0.2

14.0.2 (2024-12-17)

Bug Fixes

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v14.0.1

14.0.1 (2024-11-23)

Bug Fixes

  • windows: Update RNDeviceInfoCPP.h for windows on ARM CPU arch on windows (#1679) (b2c7c4f)

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v14.0.0

14.0.0 (2024-10-26)

  • fix(android)!: remove AD_ID permission by removing auto-addition of play-services-iid (#1673) (5009115), closes #1673

BREAKING CHANGES

  • removed default fallback getDeviceId via play-services-iid dependency

This dependency has the unfortunate side effect of including AD_ID permission, which is not permissible for many types of applications.

If you relied on this functionality in getDeviceId you will need to define googlePlayServicesIidVersion in your android gradle build files ext version block. We previously used version 17.0.0 but there may be newer versions you could use if they work for

You will know you relied on this functionality even if you did not know it if: - you used getDeviceId AND - you did not specify either of: - firebaseBomVersion - firebaseIidVersion ...in your build.gradle file ext block for versions

the previous implementation of getUniqueId would automatically add play-services-iid and use that if you did not specify anything else so things would work for you

Now you must manually add one of the three dependencies for getDeviceId to work

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v13.2.0

13.2.0 (2024-10-25)

Features

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v13.1.0

13.1.0 (2024-10-11)

Features

  • ios: implement all free disk storage types for ios 11+ (#1664) (99dc37c)

- TypeScript
Published by rndi-bot over 1 year ago

https://github.com/react-native-device-info/react-native-device-info - v13.0.0

13.0.0 (2024-09-12)

  • fix(android)!: powerStateDidChange event returns powerState object not batteryState (#1655) (2d91018), closes #1655

BREAKING CHANGES

  • android powerStateDidChange now matches iOS with full powerState object not batteryState

The batteryState object is inside the powerState object, so if this is important to you, the change on android is now to go one-level deeper to get the batteryState

- TypeScript
Published by rndi-bot almost 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v12.1.0

12.1.0 (2024-09-12)

Bug Fixes

  • ios: isDisplayZoomed on iPhone 12/13 mini (12fd354), closes #1581 #1581
  • RNInstallReferrerClient to use background threads for network operations to prevent ANR (2afb771)

Features

  • ios: add iPhone 16 device names / add missing iPad device names (#1657) (1c85272)

- TypeScript
Published by rndi-bot almost 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v12.0.1

12.0.1 (2024-09-12)

Bug Fixes

  • android: add invalidate, use it from onCatalystInstanceDestroy (610714b)

- TypeScript
Published by rndi-bot almost 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v12.0.0

12.0.0 (2024-09-12)

Bug Fixes

  • ios: Make unique id, unique per device and not per ios account(keychain) (#1642) (8198f22)

BREAKING CHANGES

  • ios: iOS getUniqueId is now per-device similar to android, not per-user

If you relied on the previous per-user behavior on iOS the recommended path forward is to use https://github.com/oblador/react-native-keychain with WHEN_UNLOCKED https://github.com/oblador/react-native-keychain?tab=readme-ov-file#keychainaccessible-enum and store your id as a key/value pair of your key and the id mapped into the username/password API of react-native-keychain

Co-authored-by: Humaid Arif Khan humaid@Humaidk-MBP.lan

- TypeScript
Published by rndi-bot almost 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v11.1.0

11.1.0 (2024-05-15)

Features

  • android: detect MEmu emulator in isEmulator (ac172f6)

- TypeScript
Published by rndi-bot about 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v11.0.0

11.0.0 (2024-05-15)

  • fix(android)!: removed getPhoneNumber - use react-native-sim-cards-manager (#1617) (dce8bd5), closes #1617
  • feat(android)!: targetSdk 34 receiver export specification, requires compileSdk 33+ (#1621) (b32cde7), closes #1621

BREAKING CHANGES

  • removed getPhoneNumber to avoid Google Play Store rejections, use react-native-sim-cards-manager for similar functionality as desired
  • requires compileSdk 33+

- TypeScript
Published by rndi-bot about 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.14.0

10.14.0 (2024-05-15)

Features

  • Add isWiredHeadphonesConnected and IsBluetoothHeadphonesConnected (#1623) (fe66322)

- TypeScript
Published by rndi-bot about 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.13.2

10.13.2 (2024-04-21)

Bug Fixes

- TypeScript
Published by rndi-bot about 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.13.1

10.13.1 (2024-02-26)

Bug Fixes

  • ios: fix missing visionOS symbol compile error in xcode < 15 (#1615) (fd30902)

- TypeScript
Published by rndi-bot over 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.13.0

10.13.0 (2024-02-23)

Features

- TypeScript
Published by rndi-bot over 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.12.1

10.12.1 (2024-02-23)

Bug Fixes

  • wrap return value of useOnEvent in useMemo (2cdc43d)

- TypeScript
Published by rndi-bot over 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.12.0

10.12.0 (2023-11-28)

Features

  • android: implemented getSupportedMediaTypeList method (#1590) (89a3c4c)

- TypeScript
Published by rndi-bot over 2 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.11.0

10.11.0 (2023-09-19)

Features

  • android: add new isLowRamDevice constant (#1571) (f608fd5)

- TypeScript
Published by rndi-bot almost 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.10.0

10.10.0 (2023-09-19)

Features

  • Add device names for iPhone 15 family, add check for dynamic island (#1569) (8e512ec)

- TypeScript
Published by rndi-bot almost 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.9.0

10.9.0 (2023-08-28)

Features

  • windows: Implemented getHostNames() for windows (#1565) (eab4992)

- TypeScript
Published by rndi-bot almost 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.8.0

10.8.0 (2023-07-12)

Features

  • windows: Implemented gethost() for windows (#1552) (aa4f6e0)

- TypeScript
Published by rndi-bot almost 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.7.0

10.7.0 (2023-06-30)

Features

  • android: add support for React Native 0.73 (#1546) (38f9665)

- TypeScript
Published by rndi-bot about 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.6.1

10.6.1 (2023-06-29)

Bug Fixes

  • windows: bump WindowsTargetPlatformMinVersion (#1537) (7f0f1c2)

- TypeScript
Published by rndi-bot about 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.6.0

10.6.0 (2023-04-06)

Features

  • windows: implementation for useBatteryLevel & useBatteryLevelIsLow (18e3a54)

- TypeScript
Published by rndi-bot about 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.5.1

10.5.1 (2023-03-29)

Bug Fixes

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.5.0

10.5.0 (2023-03-28)

Features

  • windows: implementation of EnergySaverStatusChanged to emitt event RNDeviceInfo_powerStateDidChange (c974b31)

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.4.0

10.4.0 (2023-02-15)

Features

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.3.1

10.3.1 (2023-02-15)

Bug Fixes

  • ios: getUserAgentSync: separate memoKeys for sync / non-sync usage (#1506) (4bda3ba)

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.3.0

10.3.0 (2022-10-21)

Features

  • android, instanceId: implement instanceId as UUIDv4 in prefs (00aa218)

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.2.1

10.2.1 (2022-10-05)

Bug Fixes

  • android: getDeviceName handle new exception beginning API>=32 (#1471) (2364514)

- TypeScript
Published by rndi-bot over 3 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.2.0

10.2.0 (2022-09-18)

Features

  • ios, firstInstallTime: implement first install time for iOS (63b9feb)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.1.2

10.1.2 (2022-09-13)

Bug Fixes

  • hasNotch: add iPhone 14 Pro / Pro Max to devices with notch (b818d9f)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.1.1

10.1.1 (2022-09-09)

Bug Fixes

  • add getDeviceType and getDeviceTypeSync mocks (#1437) (d92e9f9)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.1.0

10.1.0 (2022-09-09)

Bug Fixes

  • hasNotch: add iPhone 14 / iPhone 14 Plus to devices with notch (fc3b488)

Features

  • add device names for iPhone 14 family (2df220f)
  • add method to check if device has dynamic island (6119011)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.0.2

10.0.2 (2022-07-18)

Bug Fixes

  • types, flow: add missing getUniqueIdSync in index.js.flow (#1441) (1d3890a)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.0.1

10.0.1 (2022-07-11)

Bug Fixes

  • types: add missing hasGms hasHms flow types (#1436) (f51fb98)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v10.0.0

10.0.0 (2022-07-08)

  • fix!: remove uniqueId from constants, move to sync/async methods (#1433) (449e1a8), closes #1433

BREAKING CHANGES

  • uniqueId constant is no longer available, use either getUniqueIdSync() or getUniqueId() (which now returns Promise<string>) instead. This is to conform with app store policies that may reject your app if you access this constant before obtaining consent (thus requiring removal from the set of constants, which are fetched on startup)

- TypeScript
Published by rndi-bot almost 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v9.0.2

9.0.2 (2022-06-04)

Bug Fixes

  • example, windows: Define an explicit 10.0 in example project to use latest windows 10 sdk (#1424) (92c4db6), closes #1288

- TypeScript
Published by rndi-bot about 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v9.0.1

9.0.1 (2022-06-04)

Bug Fixes

- TypeScript
Published by rndi-bot about 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v9.0.0

9.0.0 (2022-06-02)

  • fix(windows)!: Misc cleanup to windows. Support only RNW63 and newer. (#1419) (3bd6f88), closes #1419

BREAKING CHANGES

  • needs react-native-windows 0.63+ and MSVC build tools v142+ (Visual Studio 2019+), drop arm32

- TypeScript
Published by rndi-bot about 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.7.1

8.7.1 (2022-04-30)

Bug Fixes

  • windows: addListener/removeListeners native stubs to quiet warnings (#1408) (55166b4), closes #1288

- TypeScript
Published by rndi-bot about 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.7.0

8.7.0 (2022-03-29)

Features

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.6.0

8.6.0 (2022-03-28)

Features

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.5.1

8.5.1 (2022-03-21)

Bug Fixes

  • ios: add device name for iPhone SE 3rd gen (#1394) (8923995)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.5.0

8.5.0 (2022-03-04)

Features

  • windows, supportedAbis: Add supportedAbis for windows (#1389) (8a97c4c)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.9

8.4.9 (2022-02-07)

Bug Fixes

  • has-notch: add huawei p40 lite to notches list (#1378) (bbca38f)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.8

8.4.8 (2021-11-17)

Bug Fixes

  • useBatteryIsLow: return battery level only if low on first run (#1347) (6b6fb5e)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.7

8.4.7 (2021-11-13)

Bug Fixes

  • android, serial: Fix permission access to serial number (#1344) (ebc2e10)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.6

8.4.6 (2021-11-12)

Bug Fixes

  • android: gracefully handle SecurityException in getPhoneNumber (3745097)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.5

8.4.5 (2021-11-04)

Bug Fixes

  • hasNotch: added Huawei Honor Play and Samsung Galaxy A71 to hasNotch list (#1303) (f158ecc)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.4

8.4.4 (2021-11-01)

Bug Fixes

  • internal/nativeinferface: fixing exception message when RNDeviceInfo is not found (068a433)
  • rndeviceinfo.podspec: changing podspec git source (e91d3fd)

Reverts

  • ios/rndeviceinfo: removing ios listener stubs (e157189), closes #1301

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.3

8.4.3 (2021-10-26)

Bug Fixes

  • getDeviceName: un-memoize device name so it updates (#1332) (7026844), closes #1272

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.2

8.4.2 (2021-10-25)

Bug Fixes

  • ios, deadlock: split battery level from power state fetch (30e7ebc), closes #1330

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.1

8.4.1 (2021-10-14)

Bug Fixes

  • ios, uniqueID: handle keychain duplicateItem during setValue (#1329) (a5ae298)

- TypeScript
Published by rndi-bot over 4 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.4.0

8.4.0 (2021-10-03)

Features

  • windows: add isTabletMode/isKeyboardConnected/isMouseConnected/DeviceType:GamingConsole (#1238) (e186394)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.3.3

8.3.3 (2021-09-16)

Bug Fixes

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.3.2

8.3.2 (2021-09-15)

Bug Fixes

  • hasNotch: Add iPhone 13 lineup to list of devices with notch (#1307) (44193d5)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.3.1

8.3.1 (2021-08-20)

Bug Fixes

  • addListener/removeListeners native stubs for react-native 0.65 copmatibility (3917f33), closes #1288

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.3.0

8.3.0 (2021-08-13)

Features

  • windows, device-id: Added get device id for windows (#1286) (dce34b7)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.2.0

8.2.0 (2021-08-12)

Features

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.7

8.1.7 (2021-08-05)

Bug Fixes

  • windows: react-native-device-info don't work with apps in RNW v0.64 (#1279) (d1a5c4e)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.6

8.1.6 (2021-08-05)

Bug Fixes

  • hasNotch: add Redmi Note 8 Pro to hasNotch list (#1276) (06e2b6c)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.5

8.1.5 (2021-07-30)

Bug Fixes

  • iOS: Adds iPad Air 4th gen name description (#1273) (3c0d766)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.4

8.1.4 (2021-07-21)

Bug Fixes

  • Updated getUsedMemory to pull from ActivityManager debug memory info (ed99cd3)

- TypeScript
Published by rndi-bot almost 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.3

8.1.3 (2021-05-05)

Bug Fixes

  • web: only call navigator methods if navigator is defined (#1225) (35ffa26)

- TypeScript
Published by rndi-bot about 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.2

8.1.2 (2021-04-18)

Bug Fixes

  • notch: remove pixel 3a from devicesWithNotch.ts (#1221) (ee959d9)

- TypeScript
Published by rndi-bot about 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.1

8.1.1 (2021-04-18)

Bug Fixes

  • android: use mavenCentral vs jcenter before jcenter shutdown (#1220) (bffcce2)

- TypeScript
Published by rndi-bot about 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.1.0

8.1.0 (2021-04-12)

Features

  • ios: add getInstallerPackageName support for iOS (#1217) (9a844bf)

- TypeScript
Published by rndi-bot about 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.8

8.0.8 (2021-03-31)

Bug Fixes

  • ios: update getIpAddress to support IPv6-only interfaces (#1190) (c977f30)

- TypeScript
Published by schie over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.7

8.0.7 (2021-03-24)

Bug Fixes

- TypeScript
Published by schie over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.6 - fix deviceType and isEmulator iOS corner cases

8.0.6

  • fix(ios, deviceType): support iOS-compiled app running on macOS (#1181, thanks @user-none!)
  • fix(ios, isEmulator): correct emulator detection for arm64 simulator (#1180, thanks @Arkkeeper!)

auto-changelog follows


  • docs(CHANGELOG): prepare for v8.0.6 release cef5b0f
  • fix(ios, deviceType): support iOS-compiled app running on macOS (#1181) 3ff676c
  • fix(ios, isEmulator): correct emulator detection for arm64 simulator (#1180) 94ebdf4
  • docs(CHANGELOG): note that 8.0.1 is a breaking types change for typescript c50b1b9

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.5...v8.0.6

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.5 - no really, fix that husky problem.

fix: remove husky from postinstall entirely

Apparently there is no way to conditionally run postinstall, and while
we really want husky for contributors here, we must not fail on install
of library consumers (and we don't want to install husky for everyone,
even though it's a great package)

  • docs(CHANGELOG): prepare for 8.0.5 release ca48bdc
  • fix: remove husky from postinstall entirely 64545ad

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.4...v8.0.5

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.4 - the "oops I broke everyone with v8.0.3" release

8.0.4

fix: prefix husky install with with npm or package install fails

Husky is just a pre-commit hook package we use for QA, quite unfortunate that as we ported to the next major version in v8.0.3 I broke the install for everyone. Apologies! @mikehardy


  • docs(CHANGELOG): prepare for 8.0.4 release 2ee2e75
  • fix: prefix husky install with with npm or package install fails eb45172

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.3...v8.0.4

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.3 - type fix: return Partial<PowerInfo> instead of union with {}

  • fix(types, PowerState): use Partial vs union with '{}' (#1175, thanks @vvscode!)

auto release notes follow:


  • chore: update all dependencies to current 82f8dbe
  • fix(types, PowerState): use Partial<PowerState> vs union with '{}' (#1175) 29b75da

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.2...v8.0.3

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.2 - add Pixel4a to notch list

  • fix(hasNotch): fix missing Pixel 4a model name in devicesWithNotch.ts (thanks @zarvedan!)

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.1...v8.0.2

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.1 - the "let's export types correctly as types" type fix release

8.0.1

  • Fix the exporting and importing of typings in ES6 build module (#1164, thanks @diego-antonelli!)

auto-changelog follows:


  • fix(types): fix import and export of types (#1164) 8af015f
  • chore(android): update Gradle Wrapper to 6.8 (#1163) bb4b74b
  • docs(README): hasGms & hasHms return Promise<boolean> not boolean (#1159) 71ab58a

https://github.com/react-native-device-info/react-native-device-info/compare/v8.0.0...v8.0.1

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v8.0.0 - Xcode 12 required, play services optional

8.0.0

  • BREAKING(ios, xcode): Xcode 12 required with #1137. Use 7.3.2 if you must use outdated Xcode (#1151)
  • feat(android, hms/gms): add ability to run without play services (#1156, thanks @saghul!)

7.4.0 was inadvertently breaking. I hadn't realized any iOS developers failed to update Xcode to stable after an Xcode release. For a variety of reasons, you should always keep Xcode up to date, nevertheless dropping Xcode 11 support is breaking. Update your Xcode or use 7.3.2.

Automated changelog below

  • docs(CHANGELOG): prepare release notes for 8.0.0 993dc8a
  • feat(android, gms/hms): make gms dependency optional (#1156) 01f90ed
  • chore(ci, windows): add retry around remote resource installs c6f03b6
  • chore(example): patch up refresh-example.sh and run it 2c6302f
  • chore(example): delete react-native <= 59 script f7b0381
  • docs(README): purge README of outdated linking material c31b287

https://github.com/react-native-device-info/react-native-device-info/compare/v7.4.0...v8.0.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.4.0 - BREAKING Xcode 11 support dropped - install referrer no longer exported, and is optional + CI

BREAKING If you need support for Xcode 11, use 7.3.2 or lower. This was inadvertently breaking so did not get a semver-major change.


I hope you enjoy react-native-device-info 7.4.0

Here are the highlights:

7.4.0

  • feat(android, install referrer): add ability to run without install referrer (#1153, thanks @saghul!)
  • feat(ios, catalyst): added DeviceTypeDesktop to getDeviceType() (#1137, thanks @exotexot!)
  • fix(android, install referrer): remove old install referrer api (#1150 @nicoburns!)
  • chore(ci, example): add ios/android CI, lint CI, de-lint project (@mikehardy)

automated changelog follows

  • chore(CHANGELOG): prepare for release 7.4.0 f718b34
  • feat: Add ability to run without com.android.installreferrer b16e580
  • lint: de-lint the codebase and add lint check for CI 7d0ae09
  • tests(ci): add almost-e2e tests 41e90c8
  • chore: update dependencies 63a3b57
  • docs(example): copy package.json into example in dev-sync b4847d5
  • fix(android, install referrer): remove old install referrer api (#1150) 9f286d7
  • feat: Added DeviceTypeDesktop to getDeviceType() (#1137) c9ae5f7
  • build(deps): bump ini from 1.3.5 to 1.3.7 (#1142) 28554e2
  • build(deps): bump ini from 1.3.5 to 1.3.7 in /example (#1141) 83dee0c
  • build(deps): bump node-notifier from 8.0.0 to 8.0.1 (#1143) 78cd311

https://github.com/react-native-device-info/react-native-device-info/compare/v7.3.1...v7.4.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.3.1 - fix broken android test build

7.3.1

  • fix(android, test): drop mockito to 3.6.28 to fix android test build break (thanks @jamsch!)

Build breaks, the worst. At least it was only the "test" targets and only one platform but still ridiculous.

Hope it didn't affect too many people, and sorry about that.

Automated changelog follows:

  • docs(CHANGELOG): prepare 7.3.1 release fda2869
  • fix(android, test): drop mockito dep from 3.6.44 to 3.6.28 2766c0a

https://github.com/react-native-device-info/react-native-device-info/compare/v7.3.0...v7.3.1

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.3.0 - Redmi 9 notch, android build updates, tests!

7.3.0

  • feat(android, build): add ability to specify firebase bill of materials for iid versioning (#1133, thanks @Dimon70007!)
  • fix(notch): add Redmi 9 to hasNotch list (#1140, thanks @esgudnason!)
  • test: Adding more tests and refactoring some getters (#1136, thanks @schie!)
  • chore: dependency updates (@mikehardy)

automated changelog follows:

  • docs(CHANGELOG): prepare release 7.3.0 94477aa
  • chore: update dependencies / lint d4dc51d
  • feat(android, build): add ability to specify firebase bill of materials for iid versioning (#1133) b79d6ca
  • fix(notch): add Redmi 9 to hasNotch list (#1140) 3bbcbc0
  • test(tests/getters): testing getSystemName 4fd1bb7
  • refactor(src/index): rewriting function for better testability be5c0e9
  • refactor(jest.setup): redoing Platform.select spy baca814
  • test(tests/getters): adding tests for getUserAgent and getUserAgentSync 65f2750
  • chore(src/index): rewriting getUserAgent* 22ff51e
  • test(tests/getters): adding tests for getAvailableLocationProviders* 613072d
  • test(tests/getters): adding tests for getPowerState* 09a775f

https://github.com/react-native-device-info/react-native-device-info/compare/v7.2.1...v7.3.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.2.1 - tiny syntax error fix for mocks

7.2.1

  • fix(test, mocks): extra comma syntax error in mock definition (#1134, thanks @DorianGrey!)

automated changelog follows

  • docs(CHANGELOG): prepare for 7.2.1 release f701d4f
  • fix(test, mocks): extra comma syntax error in mock definition (#1134) 920d8af

https://github.com/react-native-device-info/react-native-device-info/compare/v7.2.0...v7.2.1

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.2.0 - windows c++ now, more mocks, ios keychain fix

7.2.0

  • feat(windows): implement additional methods (#1122, thanks @jaimecbernardo!)
  • feat(windows): port C# Windows implementation to C++ (#1113, thanks @jaimecbernardo!)
  • feat(test, mocks): adding rest of jest mocks (#1132, thanks @schie!)
  • fix(ios, keychain): change keychain access control to non-deprecated value (#1131, thanks @dmitry-bluescape!)

It is always a community effort to make this module work, but this time @jaimecbernardo definitely deserves the attention - porting windows to a whole new language and greatly expanding the API coverage was a massive effort. Thanks Jaime!

automated changelog follow:

  • docs(CHANGELOG): prepare changelog for 7.2.0 release 0ac5c1f
  • feat(windows): implement additional methods (#1122) 4d65769
  • feat(windows): port C# Windows implementation to C++ (#1113) e27b587
  • feat(jest/react-native-device-info-mock): adding rest of mocks (#1132) a868bd7
  • fix(ios, keychain): change keychain access control to non-deprecated value (#1131) c99bd5e

https://github.com/react-native-device-info/react-native-device-info/compare/v7.1.0...v7.2.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.1.0 - hasHms / hasGms for android plus TESTING TESTING TESTING :-)

7.1.0

  • feat(hasHms): added hasHms to indicate if Android device supports Huawei Mobile Services. (#1129, thanks @craig95!)
  • feat(hasGms): added hasGms to indicate if Android device supports Google Mobile Services. (#1129, thanks @craig95!)

This release includes a truly enormous amount of testing and internal refactoring work that has made the module much easier to maintain, all courtesy of @schie in the form of a pile of PRs implementing the same. Thank you, Dustin Schie!

Auto-changelog to follow


  • feat(android): added hasGms and hasHms functions (#1129) 2715878
  • chore: include new test files in package 23ecf09
  • chore: prepare for release 7.1.0 88f2b2b
  • chore: update dependencies, use yarn for internal package.json run scripts 7344382
  • perf(tests/getters): adding more tests 55108da
  • perf(jest.setup.js): changing constant values for string and bool native module mocks 214a4a0
  • test(jest.setup.js): adding more OSes to Platform.select spy 5d53b11
  • test(jest.setup.js): moving deviceType to stringKeys 3476655
  • refactor(src/index.ts): shortening more code 44b6e82
  • fix(src/internal/supported-platform-info): fixing memoization bug 0cf373e
  • test(tests/getters): adding non-memoized boolean getters edc1a8d
  • test(tests/getters): adding non-memoized number getters 5596083
  • test(tests/getters): adding memeoized array getters e434978
  • test(tests/getters): adding memeoized boolean getters cbfd99b
  • test(jest.setup.ts): moving getApiLevel to numberFnNames 43bab1a
  • test(tests/getters): adding memoized number getters 23e4b32
  • tests: memoized string getters and supported-platform-info (#1114) 5003f1e
  • tests: adding jest tests and github workflow to execute same (#1112) 7f1d2a6
  • docs: update useFirstInstallTime in readme (#1111) 9d3f7b5

https://github.com/react-native-device-info/react-native-device-info/compare/v7.0.2...v7.1.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.0.2 - fix react-native-windows release build after API internal refactor

  • chore(CHANGELOG): prepare for release v7.0.2 fca9bf6
  • fix(windows): remove use of Object.fromEntries (#1110) 36392f2

https://github.com/react-native-community/react-native-device-info/compare/v7.0.1...v7.0.2

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.0.1 - add Samsung A21s, Pixel 3a and Redmi 7 to hasNotch list

  • chore(CHANGELOG): prepare for 7.0.1 release eb72f50
  • add new devices: Pixel 3a and Redmi 7 with notch 54ebeac
  • fix(hasNotch): add Samsung A21s 0d54a1a

https://github.com/react-native-community/react-native-device-info/compare/v7.0.0...v7.0.1

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v7.0.0 - Drop iOS9 support; add mocks, docs, fix getFontScale in App Extensions

BREAKING CHANGE: iOS 9 support is dropped. New minimum iOS is 10. Stay on v6 if you can't drop it yet.

  • docs: update CHANGELOG / README for v7 release 0a82d26
  • docs(readme.md): removing iOS App Extension getFontScale disclaimer bc0a41b
  • build(ios): setting build target to 10.0 to remove mismatch warning 9209e87
  • feat(ios/rndeviceinfo/rndeviceinfo.m): supporting getFontScale in app extensions 062dfd5
  • docs(example): adding ios app extension to example 2e8d47c
  • tests(mocks): adding mocks (#1102) 621c0c3

https://github.com/react-native-community/react-native-device-info/compare/v6.2.1...v7.0.0

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.2.1 - add iPhone12 info + internal API refactor

  • fix(ios): add iphone 12 device id / notch info (#1099) 15a1ada
  • chore(refactor): completing getSupportedPlatformInfoFunctions conversion (#1095) 5f048f6
  • chore(refactor): more usage of getSupportedPlatformInfoFunctions (#1092) 50d62fb
  • chore(refactor): using getSupportedPlatformInfoFunctions for another batch of APIs (#1091) 4a3b462
  • chore(refactor): using getSupportedPlatformInfoFunctions for another batch of APIs (#1090) 570f130
  • Update README getFreeDiskStorage and getTotalDiskCapacity (#1089) 0ee9dfa
  • chore(refactor): convert a batch of APIs to getSupportedPlatformInfoFunctions (#1088) 5e57696
  • chore: add getSupportedPlatformInfoFunctions / de-verbose sample of JS API (#1086) 1fadfda

https://github.com/react-native-community/react-native-device-info/compare/v6.2.0...v6.2.1

- TypeScript
Published by mikehardy over 5 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.2.0 add useIsHeadphonesConnected hook

6.2.0

  • feat(hooks): add useIsHeadphonesConnected hook (#1084, thanks again @schie!)

  • chore(CHANGELOG): prepare 6.2.0 release notes 4022826
  • chore(example): fix iOS example to run on react-native 0.62 again fd6f11c
  • docs(example/app.js): adding useIsHeadphonesConnected() 60942a0
  • docs(readme.md): adding docs for useIsHeadphonesConnected() 2d680b6
  • feat(src): adding useIsHeadphonesConnected() ec22e43
  • feat(src/internal/asynchookwrappers.ts): adding useOnEvent convenience hook 72b0cd8
  • feat(ios/../rndeviceinfo.m): adding RNDeviceInfo_headphoneConnectionDidChange event 5489cb4
  • feat(android/../rndevicemodule.java): adding RNDeviceInfo_headphoneConnectionDidChange event f3490f9

https://github.com/react-native-community/react-native-device-info/compare/v6.1.0...v6.2.0

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.1.0 - useManufacturer hook, type fix

6.1.0

  • feat(hooks): add useManufacturer hook (#1083, thanks @schie!)
  • fix(types): add returnType to getPowerState (#1082, thanks @ferdicus!)

  • chore: update dependencies to latest 9e4d978
  • chore: prepare changelog for 6.1.0 release 69df6dc
  • feat: add useManufacturer hook (#1083) 8989500
  • fix(types): add returnType to getPowerState (#1082) 2052b76

https://github.com/react-native-community/react-native-device-info/compare/v6.0.4...v6.1.0

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.0.4 - fix(android): fix swapped data/root values disk size calc

Phones with different block sizes on root and data filesystems would have seen incorrect calculations. This was hopefully rare, and either way it's corrected now thank you @violetchow2611 !

  • fix(android): fix swapped data/root values in getFreeDiskStorageSync (#1077) c793b02
  • chore: prepare CHANGELOG for 6.0.4 release e1a6191
  • chore: update dependencies ba3731b

https://github.com/react-native-community/react-native-device-info/compare/v6.0.3...v6.0.4

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.0.3 - Xcode 12 compile compatibility

  • chore(CHANGELOG): prepare 6.0.3 release notes 80e729d
  • fix: Xcode 12 compatibility (thanks @radko93! #1075) 0057353

https://github.com/react-native-community/react-native-device-info/compare/v6.0.2...v6.0.3

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.0.2 - fix for windows usage

fix(windows): Targetplatform change for cpp apps to use this module (#1072, thanks @tero-paananen!)


  • fix(windows): Targetplatform change for cpp apps to use this module (#1072) 708ec56
  • chore(CHANGELOG): prepare for release 6.0.2 d60dd50

https://github.com/react-native-community/react-native-device-info/compare/v6.0.1...v6.0.2

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.0.1 - add iPhone SE 2nd gen to device list

  • chore: add 2nd generation iPhone SE to device name list (#1068) f6e094b

https://github.com/react-native-community/react-native-device-info/compare/v6.0.0...v6.0.1

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v6.0.0 - react-native-windows vNext / Android disk capacity API changes

6.0.0

BREAKING CHANGE(android, storage):

ReplacegetTotalDiskCapacity and getFreeDiskStorage implementations, original implementations are getTotalDiskCapacityOld and getFreeDiskStorageOld. New implementation adds Root and Data file systems. Old implementations are deprecated, they use deprecated Android APIs, and they will disappear in a future version. This should be a positive change as the resulting calculation should match Android settings storage calculation, but the old API is there if you need it, and you can open an issue to discuss if necessary. (#1054, thanks @gabriel-franzoni-pier!)

BREAKING CHANGE(windows, vNext):

The windows support has been ported from C# (react-native-windows <= 0.59) to C++ (react-native-windows >= 0.59). This drops support for react-native-windows lower than 0.59. The port was developed and tested against react-native-windows 0.62.5. (#1059, thanks @tero-paananen!). The getTotalMemory APIs were dropped in the process (it appears react-native-windows vNext does not support them)


  • fix(android, storage)!: move old storage capacity APIs to old f617863
  • feat(android, storage): new android capacity calculations (#1054) 29bb0ae
  • feat(windows, vNext)!: Windows vNext (#1059) 8fc205b

  • docs(CHANGELOG): prepare for 6.0.0 release cefd55f

  • fix(example, android): exclude flipper okhttp transitive dep 69c9e2d

  • fix(README): fix getInstanceId() link in troubleshooting (#1063) 04d4256

  • fix(android, manifest): protect install referrer receiver w/INSTALL_PACKAGES perm (#1065) ac4ff63

  • docs(CONTRIBUTING): update testing information ee58be6

https://github.com/react-native-community/react-native-device-info/compare/v5.6.5...v6.0.0

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v5.6.5 Add Blackview A30 to notch list

  • chore: prepare for 5.6.5, update dependencies ad59b1d
  • Merge pull request #1058 from alexnaiman/add-hass-notch-blackview-a30 19d36ce
  • fix(hasNotch): add devices Blackview A30 684ddd5

https://github.com/react-native-community/react-native-device-info/compare/v5.6.4...v5.6.5

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v5.6.4 Add Huawei P30 to devices with notch list

  • chore: update dependencies beeac54
  • Merge pull request #1055 from tronin/feature/add-huawei-p30-to-with-notch-list 959c03a
  • add Huawei P30 to devicesWithNotch list cdfbf00

https://github.com/react-native-community/react-native-device-info/compare/v5.6.3...v5.6.4

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v5.6.3 - ios crash fix for parallel getUserAgent calls

5.6.3

  • fix(ios): fix WkWebView crash from parallel getUserAgent calls (#1050, thanks @RojoHub!)

auto-changelog with commit hashes below:

  • Merge pull request #1050 from RoJoHub/fix/wkwebview fd41f70
  • Modify processing logic: [webView evaluateJavaScript:] c27d2aa
  • build(android): add new argument to react-native-clean-project invocation 24e5c0c
  • docs(CHANGELOG): prepare for 5.6.3 release e9cc794
  • Merge pull request #1047 from react-native-community/dependabot/npmandyarn/lodash-4.17.19 cc81243
  • chore(deps): bump lodash from 4.17.15 to 4.17.19 91b315a

https://github.com/react-native-community/react-native-device-info/compare/v5.6.2...v5.6.3

- TypeScript
Published by mikehardy almost 6 years ago

https://github.com/react-native-device-info/react-native-device-info - v5.6.2 - low power mode / low battery event fixes

5.6.2

  • fix(types): import LocationProviderInfo type, export result types (#1041, thanks @mikehardy)
  • fix: power connection and power save events were not triggering correctly (#1042, thanks @mikehardy)
  • fix(ios): correctly calculate ios low battery threshold (#1039, thanks @mikehardy)

automated changelog below


  • fix(types): import LocationProviderInfo type, export result types 9227f7d
  • fix: power connection and power save events were not triggering correctly 325336c
  • fix(ios): correctly calculate ios low battery threshold 926884d
  • chore: refresh-example.sh - works fine with react-native 0.63 1df0efc
  • chore: update dependencies 0b95e37
  • chore: prepare for release 5.6.2 ff9db11
  • Merge pull request #1042 from mikehardy/powerEvents bf226fa
  • Merge pull request #1039 from mikehardy/ios-low-battery-threshold-fix 42e1e20
  • chore: update dependencies 1e095ec
  • Fix msbuild windows pr checks bb50571
  • chore: update dependencies 593ef9d
  • chore: yarn update / web lint update b2d77db
  • Use fixed versions for react and react-native d2ac1b0
  • Use fixed versions for react and react-native f658a41

https://github.com/react-native-community/react-native-device-info/compare/v5.6.1...v5.6.2

- TypeScript
Published by mikehardy almost 6 years ago