Skip to content

Commit

Permalink
build: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
outaTiME committed Mar 14, 2024
1 parent ebb45b1 commit 1a47ca8
Show file tree
Hide file tree
Showing 12 changed files with 2,349 additions and 1,261 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"packages/*"
],
"devDependencies": {
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@commitlint/cli": "^19.1.0",
"@commitlint/config-conventional": "^19.1.0",
"aws-cdk-lib": "2.124.0",
"constructs": "10.3.0",
"eslint": "^8.57.0",
"eslint-config-universe": "^12.0.0",
"husky": "^9.0.11",
"lerna": "^8.1.2",
"prettier": "^3.2.5",
"sst": "2.40.5"
"sst": "2.40.7"
},
"scripts": {
"test": "lerna run test",
Expand Down
20 changes: 10 additions & 10 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
"version": "3.14.2",
"dependencies": {
"@ambito-dolar/core": "^3.8.4",
"@atproto/api": "^0.10.3",
"@aws-sdk/client-dynamodb": "~3.525.0",
"@aws-sdk/client-s3": "~3.525.0",
"@aws-sdk/client-sns": "~3.525.0",
"@aws-sdk/lib-dynamodb": "~3.525.0",
"@atproto/api": "^0.11.1",
"@aws-sdk/client-dynamodb": "~3.533.0",
"@aws-sdk/client-s3": "~3.533.0",
"@aws-sdk/client-sns": "~3.533.0",
"@aws-sdk/lib-dynamodb": "~3.533.0",
"@sentry/integrations": "7.100.1",
"@sentry/serverless": "7.100.1",
"@shelf/dynamodb-parallel-scan": "^3.7.0",
"@smithy/node-http-handler": "^2.4.1",
"@smithy/node-http-handler": "^2.4.3",
"@sparticuz/chromium": "~122.0.0",
"async": "^3.2.5",
"boolean": "^3.2.0",
"expo-server-sdk": "^3.7.0",
"google-auth-library": "^9.6.3",
"instagram-private-api": "^1.45.3",
"google-auth-library": "^9.7.0",
"instagram-private-api": "^1.46.1",
"joi": "^17.12.2",
"lodash": "^4.17.21",
"masto": "^6.6.3",
"masto": "^6.6.4",
"object-hash": "^3.0.0",
"pretty-ms": "^9.0.0",
"puppeteer-core": "~22.2.0",
"reddit": "^1.2.1",
"semver": "^7.6.0",
"sharp": "^0.32.6",
"twitter-api-v2": "^1.16.0"
"twitter-api-v2": "^1.16.1"
}
}
19 changes: 10 additions & 9 deletions packages/client/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,16 @@ export default {
},
],
[
'@config-plugins/react-native-quick-actions',
[
{
title: 'Conversor',
type: 'Conversion',
// iconType: 'UIApplicationShortcutIconTypeSearch',
iconType: 'UIApplicationShortcutIconTypeCompose',
},
],
'expo-quick-actions',
{
iosActions: [
{
id: 'Conversion',
title: 'Conversor',
icon: 'compose',
},
],
},
],
// https://www.aronberezkin.com/posts/a-step-by-step-guide-to-writing-your-first-expo-config-plugin
'./plugins/withAndroidSplashScreen.js',
Expand Down
31 changes: 7 additions & 24 deletions packages/client/components/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import * as Device from 'expo-device';
import * as Linking from 'expo-linking';
import * as Localization from 'expo-localization';
import * as Notifications from 'expo-notifications';
import { useQuickAction } from 'expo-quick-actions/hooks';
import * as SplashScreen from 'expo-splash-screen';
import * as StoreReview from 'expo-store-review';
import { initializeApp } from 'firebase/app';
import { getDatabase, ref, onValue } from 'firebase/database';
import React from 'react';
import { StyleSheet, Platform, View, DeviceEventEmitter } from 'react-native';
import { StyleSheet, Platform, View } from 'react-native';
import Purchases from 'react-native-purchases';
import QuickActions from 'react-native-quick-actions';
import { useSelector, shallowEqual, useDispatch } from 'react-redux';

import { MaterialHeaderButtons, Item } from './HeaderButtons';
Expand Down Expand Up @@ -386,13 +386,6 @@ const ModalsStackScreen = () => {
);
};

let initialQuickAction;
// https://github.com/jordanbyron/react-native-quick-actions#listening-for-quick-actions
Settings.IS_PRODUCTION &&
QuickActions.popInitialAction()
.then((data) => (initialQuickAction = data))
.catch(console.warn);

const RootStack = createNativeStackNavigator();
const AppContainer = ({
rates,
Expand Down Expand Up @@ -440,11 +433,12 @@ const AppContainer = ({
}
}, [lastNotificationResponse]);
// QUICK ACTIONS
const onQuickAction = React.useCallback((data) => {
const quickAction = useQuickAction();
React.useEffect(() => {
if (__DEV__) {
console.log('🎯 Quick action received', data);
console.log('🎯 Quick action received', quickAction);
}
const type = data?.type;
const type = quickAction?.id;
if (type) {
Amplitude.track('Quick action', { type });
navigationRef.navigate(`${type}Tab`, {
Expand All @@ -454,18 +448,7 @@ const AppContainer = ({
},
});
}
}, []);
React.useEffect(() => {
// handle cold launch
initialQuickAction && onQuickAction(initialQuickAction);
const subscription = DeviceEventEmitter.addListener(
'quickActionShortcut',
onQuickAction,
);
return () => {
subscription.remove();
};
}, []);
}, [quickAction]);
// DEEP LINK
const onDeepLink = React.useCallback((url) => {
if (url) {
Expand Down
Loading

0 comments on commit 1a47ca8

Please sign in to comment.