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 - v4.0.1-beta.4 rename getCameraPresence -> isCameraPresent

Published by mikehardy about 5 years ago

BREAKING CHANGE: rename getCameraPresence to isCameraPresent (Fixes #810) @mikehardy

This was done for naming consistency - it was missed in the v2->v3 transition and was the last remaining inconsistent boolean method

https://github.com/react-native-community/react-native-device-info/compare/v4.0.1-beta.3...v4.0.1-beta.4

react-native-device-info - v4.0.1-beta.2 - typescript settling in, fix gradle iid dependency

Published by mikehardy about 5 years ago

  • fix: android use googlePlayServicesIidVersion if available (react-native-community/react-native-device-info/pull/804 / Fixes #802) @mikehardy
  • fix: only define a gradle project for module maintenance (https://github.com/react-native-community/discussions-and-proposals/issues/151#issuecomment-532787908)
  • chore: yarn upgrade --latest && refresh-example.sh (RN0.60.5 -> RN0.61.2) @mikehardy
    community/discussions-and-proposals/issues/151#issuecomment-532787908 @mikehardy
  • docs(README): note that jetifier -r is needed for support libs #827 @mikehardy

https://github.com/react-native-community/react-native-device-info/compare/v4.0.1-beta.1...v4.0.1-beta.2

react-native-device-info - v4.0.1-beta.1

Published by Johan-dutoit about 5 years ago

Converted the project to TypeScript (A more in-depth discussion can be found here: https://github.com/react-native-community/react-native-device-info/pull/799)

  • Breaking change: importing types will be effected
  • Breaking change: refactor: change Unknown to unknown for consistency f449ae7
  • fix(types): types path & re-added empty flowconfig 945ec53
  • Thanks to @mikehardy @ethanneff @RohanTalip, who all kept the docs updated (ac9b2e2, d8e9b5a, d83ba23)

https://github.com/react-native-community/react-native-device-info/compare/v3.1.4...v4.0.1-beta.1

react-native-device-info - v3.1.4

Published by mikehardy about 5 years ago

  • fix: Chain getReadableVersion calls to JS vs native for web platform protection 57f1199

Thanks @tvanlaerhoven for reporting it!

https://github.com/react-native-community/react-native-device-info/compare/v3.1.3...v3.1.4

react-native-device-info - v3.1.3 - added 2019 iPhones to lookup tables

Published by mikehardy about 5 years ago

  • chore: add new iphone names into devicesWithNotch e10e0f6 (thanks @anthonyemery!)
  • chore: add device name by code for new iPhones 1341638 (thanks @anthonyemery!)
  • doc: add note to changelog about 2019 iphones 1e31bf0

https://github.com/react-native-community/react-native-device-info/compare/v3.1.2...v3.1.3

react-native-device-info - v3.1.2

Published by mikehardy about 5 years ago

  • Fix crash in getModel on iOS. Fixes: #780 3bb2b56 (Thanks @rbscott!)
  • docs(CHANGELOG): prepare for 3.1.2 release 644fa96

https://github.com/react-native-community/react-native-device-info/compare/v3.1.1...v3.1.2

react-native-device-info - v3.1.1 - fix Windows module from v2->v3 transition

Published by mikehardy about 5 years ago

This release only has one functional change, and it's to bring the Windows version into the V3 world.

I don't have a react-native-windows development environment, so it was broken completely and I really appreciate @acoates-ms taking the time to shape it up. Thanks!

  • build: add test entry stub for new np version 3dddb90
  • chore: yarn upgrade --latest (all devDependencies) 05e99ed
  • docs(CHANGELOG): add release notes for 3.1.0 and 3.1.1 03d6b0f
  • Fix windows module ddfbee1

https://github.com/react-native-community/react-native-device-info/compare/v3.1.0...v3.1.1

react-native-device-info -

Published by Johan-dutoit about 5 years ago

  • feat: enable getPowerState to work sync as getPowerStateSync c7e5ad7
  • feat(android): added getPowerState 2672d7f
  • feat(events): Add support for RNDeviceInfo_powerStateDidChange, RNDeviceInfo_batteryLevelDidChange & RNDeviceInfo_batteryLevelIsLow on Android 5079370
  • tests: enable JS bundle in debug too (for iOS9 / Android API<18 testing) 5ea9c8b
  • Update README.md c627567

https://github.com/react-native-community/react-native-device-info/compare/v3.0.1...v3.1.0

react-native-device-info - v3.0.1 - fix tvOS compile

Published by mikehardy about 5 years ago

Thanks to @hufkens for PR #781 fixing tvOS

Otherwise unchanged from v3.0.0

react-native-device-info - v3.0.0 - WebView removal, async usage, API coherence

Published by mikehardy about 5 years ago

Welcome to react-native-device-info v3

This release has a number of important breaking changes.

You will need to adjust your code to use it. However, I believe all existing usage patterns should be supported.

Please see the upgrade guide here for information on breaking changes:

https://github.com/react-native-community/react-native-device-info/wiki/V2-to-V3-Migration-Guide

[Update on 20190915: Windows v3 has been fixed!]

[Update - @acoates-ms fixed up the windows module and the result is released as 3.1.1 - windows users owe him some thanks!]

Original text from v3.0.0 release:

It is very likely that the windows port is broken right now. No windows users helped test it so it may not even compile. If this is important to you, you will have to file PRs to help maintain it as none of the current maintainers has a react-native-windows environment.

Changelog

3.0.0

  • release: promoted release from 3.0.0-rc.5 without change

3.0.0-rc.5

  • fix: various fixes similar to / prompted by #771 / #768 / #769
  • fix: getSystemName() returns value on ios+android #771 thanks @cmpayc!
  • fix: getUniqueId() only returned value 1st call #768 thanks @tamhv!
  • fix: getModel() not working on iOS #769 Thanks @rnnyrk!

3.0.0-rc.4

  • feat: memoize static return values for performance

3.0.0-rc.3

  • fix: TypeScript getPowerState() return type was Object instaed of PowerState interface
  • fix: TypeScript definition file was missing getPhoneNumberSync()

3.0.0-rc.2

  • Added a sync version of each API call, in practice it is very difficult to consume async
    APIs during app bootstrap and device info is frequently fundamental to app startup behavior.
    This still preserves the change away from paying the entire cost of information retrieval at
    startup - now you will only pay for exactly what you need.

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
  • BREAKING CHANGE: more capitalization changes for API calls to standardize (see below)
  • BREAKING CHANGE: more return value changes to standardize return values (see below)
  • feat: you no longer have to be careful with platform-specific APIs, all APIs will work, just
    returning standard "unknown" return values (see above breaking change, and example App.js usage)

3.0.0-beta.2

  • fix all emulator/simulator v2->v3 discrepancies

3.0.0-beta.1

Each BREAKING CHANGE contains the required information to migrate. The example App.js shows sample usage.

react-native-device-info - v3.0.0-rc.5 - fixes for all reported issues. is it ready? test it!

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • fix: various fixes similar to / prompted by #771 / #768 / #769 0d77cfd
  • fix: getSystemName should return real value android+ios (Fixes #771) ba62f88
  • fix: getUniqueId only returned id 1st call - Fixes #768 923d9e8
  • fix: getModel not working on iOS a7129c1

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-rc.4...v3.0.0-rc.5

react-native-device-info - v3.0.0-rc.4 - performance only / memoized static return values

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • feat: memoize static return values for performance 83b2e1e
  • lint: prettier format CHANGELOG 239da24
  • lint: add pretty config and script 21baa9c

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-rc.3...v3.0.0-rc.4

react-native-device-info - v3.0.0-rc.3 - two typescript definition fixes, otherwise same as rc.2

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • fix: TypeScript issues - add getPhoneNumberSync / return PowerState 58824cc

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-rc.2...v3.0.0-rc.3

react-native-device-info - v3.0.0-rc.2 - the "Everything is a Promise or Sync if you want" release

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • feat: Add xxxSync() parallel API set to easy API consumption during bootstrap bc178e9

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-rc.1...v3.0.0-rc.2

react-native-device-info - v3.0.0-rc.1 "I think it's good to go, take 1" release

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • fix: use ios vs macos as condition for APIs 02bb2ee

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-beta.3...v3.0.0-rc.1

react-native-device-info - v3.0.0-beta.3 the "just some iOS v2->v3 differences left" release

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs so you may try it by using that tag.

Please refer to the CHANGELOG for all breaking change annotations to migrate.
https://github.com/react-native-community/react-native-device-info/blob/v3/CHANGELOG.md

  • BREAKING CHANGE: API capitalization changes, empty return value standardization 9463583
  • build: use yarn for np / shipit command to complete yarn conversion 91564cd
  • docs: add v3.0.0-beta.2 entry, focus changelog for v2->v3 migration 9c38fb9

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-beta.2...v3.0.0-beta.3

react-native-device-info - v3.0.0-beta.2 - nearly release-candidate

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs.com so you may use that tag on npm/yarn install to test this.

This release fixes all the discrepancies between v2 and v3 that were detected on emulators. After checking real android/iOS devices this will go release candidate.

Read the v3.0.0-beta.1 release notes or the changelog for description of breaking changes so you can migrate.

  • fix: iOS isTablet should return boolean not integer 4800cda
  • fix: iOS getSupportedAbis should return string array, not string 201dc94
  • fix: android getDeviceId should be based on Build.BOARD not BRAND 101ab4a
  • chore: yarn upgrade 1933f92

https://github.com/react-native-community/react-native-device-info/compare/v3.0.0-beta.1...v3.0.0-beta.2

react-native-device-info - v3.0.0-beta.1 - The "everything's a Promise" test release

Published by mikehardy about 5 years ago

This is tagged as @next on npmjs.com so you can test it by trying that tag: npm i react-native-device-info@next

  • BREAKING CHANGE: switch to all-Promise API 5b88e34
  • BREAKING CHANGE: locale APIs gone, events renamed, getBuildNumber type cc2021f
  • BREAKING CHANGE: [Android] always return a string for build number fb01799
  • chore: npmignore lots of files 63b8269
  • chore: refresh example for current state of v3 dev branch 74bdb69
  • feat: add getUsedMemory, Obsoletes #356 c8955b0
  • chore: gradle upgrade, and include debug.keystore so example runs out of the box 486a632
  • Update CHANGELOG.md 99a3b36
  • Update readme 675b181
  • Add @ReactModule annotation and NAME constant a3cff96
  • feature: async user agent using WKWebView 07bf0aa
  • refactor: avoid duplicate function implementation 8e4fe78
  • docs: use destructuring import in example 9e59100
  • docs(README): add destructuring import example 9860dfa
  • feat: export functions to be compatible with destructured ES6 imports 89cd3bd
  • fix: remove unnecessary gradle dependencies f3a06ba
  • chore: run refresh-example.sh to update example (and fix vulnerabilities) 6b7daab
  • chore: npm update (fixes eslint-utils vulnerability) 1d7f81a
  • Mention that getUniqueID() can be different in app extensions 60e75fa
  • chore: react-native 0.59 example creation script (to prove it works) 2c2bc48

https://github.com/react-native-community/react-native-device-info/compare/v2.3.2...v3.0.0-beta.1

react-native-device-info - v2.3.2

Published by mikehardy about 5 years ago

The default stance of this module on android has moved to loading the constants asynchronously on android, a continuation of the work from #680 and #697 - these changes have been in place for quite some time now with zero reports of problems so this should be a minor change. The documentation has bee updated with information on how to disable it if it is a problem for you, but we expect this to be smooth and a performance enhancement for everyone.

Cheers

https://github.com/react-native-community/react-native-device-info/compare/v2.3.1...v2.3.2