react-native-device-info

Device Information for React Native iOS and Android

MIT License

Downloads
2.5M
Stars
6.4K
Committers
310

Bot releases are hidden (Show)

react-native-device-info - v8.0.8

Published by schie over 3 years ago

8.0.8 (2021-03-31)

Bug Fixes

  • ios: update getIpAddress to support IPv6-only interfaces (#1190) (c977f30)
react-native-device-info - v8.0.7

Published by schie over 3 years ago

8.0.7 (2021-03-24)

Bug Fixes

react-native-device-info - v8.0.6 - fix deviceType and isEmulator iOS corner cases

Published by mikehardy over 3 years ago

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

react-native-device-info - v8.0.5 - no really, fix that husky problem.

Published by mikehardy over 3 years ago

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

react-native-device-info - v8.0.4 - the "oops I broke everyone with v8.0.3" release

Published by mikehardy over 3 years ago

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

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

Published by mikehardy over 3 years ago

  • 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

react-native-device-info - v8.0.2 - add Pixel4a to notch list

Published by mikehardy over 3 years ago

  • 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

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

Published by mikehardy over 3 years ago

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

react-native-device-info - v8.0.0 - Xcode 12 required, play services optional

Published by mikehardy almost 4 years ago

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

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

Published by mikehardy almost 4 years ago

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

react-native-device-info - v7.3.1 - fix broken android test build

Published by mikehardy almost 4 years ago

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

react-native-device-info - v7.3.0 - Redmi 9 notch, android build updates, tests!

Published by mikehardy almost 4 years ago

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

react-native-device-info - v7.2.1 - tiny syntax error fix for mocks

Published by mikehardy almost 4 years ago

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

react-native-device-info - v7.2.0 - windows c++ now, more mocks, ios keychain fix

Published by mikehardy almost 4 years ago

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

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

Published by mikehardy almost 4 years ago

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

react-native-device-info - v7.0.2 - fix react-native-windows release build after API internal refactor

Published by mikehardy almost 4 years ago

  • 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

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

Published by mikehardy almost 4 years ago

  • 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

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

Published by mikehardy almost 4 years ago

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

react-native-device-info - v6.2.1 - add iPhone12 info + internal API refactor

Published by mikehardy about 4 years ago

  • 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

react-native-device-info - v6.2.0 add useIsHeadphonesConnected hook

Published by mikehardy about 4 years ago

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