TP-31214 | MS clarity removal
This commit is contained in:
16
App.tsx
16
App.tsx
@@ -19,13 +19,7 @@ import FullScreenLoader from './RN-UI-LIB/src/components/FullScreenLoader';
|
||||
import { toastConfigs, ToastContainer } from './RN-UI-LIB/src/components/toast';
|
||||
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import {
|
||||
APM_APP_NAME,
|
||||
APM_BASE_URL,
|
||||
ENV,
|
||||
MS_CLARITY_PROJECT_ID,
|
||||
SENTRY_DSN,
|
||||
} from './src/constants/config';
|
||||
import { APM_APP_NAME, APM_BASE_URL, ENV, SENTRY_DSN } from './src/constants/config';
|
||||
import { COLORS } from './RN-UI-LIB/src/styles/colors';
|
||||
import codePush from 'react-native-code-push';
|
||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
@@ -37,16 +31,12 @@ import ErrorBoundary from './src/common/ErrorBoundary';
|
||||
import CodePush from 'react-native-code-push';
|
||||
import { TDocumentObj } from './src/screens/caseDetails/interface';
|
||||
import AuthRouter from './src/screens/auth/AuthRouter';
|
||||
import { initialize } from 'react-native-clarity';
|
||||
|
||||
Sentry.init({ dsn: SENTRY_DSN });
|
||||
|
||||
if (ENV === 'prod') {
|
||||
if (MS_CLARITY_PROJECT_ID) {
|
||||
initialize(MS_CLARITY_PROJECT_ID);
|
||||
}
|
||||
if (ENV !== 'prod') {
|
||||
// mockApiServer();
|
||||
}
|
||||
|
||||
setJsErrorHandler();
|
||||
LogBox.ignoreAllLogs();
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ export const APM_APP_NAME = 'cosmos-app';
|
||||
export const APM_BASE_URL = 'https://dev-longhorn-portal.np.navi-tech.in/apm-events';
|
||||
export const GOOGLE_SSO_CLIENT_ID =
|
||||
'60755663443-40k0fbrbbqv4ci4hrjlbrphab5fj387b.apps.googleusercontent.com';
|
||||
export const MS_CLARITY_PROJECT_ID = '';
|
||||
|
||||
@@ -12,4 +12,3 @@ export const IS_DATA_SYNC_REQUIRED = true;
|
||||
export const DATA_SYNC_TIME_INTERVAL = 2 * MINUTES_IN_AN_HOUR * MILLISECONDS_IN_A_MINUTE; // 2hr
|
||||
export const GOOGLE_SSO_CLIENT_ID =
|
||||
'136591056725-ev8db4hrlud2m23n0o03or3cmmp3a3cq.apps.googleusercontent.com';
|
||||
export const MS_CLARITY_PROJECT_ID = 'gobifvjiac';
|
||||
|
||||
@@ -12,4 +12,3 @@ export const IS_DATA_SYNC_REQUIRED = true;
|
||||
export const DATA_SYNC_TIME_INTERVAL = 2 * MINUTES_IN_AN_HOUR * MILLISECONDS_IN_A_MINUTE; // 2hr
|
||||
export const GOOGLE_SSO_CLIENT_ID =
|
||||
'60755663443-40k0fbrbbqv4ci4hrjlbrphab5fj387b.apps.googleusercontent.com';
|
||||
export const MS_CLARITY_PROJECT_ID = '';
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
"react-hook-form": "7.40.0",
|
||||
"react-native": "0.70.6",
|
||||
"react-native-call-log": "2.1.2",
|
||||
"react-native-clarity": "0.0.3",
|
||||
"react-native-code-push": "7.1.0",
|
||||
"react-native-contacts": "7.0.5",
|
||||
"react-native-date-picker": "4.2.10",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { setCustomUserId } from 'react-native-clarity';
|
||||
import { isNullOrUndefined } from '../components/utlis/commonFunctions';
|
||||
|
||||
export enum DEVICE_TYPE_ENUM {
|
||||
@@ -22,10 +21,6 @@ interface IGlobalUserData {
|
||||
isImpersonated?: boolean;
|
||||
}
|
||||
|
||||
interface IClarityConfiguration {
|
||||
customUserId?: string;
|
||||
}
|
||||
|
||||
export const setGlobalUserData = (userData: IGlobalUserData) => {
|
||||
const { token, deviceId, agentId, deviceType, isImpersonated } = userData;
|
||||
if (!isNullOrUndefined(token)) GLOBAL.SESSION_TOKEN = `${token}`;
|
||||
@@ -34,9 +29,3 @@ export const setGlobalUserData = (userData: IGlobalUserData) => {
|
||||
if (!isNullOrUndefined(deviceType)) GLOBAL.DEVICE_TYPE = deviceType as DEVICE_TYPE_ENUM;
|
||||
if (!isNullOrUndefined(isImpersonated)) GLOBAL.IS_IMPERSONATED = isImpersonated ?? false;
|
||||
};
|
||||
|
||||
export const setMsClarityConfig = (clarityConfig: IClarityConfiguration) => {
|
||||
if (clarityConfig?.customUserId) {
|
||||
setCustomUserId(clarityConfig.customUserId);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -12,4 +12,3 @@ export const IS_DATA_SYNC_REQUIRED = true;
|
||||
export const DATA_SYNC_TIME_INTERVAL = 2 * MINUTES_IN_AN_HOUR * MILLISECONDS_IN_A_MINUTE; // 2hr
|
||||
export const GOOGLE_SSO_CLIENT_ID =
|
||||
'60755663443-40k0fbrbbqv4ci4hrjlbrphab5fj387b.apps.googleusercontent.com';
|
||||
export const MS_CLARITY_PROJECT_ID = '';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useSelector } from 'react-redux';
|
||||
import { RootState } from '../../store/store';
|
||||
import { getUniqueId, isTablet } from 'react-native-device-info';
|
||||
import { setDeviceId } from '../../reducer/userSlice';
|
||||
import { DEVICE_TYPE_ENUM, setGlobalUserData, setMsClarityConfig } from '../../constants/Global';
|
||||
import { DEVICE_TYPE_ENUM, setGlobalUserData } from '../../constants/Global';
|
||||
import { registerNavigateAndDispatch } from '../../components/utlis/apiHelper';
|
||||
import ProtectedRouter from './ProtectedRouter';
|
||||
import useNativeButtons from '../../hooks/useNativeButton';
|
||||
@@ -38,8 +38,6 @@ const AuthRouter = () => {
|
||||
isImpersonated: user?.isImpersonated ?? false,
|
||||
});
|
||||
|
||||
setMsClarityConfig({ customUserId: user?.user?.phoneNumber || user?.user?.emailId });
|
||||
|
||||
// Sets the dispatch for apiHelper
|
||||
registerNavigateAndDispatch(dispatch);
|
||||
|
||||
|
||||
@@ -7566,11 +7566,14 @@ react-native-call-log@2.1.2:
|
||||
resolved "https://registry.yarnpkg.com/react-native-call-log/-/react-native-call-log-2.1.2.tgz#f80d2fcb45f72118eb8048d5bfdef191fd4a3df3"
|
||||
integrity sha512-nWHmb+QMN/AbbZFEuUGiQePssPgjQr5dibNAURDlqO4S5wuLk1XzxxsLUAVHZnB0FdJoMlajD7tUAXtaoxYwUQ==
|
||||
|
||||
<<<<<<< HEAD
|
||||
react-native-clarity@0.0.3:
|
||||
version "0.0.3"
|
||||
resolved "https://registry.yarnpkg.com/react-native-clarity/-/react-native-clarity-0.0.3.tgz#e9c83dd097c0cdaf0751c7f6683fc3b038134637"
|
||||
integrity sha512-uXccmC9iKwxBpsy7jOLaEo87RBQax/WNCI5EDa/hldn1+8eNCwwhkUdJZeNgi1pZ/dyBmHZj0Be0jgWy4K4gkA==
|
||||
|
||||
=======
|
||||
>>>>>>> parent of a7c7115 (TP-29554 - MS clarity integration)
|
||||
react-native-code-push@7.1.0:
|
||||
version "7.1.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-code-push/-/react-native-code-push-7.1.0.tgz#9767518d684017993ff32875bfd349ce01298d35"
|
||||
|
||||
Reference in New Issue
Block a user