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 - v6.1.0 - useManufacturer hook, type fix

Published by mikehardy about 4 years ago

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

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

Published by mikehardy about 4 years ago

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

react-native-device-info - v6.0.3 - Xcode 12 compile compatibility

Published by mikehardy about 4 years ago

  • 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

react-native-device-info - v6.0.2 - fix for windows usage

Published by mikehardy about 4 years ago

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

react-native-device-info - v6.0.1 - add iPhone SE 2nd gen to device list

Published by mikehardy about 4 years ago

  • 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

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

Published by mikehardy about 4 years ago

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

react-native-device-info - v5.6.5 Add Blackview A30 to notch list

Published by mikehardy about 4 years ago

  • 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

react-native-device-info - v5.6.4 Add Huawei P30 to devices with notch list

Published by mikehardy about 4 years ago

  • 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

react-native-device-info - v5.6.3 - ios crash fix for parallel getUserAgent calls

Published by mikehardy about 4 years ago

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/npm_and_yarn/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

react-native-device-info - v5.6.2 - low power mode / low battery event fixes

Published by mikehardy over 4 years ago

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

react-native-device-info - v5.6.1 - react-native-web lives again!

Published by mikehardy over 4 years ago

  • fix: react-native-web fix TypeError and battery (#1024) (thanks @jamesst20!)

I want to say I especially appreciate the help on the react-native-web implementation.
Anyone that wants to help this library work better for react-native-web is more than welcome!
I (@mikehardy, the currently active maintainer here) do not use react-native-web so I need
all the help I can get. Cheers!

--

  • chore: prepare for release v5.6.1 e0cc381
  • Fix power state battery b971c95
  • Don't use module.exports syntax c82dd61

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

react-native-device-info - v5.6.0 - Added syncUniqueId() for iOS devices

Published by mikehardy over 4 years ago

feat: Added syncUniqueId() for iOS devices (#922) (thanks @Bardiamist!)

This can help by making the iOS "Identifier For Vendor" more available to the same publisher across multiple apps

react-native-device-info - v5.5.8 - isHeadphonesConnected now catches bluetooth HFP not just A2DP on iOS

Published by mikehardy over 4 years ago

  • Feat: Add AVAudioSessionPortBluetoothHFP cc90dcb (thanks @CaptainJeff !)
  • Improve docs API text a444114 (thanks @martnst!)
  • docs(CHANGELOG): prepare for v5.5.8 release d9ca9de (@mikehardy)
  • chore(lint): commit results of eslint upgrade 22d2d12 (@mikehardy)
  • chore: yarn upgrade --latest fb2d308 (@mikehardy)
  • Fix indentation cd3ade4

https://github.com/react-native-community/react-native-device-info/compare/v5.5.7...v5.5.8

react-native-device-info - v5.5.7 - fix electron native compile

Published by mikehardy over 4 years ago

5.5.7

  • fix: Android - build issues when building for electron (thanks @rcjmk10!)
  • chore: yarn upgrade --latest

https://github.com/react-native-community/react-native-device-info/compare/v5.5.6...v5.5.7

react-native-device-info - v5.5.6 - fix InstallReferrer exception PackageManager died

Published by mikehardy over 4 years ago

Commits:

  • Fix #1002 by ignoring InstallReferrer disconnects d414d1b
  • chore: fix lint errors 2893026
  • chore: update javascript depencencies via yarn update --latest f16f3bb
  • chore: bump dependency versions ff6ebbb
  • chore: update gradle + gradle plugin f1a96bc
  • chore: refresh example (react-native 0.62.2 now) 9ce41bd

Commit Range:
https://github.com/react-native-community/react-native-device-info/compare/v5.5.5...v5.5.6

react-native-device-info - v5.5.5 - fix iOS generic model fallbacks

Published by mikehardy over 4 years ago

fix: getModel on iOS now returns generic device type (e.g. "iPhone") if the specific model is unrecognized #996 (@TheAlmightyBob)

react-native-device-info - v5.5.4 - stablize InstallReferrer, misc fixes

Published by mikehardy over 4 years ago

5.5.4

  • fix: memoization of static boolean return values (@jmheik)
  • fix: add mac catalyst compatibility to getCarrier (#973) (thanks @robertying!)
  • fix: add wider exception handling in install referrer (thanks @jmunozDevsu!)

Also the example is updated to react-native 0.62, works fine in my testing iOS + android

Enjoy!

react-native-device-info - v5.5.3 - Redmi Note 8 added to hasNotch list

Published by mikehardy over 4 years ago

  • chore: prepare for release 5.5.3 48e9493
  • Add Redmi Note 8 to devices with notch list 09202ff

https://github.com/react-native-community/react-native-device-info/compare/v5.5.2...v5.5.3

react-native-device-info - v5.5.2 - allow removal of Install Referrer android permission without crashing

Published by mikehardy over 4 years ago

  • chore: prepare for release v5.5.2 d508bdb
  • Gracefully handle missing install referrer permission, Fixes #955 df667ed

https://github.com/react-native-community/react-native-device-info/compare/v5.5.1...v5.5.2

react-native-device-info - v5.5.1 - fix event emission on powerStateDidChange

Published by mikehardy over 4 years ago

  • fix: powerStateDidChange argument type error 1f1ed2b
  • docs(CHANGELOG): fix formatting of v5.5.0 release 82cbb56

https://github.com/react-native-community/react-native-device-info/compare/v5.5.0...v5.5.1