Migrate RuntimeScheduler & RuntimeExecutor to Kotlin (#49485)

Summary:
Converting to Kotlin two classes from `com.facebook.react.bridge`

## Changelog:

[INTERNAL] - Migrate RuntimeScheduler & RuntimeExecutor to Kotlin

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

Test Plan:
```bash
yarn test-android
yarn android
```

Reviewed By: sammy-SC

Differential Revision: D69775060

Pulled By: javache

fbshipit-source-id: 93f352be8b56876f99f86119e4c6a9636017a581
This commit is contained in:
Mateo Guzmán
2025-02-18 04:00:05 -08:00
committed by Facebook GitHub Bot
parent 71bd096136
commit 0c4855afae
5 changed files with 30 additions and 44 deletions
@@ -1487,11 +1487,11 @@ public final class com/facebook/react/bridge/RetryableMountingLayerException : j
public fun <init> (Ljava/lang/Throwable;)V
}
public class com/facebook/react/bridge/RuntimeExecutor {
public final class com/facebook/react/bridge/RuntimeExecutor {
public fun <init> (Lcom/facebook/jni/HybridData;)V
}
public class com/facebook/react/bridge/RuntimeScheduler {
public final class com/facebook/react/bridge/RuntimeScheduler {
public fun <init> (Lcom/facebook/jni/HybridData;)V
}
@@ -1,21 +0,0 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
/** A Java holder for a C++ RuntimeExecutor. */
public class RuntimeExecutor {
@DoNotStrip private HybridData mHybridData;
public RuntimeExecutor(HybridData hybridData) {
mHybridData = hybridData;
}
}
@@ -0,0 +1,14 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge
import com.facebook.jni.HybridData
import com.facebook.proguard.annotations.DoNotStrip
/** A Kotlin holder for a C++ RuntimeExecutor. */
public class RuntimeExecutor(@DoNotStrip private val mHybridData: HybridData)
@@ -1,21 +0,0 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
/** A Java holder for a C++ RuntimeScheduler. */
public class RuntimeScheduler {
@DoNotStrip private HybridData mHybridData;
public RuntimeScheduler(HybridData hybridData) {
mHybridData = hybridData;
}
}
@@ -0,0 +1,14 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridge
import com.facebook.jni.HybridData
import com.facebook.proguard.annotations.DoNotStrip
/** A Kotlin holder for a C++ RuntimeScheduler. */
public class RuntimeScheduler(@DoNotStrip private val mHybridData: HybridData)