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 - v5.5.0 add getInstallerPackageName / fix getInstallReferrer deprecation

Published by mikehardy over 4 years ago

Thanks again to the community for keeping this module fresh and up to date

From the changelog:

feat: add getInstallerPackageName for android (#912) (thanks @codecog!)
fix: switch to InstallReferrer API (#947) (thanks @skantus!)

--

  • feat: add getInstallerPackageName for android ce8a851
  • fix: expose native getInstallerPackageNameSync API 580e382
  • Enhance InstallReferrer response and loggers d63f18a
  • install_referrer api over soon to be deprecated be42ff8
  • chore: yarn run after upgrade 24f26f5
  • chore: prepare for 5.5.0 release 78f344b
  • chore: yarn upgrade --latest 69ca0e5

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

react-native-device-info - v5.4.4 Add Huawei P Smart devices to notch list

Published by mikehardy over 4 years ago

  • chore: prepare for release 5.4.4 b4db869
  • Update devicesWithNotch.ts 28578a7
  • chore: fox issue template fixed issue reference 48d6491

https://github.com/react-native-community/react-native-device-info/compare/v5.4.3...v5.4.4

react-native-device-info - v5.4.3 - fix simulator-only crash if you called getDeviceToken

Published by mikehardy over 4 years ago

  • chore: prepare for 5.4.3 release 6c53e71
  • return after rejecting in branching logic so reject only ever calls once db667e1
  • chore: prepare for 5.4.2 3aef147
  • chore: upgrade dependencies via yarn upgrade --latest 7ad3e8b

https://github.com/react-native-community/react-native-device-info/compare/v5.4.2...v5.4.3

react-native-device-info - v5.4.2 - no need for yarn from basic clone

Published by mikehardy over 4 years ago

Tiny update - mostly to make it so you can work without yarn installed, and also a small fix for device token API availability. Thanks to the whole react-native-device-info community for helping keep this module working, much appreciated 💪

  • Fix: replace yarn in scripts with bob and npm run. so it is not required to install this library with npm (issue #936) c08cbf4
  • Align and update react-native dependency 3717436
  • fix: check available version independently 6c0719a
  • chore: remove blank spaces on empty lines 8d3feda
  • chore: prepare for 5.4.1 release / document getDeviceToken stuff fa116b6

https://github.com/react-native-community/react-native-device-info/compare/v5.4.1...v5.4.2

react-native-device-info - v5.4.1 - fix for getDeviceToken emulator-only crash

Published by mikehardy almost 5 years ago

  • fix: Fix getDeviceToken crash on IOS simulator (#929) (thanks @Taym95!)

https://github.com/react-native-community/react-native-device-info/compare/v5.4.0...v5.4.1

react-native-device-info - v5.4.0 - iOS DeviceCheck support, beautiful example, types, docs

Published by mikehardy almost 5 years ago

CHANGELOG entries:

  • feat + fix: tabbed example, improved types, efficient Platform usage (thanks @zoontek!)
  • feat: Added getDeviceToken() using DeviceCheck API on iOS 11.0+ (thanks @AntoineDoubovetzky!)
  • fix: hasNotch correctly matches Xiaomi Mi 9 (thanks @BogdanTaranenko!)
  • docs: fix upgrade links in README TOC (thanks @Simek!)
  • docs: fix type in README useIsEmulator example (thanks @zusinShinpei!)

--

  • chore: prepare for release 5.4.0 850fe4b
  • Fix upgrade links in TOC 7ca5e6b
  • Fix: add Xiaomi Mi 9 to devices with notch 2ae6c0e
  • ✨ (getDeviceToken) add getDeviceToken to get token using DeviceCheck API (ios only) 8273cad
  • Fix: Typo of README e1b10e2
  • Improve types + fix errors + improve example (#902) f567add
  • Move ts-ignore comment 4528467
  • Inline Platform.OS usages e7b37e8

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

react-native-device-info - v5.3.1 - flow types update

Published by mikehardy almost 5 years ago

Big thanks to @grit96 who noticed our flow types weren't correct, and fixed them while adding a type check back to our commit process to make sure they don't go bad again

  • Re-add flow checking to pre-commit db50407
  • Fix flow syntax 78de37a
  • chore: yarn upgrade --latest f08cf77
  • docs(CHANGELOG): prepare for 5.3.1 release 58d592b
  • chore: dev-sync change to match new web location 4270123

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

react-native-device-info - v5.3.0 welcome back, web support!

Published by mikehardy almost 5 years ago

Big thanks to @robertherber for fixing up web support, and adding a bunch of APIs to the web implementation!

  • chore: prepare for 5.3.0 release f220d32
  • Corrected getFreeDiskStorageSync and some cleanup 78cc5f9
  • Moved web native implemenration into src, added more API support 3edb258
  • [web] Added hooks details to Readme b6e0a30
  • Added full batteryState, and chargingtime/dischargingtime 692c50e
  • Added readme and changelog entries 86ee3cb
  • Fixed web build 852cd5b
  • Added more web functionality dede3b3
  • Update index.js.flow 13d9c2a
  • fix hr format 1503f47
  • update example app 2fc0a8a
  • fix flow dd3bdd4
  • add useIsEmulator 796035e
  • Fix npmignore and files field a92997c
  • Ensure preferredContentSizeCategory is only called from the main thread 5db7c09
  • Adding useHasSystemFeature (#871) 2dced2b
  • Simplifying hookification and adding use device name (#869) 4e330bd
  • Adding useFirstInstallTime() (#868) 811f98c

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

react-native-device-info - v5.2.1 - shrink npm package again / better

Published by mikehardy almost 5 years ago

  • chore: clean things prior to shipit to reduce package size 2fbed7d

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

react-native-device-info - v5.2.0 - add isHeadphonesConnected / isHeadphonesConnectedSync

Published by mikehardy almost 5 years ago

  • Added headphones support (#860) 012d7dc
  • docs(CHANGELOG) - prepare for 5.2.0 release b4c4fc9
  • chore: yarn upgrade --latest 31288a7

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

react-native-device-info - v5.1.0 - android native interoperability, android unique id

Published by mikehardy almost 5 years ago

This release allows you to use the firebase iid library for unique ids - it's the backwards-compatible but future direction of unique ids on Android, you should move to it by using firebaseIidVersion in your android/build.gradle file ext{} block to specify the library version

  • feat: android native interoperability - determine isTablet from android native (thanks @andresesfm!)
  • feat: android unique ID forward-ported to firebase, w/great backwards-compatibility (thanks @andresesfm!)

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

react-native-device-info - v5.0.1 - shrink npm package

Published by mikehardy almost 5 years ago

Re-package of 5.0.0 without change except delete accidental inclusion of example/android/app/build

  • docs(CHANGELOG): prepare for 5.0.1 9646966

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

react-native-device-info - v5.0.0 - hooks, docs, getDeviceType as constant

Published by mikehardy almost 5 years ago

This release had so much help from the community it was great! Thanks everyone for helping make the module better ❤️

  • BREAKING: (from 4.0.2-rc.1) getDeviceType is constant now - no need for getDeviceTypeSync
    This is a tiny breaking change, easy to adopt:
    1. getDeviceTypeSync --> getDeviceType
    2. getDeviceType.then(type => {}); --> let type = getDeviceType();
  • feat: Hooks! Add useBatteryLevel(), useBatteryLevelIsLow(), usePowerState methods (thanks @magrinj!)
  • fix: iOS use CFBundleName if CFBundleDisplayName null (Fixes #846, thanks @rizwankce!)
  • chore: add support for 2019 iPads models in 'model' mapping (thanks Edward Wong!)
  • chore: add support for motorola one vision in hasNotch (thanks @euharrison!)
  • docs(README): Fixed link in TOC (thanks @martinvol!)
  • docs(README): Fixed example code hasNotch() - constant, no Promise (thanks @cereme!)
  • docs(README): Fixed example code getDeviceId() - constant, no Promise (thanks @adambutler!)
  • docs(README): Fixed getReadableVersion() sub-API references (thanks @djorkaeffalexandre!)
  • chore: yarn upgrade --latest to update dependencies (@mikehardy)

https://github.com/react-native-community/react-native-device-info/compare/v4.0.2-rc.1...v5.0.0

react-native-device-info - v4.0.2-rc.1 - getDeviceType is a constant now

Published by mikehardy about 5 years ago

This was a request from a user to assist initial app layout.

This may be backwards-compatible, I need to check, if not it will go as a v5 breaking change even though it is small

  • feat: deviceType a constant now ddc55c4

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

react-native-device-info - v4.0.1 - Some constants are back / convert to Typescript

Published by mikehardy about 5 years ago

This is a breaking change release (as 4.0.0 was, but it was unpublished as a serious bug was found)

Please read the migration guide: https://github.com/react-native-community/react-native-device-info/wiki/V3-to-V4-Migration-Guide

It is released with no changes from 4.0.1-rc.1, previous releases and the CHANGELOG have notes of the details from 3.x to 4.x

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

react-native-device-info - v4.0.1-beta.8 - fix iOS getBundleId constant / Nokia 6.1 Plus hasNotch

Published by mikehardy about 5 years ago

  • fix: iOS getBundleId incorrectly referencing getBuildId e77c97e (thanks @imkojima!)
  • Fixed hasNotch issue in nokia 6.1 plus d7307b7 (thanks @sbalajime!)

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

react-native-device-info - v4.0.1-beta.7 - fix iOS isTablet / iOS hasSystemFeature

Published by mikehardy about 5 years ago

  • docs(CHANGELOG): add release notes for last betas 27e9384
  • fix: iOS isTabler was always returning false 32d07f9
  • fix: hasSystemFeatureSync() incorrectly returned Promise 1aad9a1

Commit Range:
https://github.com/react-native-community/react-native-device-info/compare/v4.0.1-beta.6...v4.0.1-beta.7

react-native-device-info - v4.0.1-beta.6 - fix for getModel() on iOS

Published by mikehardy about 5 years ago

  • fix: getModel() on iOS was always returning generics 2ac9ce1 (thank you @KingAmo!)

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

react-native-device-info - v4.0.1-beta.5 - bootstrap constants ready to go?

Published by mikehardy about 5 years ago

I have not written a migration guide yet but this release should be good to go

The README has been updated so you can use the diff temporarily as a reference: https://github.com/react-native-community/react-native-device-info/commit/cb717537ec21da4c596d7598d59732a69de8b298

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