From 89a741bbb117d45a0e9450f0a3532e902f3adf9d Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 30 Sep 2024 16:49:31 +0100 Subject: [PATCH] Fix iOS errors --- apps/wallet-mobile/ios/Podfile.lock | 8 +- apps/wallet-mobile/package.json | 2 +- apps/wallet-mobile/src/AppNavigator.tsx | 2 +- .../useCases/NotificationsDevScreen.tsx | 6 +- .../Notifications/useCases/common/hooks.ts | 114 +++++++++++------- .../src/yoroi-wallets/cardano/types.ts | 2 +- packages/notifications/README.md | 5 +- yarn.lock | 14 +-- 8 files changed, 86 insertions(+), 67 deletions(-) diff --git a/apps/wallet-mobile/ios/Podfile.lock b/apps/wallet-mobile/ios/Podfile.lock index 7094817b5f..11fbe17111 100644 --- a/apps/wallet-mobile/ios/Podfile.lock +++ b/apps/wallet-mobile/ios/Podfile.lock @@ -45,7 +45,7 @@ PODS: - ReactCommon/turbomodule/core - ExpoSystemUI (2.2.1): - ExpoModulesCore - - EXTaskManager (11.8.2): + - EXTaskManager (11.7.3): - ExpoModulesCore - UMAppLoader - FBLazyVector (0.71.14) @@ -545,7 +545,7 @@ PODS: - libwebp (~> 1.0) - SDWebImage/Core (~> 5.15) - Sentry/HybridSDK (8.36.0) - - UMAppLoader (4.6.0) + - UMAppLoader (4.5.1) - Yoga (1.14.0) - ZXingObjC/Core (3.6.9) - ZXingObjC/OneD (3.6.9): @@ -867,7 +867,7 @@ SPEC CHECKSUMS: ExpoKeepAwake: 69f5f627670d62318410392d03e0b5db0f85759a ExpoModulesCore: 653958063a301098b541ae4dfed1ac0b98db607b ExpoSystemUI: 0be5173ee2a7c01e9abc44f56d879a1eaaa16527 - EXTaskManager: 9c3520305c3aa1b4a12a7c6d1e3f85f2779c06e9 + EXTaskManager: 07d427a5213dd275c13b6b6c07bba35a672e6698 FBLazyVector: 12ea01e587c9594e7b144e1bfc86ac4d9ac28fde FBReactNativeSpec: faca7d16c37626ca5780a87adef703817722fe61 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 @@ -950,7 +950,7 @@ SPEC CHECKSUMS: SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c SDWebImageWebPCoder: 295a6573c512f54ad2dd58098e64e17dcf008499 Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57 - UMAppLoader: f17a5ee8e85b536ace0fc254b447a37ed198d57e + UMAppLoader: 79d3ee6aa2447a1fe2e8b0d07acf2de106e55b58 Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9 ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5 diff --git a/apps/wallet-mobile/package.json b/apps/wallet-mobile/package.json index f68947849b..e2b3a7bc1c 100644 --- a/apps/wallet-mobile/package.json +++ b/apps/wallet-mobile/package.json @@ -163,7 +163,7 @@ "expo-image": "1.3.0", "expo-status-bar": "~1.4.4", "expo-system-ui": "~2.2.1", - "expo-task-manager": "^11.8.2", + "expo-task-manager": "11.7.3", "immer": "^10.0.2", "jsc-android": "241213.1.0", "lodash": "^4.17.21", diff --git a/apps/wallet-mobile/src/AppNavigator.tsx b/apps/wallet-mobile/src/AppNavigator.tsx index e6b7e02fb3..89f7e2c376 100644 --- a/apps/wallet-mobile/src/AppNavigator.tsx +++ b/apps/wallet-mobile/src/AppNavigator.tsx @@ -31,6 +31,7 @@ import { useShowDarkThemeAnnouncementScreen, } from './features/Initialization/DarkThemeAnnouncement/DarkThemeAnnouncement' import {useDeepLinkWatcher} from './features/Links/common/useDeepLinkWatcher' +import {useNotifications} from './features/Notifications/useCases/common/hooks' import {NotificationsDevScreen} from './features/Notifications/useCases/NotificationsDevScreen' import {PortfolioScreen} from './features/Portfolio/useCases/PortfolioScreen' import {SearchProvider} from './features/Search/SearchContext' @@ -40,7 +41,6 @@ import {useStatusBar} from './hooks/useStatusBar' import {agreementDate} from './kernel/config' import {AppRoutes, defaultStackNavigationOptions} from './kernel/navigation' import {WalletNavigator} from './WalletNavigator' -import {useNotifications} from './features/Notifications/useCases/common/hooks' const Stack = createStackNavigator() const navRef = React.createRef>() diff --git a/apps/wallet-mobile/src/features/Notifications/useCases/NotificationsDevScreen.tsx b/apps/wallet-mobile/src/features/Notifications/useCases/NotificationsDevScreen.tsx index a8346d5ed4..1f80d5cd1c 100644 --- a/apps/wallet-mobile/src/features/Notifications/useCases/NotificationsDevScreen.tsx +++ b/apps/wallet-mobile/src/features/Notifications/useCases/NotificationsDevScreen.tsx @@ -37,7 +37,7 @@ export const NotificationsDevScreen = () => { Notifications Playground