diff --git a/LICENSE b/LICENSE index 46aa13b8d..0458a05db 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017-2021 Chatwoot Inc. +Copyright (c) 2017-2025 Chatwoot Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index cb93fe948..8024b0499 100644 --- a/package.json +++ b/package.json @@ -68,8 +68,6 @@ "expo-web-browser": "~13.0.3", "i18n-js": "^3.8.0", "lodash": "^4.17.21", - "lodash.groupby": "^4.6.0", - "moment": "^2.30.1", "react": "18.2.0", "react-hook-form": "^7.52.1", "react-native": "0.74.5", @@ -92,11 +90,9 @@ "react-native-screens": "^3.32.0", "react-native-snackbar": "^2.6.2", "react-native-svg": "^15.4.0", - "react-native-track-player": "^4.1.1", "react-native-webview": "^13.8.6", "react-redux": "^8.1.2", "reactotron-redux": "^3.1.10", - "redux": "^4.2.1", "redux-persist": "^6.0.0", "rn-fetch-blob": "^0.12.0", "semver": "^7.6.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17abb4ee8..2fb14076c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,12 +128,6 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 - lodash.groupby: - specifier: ^4.6.0 - version: 4.6.0 - moment: - specifier: ^2.30.1 - version: 2.30.1 react: specifier: 18.2.0 version: 18.2.0 @@ -200,9 +194,6 @@ importers: react-native-svg: specifier: ^15.4.0 version: 15.7.1(react-native@0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0))(react@18.2.0) - react-native-track-player: - specifier: ^4.1.1 - version: 4.1.1(react-native@0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0))(react@18.2.0) react-native-webview: specifier: ^13.8.6 version: 13.8.6(react-native@0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0))(react@18.2.0) @@ -212,9 +203,6 @@ importers: reactotron-redux: specifier: ^3.1.10 version: 3.1.10(reactotron-core-client@2.9.4)(redux@4.2.1) - redux: - specifier: ^4.2.1 - version: 4.2.1 redux-persist: specifier: ^6.0.0 version: 6.0.0(react@18.2.0)(redux@4.2.1) @@ -5002,9 +4990,6 @@ packages: lodash.escape@4.0.1: resolution: {integrity: sha512-nXEOnb/jK9g0DYMr1/Xvq6l5xMD7GDG55+GSYIYmS0G4tBk/hURD4JR9WCavs04t33WmJx9kCyp9vJ+mr4BOUw==} - lodash.groupby@4.6.0: - resolution: {integrity: sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw==} - lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -5270,9 +5255,6 @@ packages: engines: {node: '>=10'} hasBin: true - moment@2.30.1: - resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==} - ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} @@ -5936,19 +5918,6 @@ packages: react-native-swipe-gestures@1.0.5: resolution: {integrity: sha512-Ns7Bn9H/Tyw278+5SQx9oAblDZ7JixyzeOczcBK8dipQk2pD7Djkcfnf1nB/8RErAmMLL9iXgW0QHqiII8AhKw==} - react-native-track-player@4.1.1: - resolution: {integrity: sha512-E5N/eK/+HtAVJUAzXpm1cWz8ROheV9jb0TI6h2bM+333U+DWibTTnT2T1122FkCoXLXIYavtm2FR2if+5jH8cA==} - peerDependencies: - react: '>=16.8.6' - react-native: '>=0.60.0-rc.2' - react-native-windows: '>=0.63.0' - shaka-player: ^4.7.9 - peerDependenciesMeta: - react-native-windows: - optional: true - shaka-player: - optional: true - react-native-url-polyfill@2.0.0: resolution: {integrity: sha512-My330Do7/DvKnEvwQc0WdcBnFPploYKp9CYlefDXzIdEaA+PAhDYllkvGeEroEzvc4Kzzj2O4yVdz8v6fjRvhA==} peerDependencies: @@ -13314,8 +13283,6 @@ snapshots: lodash.escape@4.0.1: {} - lodash.groupby@4.6.0: {} - lodash.merge@4.6.2: {} lodash.throttle@4.1.1: {} @@ -13675,8 +13642,6 @@ snapshots: mkdirp@1.0.4: {} - moment@2.30.1: {} - ms@2.0.0: {} ms@2.1.3: {} @@ -14326,11 +14291,6 @@ snapshots: react-native-swipe-gestures@1.0.5: {} - react-native-track-player@4.1.1(react-native@0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0))(react@18.2.0): - dependencies: - react: 18.2.0 - react-native: 0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0) - react-native-url-polyfill@2.0.0(react-native@0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0)): dependencies: react-native: 0.74.5(@babel/core@7.25.7)(@babel/preset-env@7.25.7(@babel/core@7.25.7))(@types/react@18.2.79)(react@18.2.0) diff --git a/src/screens/chat-screen/ChatScreen.tsx b/src/screens/chat-screen/ChatScreen.tsx index c5138017f..7b5395f27 100644 --- a/src/screens/chat-screen/ChatScreen.tsx +++ b/src/screens/chat-screen/ChatScreen.tsx @@ -2,7 +2,6 @@ import React, { useEffect } from 'react'; import PagerView, { PagerViewOnPageSelectedEvent } from 'react-native-pager-view'; import Animated from 'react-native-reanimated'; import { SafeAreaView } from 'react-native-safe-area-context'; -import TrackPlayer from 'react-native-track-player'; import { LightBoxProvider } from '@alantoa/lightbox'; import { NativeStackScreenProps } from '@react-navigation/native-stack'; @@ -126,17 +125,6 @@ const ChatScreen = (props: ChatScreenProps) => { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - useEffect(() => { - const setUpTrackPlayer = () => { - TrackPlayer.setupPlayer() - .then(() => {}) - .catch(() => { - // Handle setting up player error - }); - }; - setUpTrackPlayer(); - }); - const handleBackPress = () => { if (navigation.canGoBack()) { navigation.dispatch(StackActions.pop());