From 2707748d5fde73b223d21a4c417de2bc98e3d7ac Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 10 Jan 2025 11:31:50 -0800 Subject: [PATCH] Introduce ViewManagerInterface (#48548) 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 Reviewed By: javache Differential Revision: D67957886 --- .../react-native/ReactAndroid/api/ReactAndroid.api | 3 +++ .../uimanager/ViewManagerWithGeneratedInterface.kt | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 8272fd93797214..d9539ba809ce87 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -5273,6 +5273,9 @@ public abstract interface class com/facebook/react/uimanager/ViewManagerResolver public abstract fun getViewManagerNames ()Ljava/util/Collection; } +public abstract interface class com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { +} + public final class com/facebook/react/uimanager/ViewProps { public static final field ACCESSIBILITY_ACTIONS Ljava/lang/String; public static final field ACCESSIBILITY_COLLECTION Ljava/lang/String; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt new file mode 100644 index 00000000000000..c6bd71173a7f6e --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt @@ -0,0 +1,11 @@ +/* + * 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 + +/** Marker interface to be extended by all code-generated ViewManagerInterface. */ +public interface ViewManagerWithGeneratedInterface {}