Skip to content

Commit

Permalink
Merge pull request #50206 from TMisiukiewicz/perf/exclude-fullstory-f…
Browse files Browse the repository at this point in the history
…rom-dev-android

[No QA] perf: exclude Fullstory from Android development build
  • Loading branch information
Julesssss authored Oct 10, 2024
2 parents 175af25 + 95f8e31 commit ab5175c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Fullstory/index.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ab5175c

Please sign in to comment.