mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
71bd096136
commit
0c4855afae
@@ -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
|
||||
}
|
||||
|
||||
|
||||
-21
@@ -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;
|
||||
}
|
||||
}
|
||||
+14
@@ -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)
|
||||
-21
@@ -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;
|
||||
}
|
||||
}
|
||||
+14
@@ -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)
|
||||
Reference in New Issue
Block a user