From c4b368b16567a703c9a976cebd7daffea5522c83 Mon Sep 17 00:00:00 2001 From: Varnit Goyal Date: Wed, 6 Sep 2023 18:40:47 +0530 Subject: [PATCH] TP-00000 | uat --- App.tsx | 3 +-- android/app/google-services.json | 16 ++++++++-------- src/constants/config.js | 12 ++++++------ src/screens/addressGeolocation/index.tsx | 2 +- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/App.tsx b/App.tsx index a33b020b..07a85922 100644 --- a/App.tsx +++ b/App.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useState } from 'react'; import { AppState, LogBox, @@ -69,7 +69,6 @@ const PERMISSION_CHECK_POLL_INTERVAL = 5 * MILLISECONDS_IN_A_SECOND; function App() { const [permissions, setPermissions] = React.useState(true); const [isGlobalDocumentMapLoaded, setIsGlobalDocumentMapLoaded] = React.useState(false); - const routeNameRef = React.useRef(null); const [routeName, setRouteName] = useState('Unknown'); const askForPermissions = async () => { diff --git a/android/app/google-services.json b/android/app/google-services.json index f48fcb67..629b987b 100644 --- a/android/app/google-services.json +++ b/android/app/google-services.json @@ -1,33 +1,33 @@ { "project_info": { - "project_number": "60755663443", - "project_id": "address-verification-app", - "storage_bucket": "address-verification-app.appspot.com" + "project_number": "136591056725", + "project_id": "field-verification-app", + "storage_bucket": "field-verification-app.appspot.com" }, "client": [ { "client_info": { - "mobilesdk_app_id": "1:60755663443:android:988149d3da3c00d38584a6", + "mobilesdk_app_id": "1:136591056725:android:c454085ec6505cc01519dc", "android_client_info": { "package_name": "com.avapp" } }, "oauth_client": [ { - "client_id": "60755663443-40k0fbrbbqv4ci4hrjlbrphab5fj387b.apps.googleusercontent.com", + "client_id": "136591056725-ev8db4hrlud2m23n0o03or3cmmp3a3cq.apps.googleusercontent.com", "client_type": 3 } ], "api_key": [ { - "current_key": "AIzaSyA70_d2M2ke-Mu0OHGZ6iZilBbD6A-_z0c" + "current_key": "AIzaSyBL32d7WRJTcJawKjT1XCEcFbGGQ8wA6j8" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { - "client_id": "60755663443-40k0fbrbbqv4ci4hrjlbrphab5fj387b.apps.googleusercontent.com", + "client_id": "136591056725-ev8db4hrlud2m23n0o03or3cmmp3a3cq.apps.googleusercontent.com", "client_type": 3 } ] @@ -36,4 +36,4 @@ } ], "configuration_version": "1" -} +} \ No newline at end of file diff --git a/src/constants/config.js b/src/constants/config.js index 6fa05aeb..8ef9052b 100644 --- a/src/constants/config.js +++ b/src/constants/config.js @@ -1,14 +1,14 @@ import { MILLISECONDS_IN_A_MINUTE, MINUTES_IN_AN_HOUR } from '../../RN-UI-LIB/src/utlis/common'; -export const BASE_AV_APP_URL = 'https://qa-longhorn-portal.np.navi-tech.in/field-app'; +export const BASE_AV_APP_URL = 'https://longhorn.navi.com/field-app'; export const SENTRY_DSN = - 'https://acef93c884c1424cacc4ec899562e203@qa-longhorn-portal.np.navi-tech.in/glitchtip-events/173'; -export const JANUS_SERVICE_URL = 'https://qa-longhorn-portal.np.navi-tech.in/api/events/json'; -export const ENV = 'qa'; + 'https://5daa4832fade44b389b265de9b26c2fd@longhorn.navi.com/glitchtip-events/172'; +export const JANUS_SERVICE_URL = 'https://longhorn.navi.com/api/events/json'; +export const ENV = 'prod'; export const IS_SSO_ENABLED = true; export const APM_APP_NAME = 'cosmos-app'; -export const APM_BASE_URL = 'https://qa-longhorn-portal.np.navi-tech.in/apm-events'; +export const APM_BASE_URL = 'https://longhorn.navi.com/apm-events'; 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'; + '136591056725-ev8db4hrlud2m23n0o03or3cmmp3a3cq.apps.googleusercontent.com'; diff --git a/src/screens/addressGeolocation/index.tsx b/src/screens/addressGeolocation/index.tsx index bbedbeb8..3f9c0061 100644 --- a/src/screens/addressGeolocation/index.tsx +++ b/src/screens/addressGeolocation/index.tsx @@ -101,7 +101,7 @@ const AddressGeolocation: React.FC = ({ route: routeParams if (addressGeolocation?.groupedAddresses?.length > 0) { getUngroupedAddress(); } - }, [addressGeolocation]); + }, [addressGeolocation?.groupedAddresses, isLoading]); useEffect(() => { if (isOnline) {