From e52624da2d321298fe0550248037873a86ea2090 Mon Sep 17 00:00:00 2001 From: Andrew Rosiclair Date: Tue, 30 Jul 2024 16:14:48 -0400 Subject: [PATCH] log platform and config on startup --- src/Expensify.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Expensify.tsx b/src/Expensify.tsx index f9fd379d94ce..76f2b6ec19a8 100644 --- a/src/Expensify.tsx +++ b/src/Expensify.tsx @@ -1,7 +1,7 @@ import {Audio} from 'expo-av'; import React, {useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react'; import type {NativeEventSubscription} from 'react-native'; -import {AppState, Linking, NativeModules} from 'react-native'; +import {AppState, Linking, NativeModules, Platform} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import Onyx, {useOnyx, withOnyx} from 'react-native-onyx'; import ConfirmModal from './components/ConfirmModal'; @@ -13,6 +13,7 @@ import RequireTwoFactorAuthenticationModal from './components/RequireTwoFactorAu import AppleAuthWrapper from './components/SignInButtons/AppleAuthWrapper'; import SplashScreenHider from './components/SplashScreenHider'; import UpdateAppModal from './components/UpdateAppModal'; +import * as CONFIG from './CONFIG'; import CONST from './CONST'; import useLocalize from './hooks/useLocalize'; import * as EmojiPickerAction from './libs/actions/EmojiPickerAction'; @@ -169,6 +170,11 @@ function Expensify({ return unsubscribeNetInfo; }, []); + // Log the platform and config to debug .env issues + useEffect(() => { + Log.info('App launched', false, {Platform, CONFIG}); + }, []); + useEffect(() => { setTimeout(() => { BootSplash.getVisibilityStatus().then((status) => {