diff --git a/android/app/build.gradle b/android/app/build.gradle index d87c8d487391..50e4573cd113 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 } 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; }