From 9f7660f44f41f871b0156f30800b6c9263b74b7a Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 8 Jan 2025 16:56:05 -0800 Subject: [PATCH] Introduce ViewManagerInterface Summary: In this diff I'm introducing the new public API ViewManagerInterface, this will be used in the next diffs of the stack to be implemented by all viewManagerInterfaces that are code-gen when using the new architecture changelog: [Android][Changed] Introduce new public API ViewManagerInterface Differential Revision: D67957886 --- .../react-native/ReactAndroid/api/ReactAndroid.api | 3 +++ .../react/uimanager/ViewManagerInterface.kt | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerInterface.kt diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 489dae1d463d7f..e57f52a56f3435 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -5234,6 +5234,9 @@ public abstract interface class com/facebook/react/uimanager/ViewManagerDelegate public abstract fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } +public abstract interface class com/facebook/react/uimanager/ViewManagerInterface { +} + public class com/facebook/react/uimanager/ViewManagerPropertyUpdater { public fun ()V public static fun clear ()V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerInterface.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerInterface.kt new file mode 100644 index 00000000000000..091c240da2becb --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerInterface.kt @@ -0,0 +1,13 @@ +/* + * 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.uimanager + +import android.view.View + +/** Marker interface to be extended by all code-generated ViewManagerInterface. */ +public interface ViewManagerInterface {}