Skip to content

Commit

Permalink
chore: update the RN Device-Info lib
Browse files Browse the repository at this point in the history
  • Loading branch information
UrazAkgultan committed Oct 17, 2023
1 parent 988c88f commit f946122
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
8 changes: 7 additions & 1 deletion packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [5.1.0] Native Mobile Resources - 2023-10-11
### Changed

- We've updated the React Native Device Info dependency.

## [5.1.0] Native Mobile Resources - 2023-10-11

## [1.1.0] Image

### Added

- Added accessibility.

## [5.0.2] Native Mobile Resources - 2023-8-22

### Fixed

- We updated the default presentation mode for both "Take Picture" and "Take Picture Advanced" to full screen.

## [2.0.2] ColumnChart

### Fixed

- We fixed an issue when running with Mx10 crashes the app.
Expand Down
2 changes: 1 addition & 1 deletion packages/jsActions/mobile-resources-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"fbjs": "3.0.4",
"mime": "3.0.0",
"react-native-blob-util": "0.16.2",
"react-native-device-info": "8.7.1",
"react-native-device-info": "10.11.0",
"react-native-file-viewer": "2.1.5",
"react-native-image-picker": "5.0.1",
"react-native-inappbrowser-reborn": "3.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export async function GetDeviceInfo(): Promise<mendix.lib.MxObject> {
DeviceInfo.getUserAgent(),
DeviceInfo.getUniqueId(),
DeviceInfo.isEmulator(),
DeviceInfo.isLandscape()
DeviceInfo.isLandscape(),
DeviceInfo.getDeviceName()
]).then(
async ([
mxObject,
Expand All @@ -44,7 +45,8 @@ export async function GetDeviceInfo(): Promise<mendix.lib.MxObject> {
userAgent,
uniqueId,
isEmulator,
isLandscape
isLandscape,
deviceName
]) => {
const locales = getLocales();
mxObject.set("ApplicationName", DeviceInfo.getApplicationName());
Expand Down Expand Up @@ -74,6 +76,7 @@ export async function GetDeviceInfo(): Promise<mendix.lib.MxObject> {
mxObject.set("IsTablet", DeviceInfo.isTablet());
mxObject.set("IsLandscape", isLandscape);
mxObject.set("HasNotch", DeviceInfo.hasNotch());
mxObject.set("DeviceName", deviceName);

return mxObject;
}
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12731,7 +12731,7 @@ __metadata:
fbjs: 3.0.4
mime: 3.0.0
react-native-blob-util: 0.16.2
react-native-device-info: 8.7.1
react-native-device-info: 10.11.0
react-native-file-viewer: 2.1.5
react-native-image-picker: 5.0.1
react-native-inappbrowser-reborn: 3.4.0
Expand Down Expand Up @@ -14844,6 +14844,15 @@ __metadata:
languageName: node
linkType: hard

"react-native-device-info@npm:10.11.0":
version: 10.11.0
resolution: "react-native-device-info@npm:10.11.0"
peerDependencies:
react-native: "*"
checksum: 3f2de34df4e95e87291673fe69b09d3b96f9088177a8dadd92eccec86549cea63ca08ab82f120d4150eb0302ac721ad8a5e4b3a8136c9f54f0212e4c055762b0
languageName: node
linkType: hard

"react-native-device-info@npm:8.7.1":
version: 8.7.1
resolution: "react-native-device-info@npm:8.7.1"
Expand Down

0 comments on commit f946122

Please sign in to comment.