Skip to content

Commit 2560f7c

Browse files
generatedunixname267772532268223meta-codesync[bot]
authored andcommitted
Enable for targets in xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport (#59042)
Summary: Pull Request resolved: #59042 Reviewed By: hick209 Differential Revision: D124982684 fbshipit-source-id: 80a1e4c6484da149bdabd766e0aab60db47b5a9e
1 parent 0cca3a1 commit 2560f7c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ internal class CxxInspectorPackagerConnection(
234234
SoLoader.loadLibrary("react_devsupportjni")
235235
}
236236

237-
@VisibleForTesting internal const val MAX_QUEUE_SIZE = 16L * 1024 * 1024 // 16MiB
237+
@VisibleForTesting internal const val MAX_QUEUE_SIZE: Long = 16L * 1024 * 1024 // 16MiB
238238

239239
@JvmStatic
240240
private external fun initHybrid(

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import com.facebook.react.packagerconnection.RequestHandler
2323
* The first create() method is for the Old Architecture flow and is deprecated and should not be
2424
* used anymore. The second create() method is for the New Architecture/Bridgeless flow.
2525
*/
26-
internal class DefaultDevSupportManagerFactory : DevSupportManagerFactory {
26+
internal class DefaultDevSupportManagerFactory() : DevSupportManagerFactory {
2727

2828
@Deprecated(
2929
"Use the other create() method with useDevSupport parameter for New Architecture. This method will be removed in a future release.",

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ internal class FpsView(reactContext: ReactContext) : FrameLayout(reactContext) {
7474
}
7575

7676
/** Timer that runs every UPDATE_INTERVAL_MS ms and updates the currently displayed FPS. */
77-
private inner class FPSMonitorRunnable : Runnable {
77+
private inner class FPSMonitorRunnable() : Runnable {
7878
private var shouldStop = false
7979
private var totalFramesDropped = 0
8080
private var total4PlusFrameStutters = 0

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import java.io.File
3232
* A dummy implementation of [DevSupportManager] to be used in production mode where development
3333
* features aren't needed.
3434
*/
35-
public open class ReleaseDevSupportManager : DevSupportManager {
35+
public open class ReleaseDevSupportManager() : DevSupportManager {
3636

3737
private val defaultJSExceptionHandler: JSExceptionHandler = DefaultJSExceptionHandler()
3838

0 commit comments

Comments
 (0)