Deprecate DeveloperSettings.isStartSamplingProfilerOnInit (#45442)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/45442

This deprecates also `DeveloperSettings.isStartSamplingProfilerOnInit`
so we can remove it in a future version of React Native.

This field is unused so you should not be using it at all.

Changelog:
[Android] [Changed] - Deprecate DeveloperSettings.isStartSamplingProfilerOnInit

Reviewed By: blakef

Differential Revision: D59757500

fbshipit-source-id: dc879ba46f2f937e5f259a4101646c2f060db548
This commit is contained in:
Nicola Corti
2024-07-15 12:16:33 -07:00
committed by Facebook GitHub Bot
parent 8f27188037
commit 52237838dc
2 changed files with 4 additions and 1 deletions
@@ -81,7 +81,8 @@ internal class DevInternalSettings(applicationContext: Context, private val list
preferences.edit().putBoolean(PREFS_REMOTE_JS_DEBUG_KEY, value).apply()
}
@Deprecated("Legacy sampling profiler is no longer supported")
@Deprecated(
"Legacy sampling profiler is no longer supported - This field will be removed in React Native 0.77")
override var isStartSamplingProfilerOnInit: Boolean = false
// Not supported.
@@ -36,6 +36,8 @@ public interface DeveloperSettings {
public var isRemoteJSDebugEnabled: Boolean
/** Whether Start Sampling Profiler on App Start is enabled. */
@Deprecated(
"Legacy sampling profiler is no longer supported - This field will be removed in React Native 0.77")
public var isStartSamplingProfilerOnInit: Boolean
/** Whether HMR is enabled. */