Skip to content

Commit

Permalink
chore: update native dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Elsayed committed Oct 15, 2024
1 parent 8fcb68e commit 4e02632
Show file tree
Hide file tree
Showing 24 changed files with 90 additions and 78 deletions.
8 changes: 4 additions & 4 deletions configs/e2e/native_dependencies.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"react-native-maps": "0.31.1",
"react-native-geocoder": "0.5.0",
"react-native-device-info": "11.1.0",
"react-native-device-info": "13.0.0",
"react-native-action-button": "2.8.5",
"react-native-material-menu": "1.2.0",
"react-native-linear-gradient": "2.5.6",
"@react-native-community/netinfo": "5.9.7",
"react-native-svg": "12.1.0",
"react-native-svg": "15.7.1",
"react-native-system-navigation-bar": "2.6.3",
"react-native-video": "5.2.1",
"@react-native-community/async-storage": "1.12.1",
"@react-native-async-storage/async-storage": "2.0.0",
"react-native-camera": "3.40.0",
"react-native-view-shot": "3.1.2",
"react-native-blob-util": "0.16.2",
"react-native-file-viewer": "2.1.5",
"react-native-localize": "1.4.2",
"react-native-localize": "3.2.1",
"react-native-image-picker": "5.0.1",
"react-native-permissions": "4.1.5",
"react-native-webview": "11.26.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/jsActions/mobile-resources-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"fbjs": "3.0.4",
"mime": "3.0.0",
"react-native-blob-util": "0.16.2",
"react-native-device-info": "11.1.0",
"react-native-device-info": "13.0.0",
"react-native-file-viewer": "2.1.5",
"react-native-image-picker": "5.0.1",
"react-native-inappbrowser-reborn": "3.4.0",
"react-native-localize": "1.4.2",
"react-native-localize": "3.2.1",
"react-native-permissions": "4.1.5",
"react-native-push-notification": "8.1.1",
"react-native-schedule-exact-alarm-permission": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/jsActions/nanoflow-actions-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"release:marketplace": "node ../../../scripts/release/marketplaceRelease.js"
},
"dependencies": {
"@react-native-community/async-storage": "1.12.1",
"@react-native-async-storage/async-storage": "2.0.0",
"@react-native-community/geolocation": "2.0.2",
"invariant": "^2.2.4",
"js-base64": "~3.7.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { StorageValue } from "../../typings/StorageValue";

// BEGIN EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { StorageValue } from "../../typings/StorageValue";

// BEGIN EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";

// BEGIN EXTRA CODE
// END EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";

// BEGIN EXTRA CODE
// END EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { StorageValue } from "../../typings/StorageValue";

// BEGIN EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { StorageValue } from "../../typings/StorageValue";

// BEGIN EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";

// BEGIN EXTRA CODE
// END EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";

// BEGIN EXTRA CODE
// END EXTRA CODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function initializeCounter(): Promise<void> {

async function getItem(key: string): Promise<any> {
if (navigator && navigator.product === "ReactNative") {
const AsyncStorage = (await import("@react-native-community/async-storage")).default;
const AsyncStorage = (await import("@react-native-async-storage/async-storage")).default;
return AsyncStorage.getItem(key);
}
if (window) {
Expand All @@ -32,7 +32,7 @@ async function getItem(key: string): Promise<any> {
}
async function setItem(key: string, value: string): Promise<void> {
if (navigator && navigator.product === "ReactNative") {
const AsyncStorage = (await import("@react-native-community/async-storage")).default;
const AsyncStorage = (await import("@react-native-async-storage/async-storage")).default;
return AsyncStorage.setItem(key, value);
}
if (window) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/bottom-sheet-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@mendix/piw-native-utils-internal": "*",
"@mendix/piw-utils-internal": "*",
"react-native-actionsheet": "^2.4.2",
"react-native-device-info": "11.1.0",
"react-native-device-info": "13.0.0",
"react-native-modal": "^11.5.4",
"react-native-reanimated": "^1.0.1",
"reanimated-bottom-sheet": "^1.0.0-alpha.19"
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/gallery-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@mendix/piw-utils-internal": "*",
"react-native-device-info": "11.1.0"
"react-native-device-info": "13.0.0"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@mendix/piw-native-utils-internal": "*",
"@mendix/piw-utils-internal": "*",
"react-native-svg": "^12.3.0"
"react-native-svg": "15.7.1"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/image-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@mendix/piw-native-utils-internal": "*",
"@mendix/piw-utils-internal": "*",
"react-native-fast-image": "8.3.2",
"react-native-svg": "^12.3.0",
"react-native-vector-icons": "10.0.3"
"react-native-svg": "15.7.1",
"react-native-vector-icons": "10.2.0"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/pluggableWidgets/intro-screen-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"dependencies": {
"@mendix/piw-native-utils-internal": "*",
"@mendix/piw-utils-internal": "*",
"@react-native-community/async-storage": "1.12.1",
"react-native-device-info": "11.1.0"
"@react-native-async-storage/async-storage": "2.0.0",
"react-native-device-info": "13.0.0"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IntroScreenProps } from "../typings/IntroScreenProps";
import { Modal, View } from "react-native";
import { DynamicValue, ValueStatus } from "mendix";
import { SwipeableContainer } from "./SwipeableContainer";
import AsyncStorage from "@react-native-community/async-storage";
import AsyncStorage from "@react-native-async-storage/async-storage";
import deepmerge from "deepmerge";
import { executeAction } from "@mendix/piw-utils-internal";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jest.mock("react-native-device-info", () => ({
getDeviceId: jest.fn().mockReturnValue("iPhone10,6")
}));

jest.mock("@react-native-community/async-storage", () => ({
jest.mock("@react-native-async-storage/async-storage", () => ({
getItem: jest.fn().mockResolvedValue("gone"),
setValue: jest.fn().mockResolvedValue(null)
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jest.mock("react-native-device-info", () => ({
getDeviceId: jest.fn().mockReturnValue("")
}));

jest.mock("@react-native-community/async-storage", () => ({
jest.mock("@react-native-async-storage/async-storage", () => ({
getItem: jest.fn().mockResolvedValue("gone"),
setValue: jest.fn().mockResolvedValue(null)
}));
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/qr-code-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@mendix/piw-native-utils-internal": "*",
"react-native-qrcode-svg": "6.0.6",
"react-native-svg": "^12.3.0"
"react-native-svg": "15.7.1"
},
"devDependencies": {
"@mendix/piw-utils-internal": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/rating-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@mendix/piw-native-utils-internal": "*",
"@mendix/piw-utils-internal": "*",
"react-native-animatable": "^1.3.2",
"react-native-vector-icons": "10.0.3"
"react-native-vector-icons": "10.2.0"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^9.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/pluggableWidgets/video-player-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@mendix/piw-native-utils-internal": "*",
"deprecated-react-native-prop-types": "^4.0.0",
"react-native-system-navigation-bar": "2.6.3",
"react-native-vector-icons": "10.0.3",
"react-native-vector-icons": "10.2.0",
"react-native-video": "6.4.5"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 4e02632

Please sign in to comment.