mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c02b997d8 | ||
|
|
8c50bf0beb | ||
|
|
287e200332 |
@@ -3303,17 +3303,6 @@ public final class com/facebook/react/modules/deviceinfo/DeviceInfoModule : com/
|
||||
public fun onHostResume ()V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/modules/devloading/DevLoadingModule : com/facebook/fbreact/specs/NativeDevLoadingViewSpec {
|
||||
public static final field Companion Lcom/facebook/react/modules/devloading/DevLoadingModule$Companion;
|
||||
public static final field NAME Ljava/lang/String;
|
||||
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
|
||||
public fun hide ()V
|
||||
public fun showMessage (Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Double;)V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/modules/devloading/DevLoadingModule$Companion {
|
||||
}
|
||||
|
||||
public class com/facebook/react/modules/dialog/AlertFragment : androidx/fragment/app/DialogFragment, android/content/DialogInterface$OnClickListener {
|
||||
public fun <init> ()V
|
||||
public fun <init> (Lcom/facebook/react/modules/dialog/DialogModule$AlertFragmentListener;Landroid/os/Bundle;)V
|
||||
@@ -5658,11 +5647,6 @@ public final class com/facebook/react/uimanager/common/ViewUtil {
|
||||
public static final fun isRootTag (I)Z
|
||||
}
|
||||
|
||||
public abstract interface class com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener {
|
||||
public abstract fun onViewHierarchyUpdateEnqueued ()V
|
||||
public abstract fun onViewHierarchyUpdateFinished ()V
|
||||
}
|
||||
|
||||
public abstract interface class com/facebook/react/uimanager/events/BatchEventDispatchedListener {
|
||||
public abstract fun onBatchEventDispatched ()V
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import com.facebook.react.module.annotations.ReactModule
|
||||
|
||||
/** [NativeModule] that allows JS to show dev loading view. */
|
||||
@ReactModule(name = NativeDevLoadingViewSpec.NAME)
|
||||
public class DevLoadingModule(reactContext: ReactApplicationContext) :
|
||||
internal class DevLoadingModule(reactContext: ReactApplicationContext) :
|
||||
NativeDevLoadingViewSpec(reactContext) {
|
||||
|
||||
private val jsExceptionHandler: JSExceptionHandler? = reactContext.jsExceptionHandler
|
||||
|
||||
+2
@@ -774,6 +774,8 @@ public class UIImplementation {
|
||||
mViewManagers.invalidate();
|
||||
}
|
||||
|
||||
// NOTE: When converted to Kotlin this method should be `internal` due to
|
||||
// visibility restriction for `NotThreadSafeViewHierarchyUpdateDebugListener`
|
||||
public void setViewHierarchyUpdateDebugListener(
|
||||
@Nullable NotThreadSafeViewHierarchyUpdateDebugListener listener) {
|
||||
mOperationsQueue.setViewHierarchyUpdateDebugListener(listener);
|
||||
|
||||
+2
@@ -687,6 +687,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
}
|
||||
}
|
||||
|
||||
// NOTE: When converted to Kotlin this method should be `internal` due to
|
||||
// visibility restriction for `NotThreadSafeViewHierarchyUpdateDebugListener`
|
||||
public void setViewHierarchyUpdateDebugListener(
|
||||
@Nullable NotThreadSafeViewHierarchyUpdateDebugListener listener) {
|
||||
mUIImplementation.setViewHierarchyUpdateDebugListener(listener);
|
||||
|
||||
+2
@@ -609,6 +609,8 @@ public class UIViewOperationQueue {
|
||||
return mNativeViewHierarchyManager;
|
||||
}
|
||||
|
||||
// NOTE: When converted to Kotlin this method should be `internal` due to
|
||||
// visibility restriction for `NotThreadSafeViewHierarchyUpdateDebugListener`
|
||||
public void setViewHierarchyUpdateDebugListener(
|
||||
@Nullable NotThreadSafeViewHierarchyUpdateDebugListener listener) {
|
||||
mViewHierarchyUpdateDebugListener = listener;
|
||||
|
||||
+7
-11
@@ -5,26 +5,22 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.uimanager.debug;
|
||||
package com.facebook.react.uimanager.debug
|
||||
|
||||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
|
||||
import com.facebook.react.uimanager.UIManagerModule;
|
||||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture
|
||||
|
||||
/**
|
||||
* A listener that is notified about view hierarchy update events. This listener should only be used
|
||||
* for debug purposes and should not affect application state.
|
||||
*
|
||||
* <p>NB: while onViewHierarchyUpdateFinished will always be called from the UI thread, there are no
|
||||
* NB: while [onViewHierarchyUpdateFinished] will always be called from the UI thread, there are no
|
||||
* guarantees what thread onViewHierarchyUpdateEnqueued is called on.
|
||||
*/
|
||||
@DeprecatedInNewArchitecture
|
||||
public interface NotThreadSafeViewHierarchyUpdateDebugListener {
|
||||
|
||||
/**
|
||||
* Called when {@link UIManagerModule} enqueues a UI batch to be dispatched to the main thread.
|
||||
*/
|
||||
void onViewHierarchyUpdateEnqueued();
|
||||
internal interface NotThreadSafeViewHierarchyUpdateDebugListener {
|
||||
/** Called when `UIManagerModule` enqueues a UI batch to be dispatched to the main thread. */
|
||||
fun onViewHierarchyUpdateEnqueued()
|
||||
|
||||
/** Called from the main thread after a UI batch has been applied to all root views. */
|
||||
void onViewHierarchyUpdateFinished();
|
||||
fun onViewHierarchyUpdateFinished()
|
||||
}
|
||||
@@ -258,7 +258,7 @@ std::u16string Runtime::utf16(const String& str) {
|
||||
return convertUTF8ToUTF16(utf8Str);
|
||||
}
|
||||
|
||||
Pointer& Pointer::operator=(Pointer&& other) {
|
||||
Pointer& Pointer::operator=(Pointer&& other) noexcept {
|
||||
if (ptr_) {
|
||||
ptr_->invalidate();
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ class JSI_EXPORT Runtime {
|
||||
// Base class for pointer-storing types.
|
||||
class JSI_EXPORT Pointer {
|
||||
protected:
|
||||
explicit Pointer(Pointer&& other) : ptr_(other.ptr_) {
|
||||
explicit Pointer(Pointer&& other) noexcept : ptr_(other.ptr_) {
|
||||
other.ptr_ = nullptr;
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ class JSI_EXPORT Pointer {
|
||||
}
|
||||
}
|
||||
|
||||
Pointer& operator=(Pointer&& other);
|
||||
Pointer& operator=(Pointer&& other) noexcept;
|
||||
|
||||
friend class Runtime;
|
||||
friend class Value;
|
||||
|
||||
Reference in New Issue
Block a user