Skip to content

Commit ab5175c

Browse files
authored
Merge pull request #50206 from TMisiukiewicz/perf/exclude-fullstory-from-dev-android
[No QA] perf: exclude Fullstory from Android development build
2 parents 175af25 + 95f8e31 commit ab5175c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.grad
1313
/* Fullstory settings */
1414
fullstory {
1515
org 'o-1WN56P-na1'
16-
enabledVariants 'all'
16+
enabledVariants 'production'
1717
logcatLevel 'debug'
1818
recordOnStart false
1919
}

src/libs/Fullstory/index.native.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const FS = {
1717
init: () => {
1818
Environment.getEnvironment().then((envName: string) => {
1919
// We only want to start fullstory if the app is running in production
20+
// Since we don't use it in other environments, it is also disabled in build.gradle to speed up Android build times
21+
// See https://github.com/Expensify/App/pull/50206 for more information
2022
if (envName !== CONST.ENVIRONMENT.PRODUCTION) {
2123
return;
2224
}

0 commit comments

Comments
 (0)