From 46d7edaef32a838fe4d7ccfa31c02546ffb77e46 Mon Sep 17 00:00:00 2001 From: Tomasz Misiukiewicz Date: Fri, 4 Oct 2024 09:02:35 +0200 Subject: [PATCH 1/2] run fullstory only in production --- android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index ae7625810a14..833629f3f943 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -13,7 +13,7 @@ apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.grad /* Fullstory settings */ fullstory { org 'o-1WN56P-na1' - enabledVariants 'all' + enabledVariants 'production' logcatLevel 'debug' recordOnStart false } From 95f8e314f5c34f3f2287293106b5f0351933bd37 Mon Sep 17 00:00:00 2001 From: Tomasz Misiukiewicz Date: Thu, 10 Oct 2024 08:45:42 +0200 Subject: [PATCH 2/2] add comment about fullstory --- src/libs/Fullstory/index.native.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/Fullstory/index.native.ts b/src/libs/Fullstory/index.native.ts index 7974c35562ca..f560b286a79c 100644 --- a/src/libs/Fullstory/index.native.ts +++ b/src/libs/Fullstory/index.native.ts @@ -17,6 +17,8 @@ const FS = { init: () => { Environment.getEnvironment().then((envName: string) => { // We only want to start fullstory if the app is running in production + // Since we don't use it in other environments, it is also disabled in build.gradle to speed up Android build times + // See https://github.com/Expensify/App/pull/50206 for more information if (envName !== CONST.ENVIRONMENT.PRODUCTION) { return; }