Skip to content

Commit d49c909

Browse files
Thomas Nardonefacebook-github-bot
authored andcommitted
Add ReactBuildConfig.ENABLE_PERFETTO (facebook#48981)
Summary: Add entry for this flag in ReactBuildConfig Changelog: [Internal] Reviewed By: cortinico Differential Revision: D68725330
1 parent c3ea606 commit d49c909

File tree

1 file changed

+6
-0
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/build

1 file changed

+6
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public object ReactBuildConfig {
2222

2323
@JvmField public val IS_INTERNAL_BUILD: Boolean = BuildConfig.IS_INTERNAL_BUILD
2424

25+
/**
26+
* [true] if Perfetto was enabled on this build (`WITH_PERFETTO=1`), indicating it is a profiling
27+
* build.
28+
*/
29+
@JvmField public val ENABLE_PERFETTO: Boolean = BuildConfig.ENABLE_PERFETTO
30+
2531
@JvmField public val EXOPACKAGE_FLAGS: Int = BuildConfig.EXOPACKAGE_FLAGS
2632

2733
/** [Experimental] Enable React Native DevTools in release builds. */

0 commit comments

Comments
 (0)