Android: introduced uimanager/interfaces target for base symbols used by codegen output

Summary:
Some of the existing files under uimanager/ are self contained and used by the component codegen output. This commit split out those files into a dedicated uimanager/interfaces/ dir/target so that more targets can depend on it without causing dep cycle.

Also, the component codegen output doesn't need LayoutShadowNode at all, so this removed the import.

This will allow us to combine the Java codegen output for TM spec and Fabric components, simplifying build and dependency management (not in this commit yet).

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D25451409

fbshipit-source-id: 827545a3d78ebed1815cf9e52da2fa896b012aa1
This commit is contained in:
Kevin Gozali authored and Facebook GitHub Bot committed 2020-12-10 00:06:21 -08:00
1 parent 8dddaa85f0
commit 072896e3b7
24 files changed
+22 -44

No files matched your search

@@ -1,71 +0,0 @@
/*
* Copyright (c) Facebook, Inc. and its 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;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
/**
* This is an interface that should be implemented by view managers supporting the base view
* properties such as backgroundColor, opacity, etc.
*/
public interface BaseViewManagerInterface<T extends View> {
void setAccessibilityActions(T view, @Nullable ReadableArray accessibilityActions);
void setAccessibilityHint(T view, @Nullable String accessibilityHint);
void setAccessibilityLabel(T view, @Nullable String accessibilityLabel);
void setAccessibilityLiveRegion(T view, @Nullable String liveRegion);
void setAccessibilityRole(T view, @Nullable String accessibilityRole);
void setViewState(T view, @Nullable ReadableMap accessibilityState);
void setBackgroundColor(T view, int backgroundColor);
void setBorderRadius(T view, float borderRadius);
void setBorderBottomLeftRadius(T view, float borderRadius);
void setBorderBottomRightRadius(T view, float borderRadius);
void setBorderTopLeftRadius(T view, float borderRadius);
void setBorderTopRightRadius(T view, float borderRadius);
void setElevation(T view, float elevation);
void setShadowColor(T view, int shadowColor);
void setImportantForAccessibility(T view, @Nullable String importantForAccessibility);
void setNativeId(T view, @Nullable String nativeId);
void setOpacity(T view, float opacity);
void setRenderToHardwareTexture(T view, boolean useHWTexture);
void setRotation(T view, float rotation);
void setScaleX(T view, float scaleX);
void setScaleY(T view, float scaleY);
void setTestId(T view, String testId);
void setTransform(T view, @Nullable ReadableArray matrix);
void setTranslateX(T view, float translateX);
void setTranslateY(T view, float translateY);
void setZIndex(T view, float zIndex);
}