From 7d23ac3a844c93876f67afcf209c9f33162dcbca Mon Sep 17 00:00:00 2001 From: yashmantri Date: Fri, 9 Aug 2024 18:09:20 +0530 Subject: [PATCH 1/5] TP-71465 | OS Version details added in clickstream --- src/components/utlis/commonFunctions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/utlis/commonFunctions.ts b/src/components/utlis/commonFunctions.ts index 01745dee..8e24044d 100644 --- a/src/components/utlis/commonFunctions.ts +++ b/src/components/utlis/commonFunctions.ts @@ -38,6 +38,7 @@ import { getFontScale, getManufacturer, getModel, + getSystemVersion, getTotalMemory, } from 'react-native-device-info'; import { addClickstreamEvent } from '@services/clickstreamEventService'; @@ -508,6 +509,7 @@ export const sendDeviceDetailsToClickstream = async () => { const fontScale = await getFontScale(); const manufacturer = await getManufacturer(); const model = getModel(); + const systemVersion = getSystemVersion(); const totalMemory = (await getTotalMemory()) / Math.pow(10, 9); // Converting it to GB const phoneLanguage = NativeModules?.I18nManager?.localeIdentifier; @@ -519,6 +521,7 @@ export const sendDeviceDetailsToClickstream = async () => { model, totalMemory, phoneLanguage, + systemVersion }); }; From b169931d6ac4a53fb62a6c3749a0c3c47572c2d2 Mon Sep 17 00:00:00 2001 From: ShriPrakashBajpai Date: Sat, 10 Aug 2024 14:08:47 +0530 Subject: [PATCH 2/5] TP-69909 Docs fix --- src/screens/caseDetails/DocumentDataItem.tsx | 2 +- src/screens/caseDetails/interface.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens/caseDetails/DocumentDataItem.tsx b/src/screens/caseDetails/DocumentDataItem.tsx index 2c122612..056afb26 100644 --- a/src/screens/caseDetails/DocumentDataItem.tsx +++ b/src/screens/caseDetails/DocumentDataItem.tsx @@ -46,7 +46,7 @@ const DocumentDataItem: React.FC = ({ referenceId: state.user.user?.referenceId!, })); - const isPDF = docContentType === DocumentContentType.PDF; + const isPDF = (docContentType === DocumentContentType.PDF || docContentType === DocumentContentType.APPLICATION_PDF); const isVideo = (docContentType === DocumentContentType.VIDEO || docContentType === DocumentContentType.VIDEO_MP4); const handleOpenPdfPress = () => { diff --git a/src/screens/caseDetails/interface.ts b/src/screens/caseDetails/interface.ts index fb679dc2..2c7fd8c6 100644 --- a/src/screens/caseDetails/interface.ts +++ b/src/screens/caseDetails/interface.ts @@ -184,6 +184,7 @@ export enum DocumentTitle { export enum DocumentContentType { PDF = 'pdf', + APPLICATION_PDF = 'application/pdf', VIDEO = 'video', VIDEO_MP4 = 'video/mp4', } From ae7901e47680d5ab448c6e7a2b19a09bc093687c Mon Sep 17 00:00:00 2001 From: ShriPrakashBajpai Date: Sat, 10 Aug 2024 14:46:03 +0530 Subject: [PATCH 3/5] TP-69909 Docs fix --- src/screens/caseDetails/DocumentDataItem.tsx | 2 +- src/screens/caseDetails/interface.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screens/caseDetails/DocumentDataItem.tsx b/src/screens/caseDetails/DocumentDataItem.tsx index 056afb26..879ae5a5 100644 --- a/src/screens/caseDetails/DocumentDataItem.tsx +++ b/src/screens/caseDetails/DocumentDataItem.tsx @@ -46,7 +46,7 @@ const DocumentDataItem: React.FC = ({ referenceId: state.user.user?.referenceId!, })); - const isPDF = (docContentType === DocumentContentType.PDF || docContentType === DocumentContentType.APPLICATION_PDF); + const isPDF = docContentType?.includes(DocumentContentType.PDF); const isVideo = (docContentType === DocumentContentType.VIDEO || docContentType === DocumentContentType.VIDEO_MP4); const handleOpenPdfPress = () => { diff --git a/src/screens/caseDetails/interface.ts b/src/screens/caseDetails/interface.ts index 2c7fd8c6..fb679dc2 100644 --- a/src/screens/caseDetails/interface.ts +++ b/src/screens/caseDetails/interface.ts @@ -184,7 +184,6 @@ export enum DocumentTitle { export enum DocumentContentType { PDF = 'pdf', - APPLICATION_PDF = 'application/pdf', VIDEO = 'video', VIDEO_MP4 = 'video/mp4', } From 35e88c8e9edfa4d6e8d22a262ae9e94a198dffc0 Mon Sep 17 00:00:00 2001 From: yashmantri Date: Tue, 13 Aug 2024 13:56:56 +0530 Subject: [PATCH 4/5] TP-69909 | VKYC video fix --- src/screens/caseDetails/DocumentDataItem.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/screens/caseDetails/DocumentDataItem.tsx b/src/screens/caseDetails/DocumentDataItem.tsx index 879ae5a5..d95b1f80 100644 --- a/src/screens/caseDetails/DocumentDataItem.tsx +++ b/src/screens/caseDetails/DocumentDataItem.tsx @@ -7,7 +7,7 @@ import { CLICKSTREAM_EVENT_NAMES } from '@common/Constants'; import VKYCVideo from './utils/VKYCVideo'; import DocumentImageComponent from './DocumentImageComponent'; import { GenericStyles, getShadowStyle } from '@rn-ui-lib/styles'; -import { DocumentContentType, IDocumentItem } from './interface'; +import { DOCUMENT_TYPE, DocumentContentType, IDocumentItem } from './interface'; import { COLORS } from '@rn-ui-lib/colors'; import { CaseAllocationType } from '@screens/allCases/interface'; import { useAppSelector } from '@hooks'; @@ -37,7 +37,8 @@ const DocumentDataItem: React.FC = ({ docContentType, documentRefId, documentName, - unsignedUri + unsignedUri, + documentKey } = document || {}; const [isExpanded, setIsExpanded] = useState(); @@ -47,7 +48,10 @@ const DocumentDataItem: React.FC = ({ })); const isPDF = docContentType?.includes(DocumentContentType.PDF); - const isVideo = (docContentType === DocumentContentType.VIDEO || docContentType === DocumentContentType.VIDEO_MP4); + const isVideo = + docContentType === DocumentContentType.VIDEO || + docContentType === DocumentContentType.VIDEO_MP4 || + documentKey === DOCUMENT_TYPE.VKYC_VIDEO; const handleOpenPdfPress = () => { if (!viewable) return; From 11dc823126c24091cb1baf0aed90981386a5bed1 Mon Sep 17 00:00:00 2001 From: yashmantri Date: Tue, 13 Aug 2024 14:08:06 +0530 Subject: [PATCH 5/5] TP-71465 | Version bump --- android/app/build.gradle | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 1916e2be..dcfc61e6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -134,8 +134,8 @@ def reactNativeArchitectures() { return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] } -def VERSION_CODE = 182 -def VERSION_NAME = "2.12.6" +def VERSION_CODE = 183 +def VERSION_NAME = "2.12.7" android { ndkVersion rootProject.ext.ndkVersion diff --git a/package.json b/package.json index c82d1189..44a438dc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "AV_APP", - "version": "2.12.6", - "buildNumber": "182", + "version": "2.12.7", + "buildNumber": "183", "private": true, "scripts": { "android:dev": "yarn move:dev && react-native run-android",