Merge branch 'master' into loan-account

This commit is contained in:
Anshuman Rai
2024-08-13 16:16:43 +05:30
committed by GitHub
4 changed files with 15 additions and 8 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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
});
};

View File

@@ -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<IDocumentDataItem> = ({
docContentType,
documentRefId,
documentName,
unsignedUri
unsignedUri,
documentKey
} = document || {};
const [isExpanded, setIsExpanded] = useState<boolean>();
@@ -46,8 +47,11 @@ const DocumentDataItem: React.FC<IDocumentDataItem> = ({
referenceId: state.user.user?.referenceId!,
}));
const isPDF = docContentType === DocumentContentType.PDF;
const isVideo = (docContentType === DocumentContentType.VIDEO || docContentType === DocumentContentType.VIDEO_MP4);
const isPDF = docContentType?.includes(DocumentContentType.PDF);
const isVideo =
docContentType === DocumentContentType.VIDEO ||
docContentType === DocumentContentType.VIDEO_MP4 ||
documentKey === DOCUMENT_TYPE.VKYC_VIDEO;
const handleOpenPdfPress = () => {
if (!viewable) return;