Remove unused viewmanagers
Summary: Removes unused viewmanagers' *Delegate and *Interface classes. Changelog: [Internal] Reviewed By: mgoovaer Differential Revision: D31242317 fbshipit-source-id: f1c8b04707289182ac9548d8cf688ae736bfbe1d
This commit is contained in:
Родитель
652cb541a5
Коммит
3db4046f64
|
@ -1,57 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import com.facebook.react.bridge.ReadableArray;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerInterface;
|
|
||||||
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
||||||
|
|
||||||
public class AndroidViewPagerManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & AndroidViewPagerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
||||||
public AndroidViewPagerManagerDelegate(U viewManager) {
|
|
||||||
super(viewManager);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
||||||
switch (propName) {
|
|
||||||
case "initialPage":
|
|
||||||
mViewManager.setInitialPage(view, value == null ? 0 : ((Double) value).intValue());
|
|
||||||
break;
|
|
||||||
case "pageMargin":
|
|
||||||
mViewManager.setPageMargin(view, value == null ? 0 : ((Double) value).intValue());
|
|
||||||
break;
|
|
||||||
case "peekEnabled":
|
|
||||||
mViewManager.setPeekEnabled(view, value == null ? false : (boolean) value);
|
|
||||||
break;
|
|
||||||
case "keyboardDismissMode":
|
|
||||||
mViewManager.setKeyboardDismissMode(view, (String) value);
|
|
||||||
break;
|
|
||||||
case "scrollEnabled":
|
|
||||||
mViewManager.setScrollEnabled(view, value == null ? true : (boolean) value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
super.setProperty(view, propName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void receiveCommand(T view, String commandName, ReadableArray args) {
|
|
||||||
switch (commandName) {
|
|
||||||
case "setPage":
|
|
||||||
mViewManager.setPage(view, args.getInt(0));
|
|
||||||
break;
|
|
||||||
case "setPageWithoutAnimation":
|
|
||||||
mViewManager.setPageWithoutAnimation(view, args.getInt(0));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,23 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public interface AndroidViewPagerManagerInterface<T extends View> {
|
|
||||||
void setInitialPage(T view, int value);
|
|
||||||
void setPageMargin(T view, int value);
|
|
||||||
void setPeekEnabled(T view, boolean value);
|
|
||||||
void setKeyboardDismissMode(T view, @Nullable String value);
|
|
||||||
void setScrollEnabled(T view, boolean value);
|
|
||||||
void setPage(T view, int page);
|
|
||||||
void setPageWithoutAnimation(T view, int page);
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")
|
|
||||||
|
|
||||||
rn_android_library(
|
|
||||||
name = "viewmanagers",
|
|
||||||
srcs = glob(["*.java"]),
|
|
||||||
autoglob = False,
|
|
||||||
is_androidx = True,
|
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
||||||
provided_deps = [
|
|
||||||
react_native_dep("third-party/android/androidx:annotation"),
|
|
||||||
],
|
|
||||||
visibility = [
|
|
||||||
"PUBLIC",
|
|
||||||
],
|
|
||||||
deps = [
|
|
||||||
react_native_target("java/com/facebook/react/bridge:bridge"),
|
|
||||||
react_native_target("java/com/facebook/react/uimanager:uimanager"),
|
|
||||||
],
|
|
||||||
)
|
|
|
@ -1,62 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import com.facebook.react.bridge.ReadableArray;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerInterface;
|
|
||||||
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
||||||
|
|
||||||
public class DatePickerManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & DatePickerManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
||||||
public DatePickerManagerDelegate(U viewManager) {
|
|
||||||
super(viewManager);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
||||||
switch (propName) {
|
|
||||||
case "date":
|
|
||||||
mViewManager.setDate(view, value == null ? 0f : ((Double) value).floatValue());
|
|
||||||
break;
|
|
||||||
case "initialDate":
|
|
||||||
mViewManager.setInitialDate(view, value == null ? 0f : ((Double) value).floatValue());
|
|
||||||
break;
|
|
||||||
case "locale":
|
|
||||||
mViewManager.setLocale(view, value == null ? null : (String) value);
|
|
||||||
break;
|
|
||||||
case "maximumDate":
|
|
||||||
mViewManager.setMaximumDate(view, value == null ? 0f : ((Double) value).floatValue());
|
|
||||||
break;
|
|
||||||
case "minimumDate":
|
|
||||||
mViewManager.setMinimumDate(view, value == null ? 0f : ((Double) value).floatValue());
|
|
||||||
break;
|
|
||||||
case "minuteInterval":
|
|
||||||
mViewManager.setMinuteInterval(view, value == null ? 1 : ((Double) value).intValue());
|
|
||||||
break;
|
|
||||||
case "mode":
|
|
||||||
mViewManager.setMode(view, (String) value);
|
|
||||||
break;
|
|
||||||
case "timeZoneOffsetInMinutes":
|
|
||||||
mViewManager.setTimeZoneOffsetInMinutes(view, value == null ? 0f : ((Double) value).floatValue());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
super.setProperty(view, propName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void receiveCommand(DatePickerManagerInterface<T> viewManager, T view, String commandName, ReadableArray args) {
|
|
||||||
switch (commandName) {
|
|
||||||
case "setNativeDate":
|
|
||||||
viewManager.setNativeDate(view, (float) args.getDouble(0));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,25 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public interface DatePickerManagerInterface<T extends View> {
|
|
||||||
void setDate(T view, float value);
|
|
||||||
void setInitialDate(T view, float value);
|
|
||||||
void setLocale(T view, @Nullable String value);
|
|
||||||
void setMaximumDate(T view, float value);
|
|
||||||
void setMinimumDate(T view, float value);
|
|
||||||
void setMinuteInterval(T view, @Nullable Integer value);
|
|
||||||
void setMode(T view, @Nullable String value);
|
|
||||||
void setTimeZoneOffsetInMinutes(T view, float value);
|
|
||||||
void setNativeDate(T view, float date);
|
|
||||||
}
|
|
|
@ -1,33 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import com.facebook.react.bridge.ColorPropConverter;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerInterface;
|
|
||||||
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
||||||
|
|
||||||
public class InputAccessoryViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & InputAccessoryViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
||||||
public InputAccessoryViewManagerDelegate(U viewManager) {
|
|
||||||
super(viewManager);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
||||||
switch (propName) {
|
|
||||||
case "backgroundColor":
|
|
||||||
mViewManager.setBackgroundColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
super.setProperty(view, propName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public interface InputAccessoryViewManagerInterface<T extends View> {
|
|
||||||
void setBackgroundColor(T view, @Nullable Integer value);
|
|
||||||
}
|
|
|
@ -1,51 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import com.facebook.react.bridge.ColorPropConverter;
|
|
||||||
import com.facebook.react.bridge.ReadableArray;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerInterface;
|
|
||||||
import com.facebook.react.uimanager.LayoutShadowNode;
|
|
||||||
|
|
||||||
public class PullToRefreshViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & PullToRefreshViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
||||||
public PullToRefreshViewManagerDelegate(U viewManager) {
|
|
||||||
super(viewManager);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
||||||
switch (propName) {
|
|
||||||
case "tintColor":
|
|
||||||
mViewManager.setTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "titleColor":
|
|
||||||
mViewManager.setTitleColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "title":
|
|
||||||
mViewManager.setTitle(view, value == null ? null : (String) value);
|
|
||||||
break;
|
|
||||||
case "refreshing":
|
|
||||||
mViewManager.setRefreshing(view, value == null ? false : (boolean) value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
super.setProperty(view, propName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void receiveCommand(PullToRefreshViewManagerInterface<T> viewManager, T view, String commandName, ReadableArray args) {
|
|
||||||
switch (commandName) {
|
|
||||||
case "setNativeRefreshing":
|
|
||||||
viewManager.setNativeRefreshing(view, args.getBoolean(0));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public interface PullToRefreshViewManagerInterface<T extends View> {
|
|
||||||
void setTintColor(T view, @Nullable Integer value);
|
|
||||||
void setTitleColor(T view, @Nullable Integer value);
|
|
||||||
void setTitle(T view, @Nullable String value);
|
|
||||||
void setRefreshing(T view, boolean value);
|
|
||||||
void setNativeRefreshing(T view, boolean refreshing);
|
|
||||||
}
|
|
|
@ -1,63 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaDelegate.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
import com.facebook.react.bridge.ColorPropConverter;
|
|
||||||
import com.facebook.react.bridge.ReadableArray;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerDelegate;
|
|
||||||
import com.facebook.react.uimanager.BaseViewManagerInterface;
|
|
||||||
|
|
||||||
public class SwitchManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & SwitchManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
|
|
||||||
public SwitchManagerDelegate(U viewManager) {
|
|
||||||
super(viewManager);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void setProperty(T view, String propName, @Nullable Object value) {
|
|
||||||
switch (propName) {
|
|
||||||
case "disabled":
|
|
||||||
mViewManager.setDisabled(view, value == null ? false : (boolean) value);
|
|
||||||
break;
|
|
||||||
case "value":
|
|
||||||
mViewManager.setValue(view, value == null ? false : (boolean) value);
|
|
||||||
break;
|
|
||||||
case "tintColor":
|
|
||||||
mViewManager.setTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "onTintColor":
|
|
||||||
mViewManager.setOnTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "thumbTintColor":
|
|
||||||
mViewManager.setThumbTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "thumbColor":
|
|
||||||
mViewManager.setThumbColor(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "trackColorForFalse":
|
|
||||||
mViewManager.setTrackColorForFalse(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
case "trackColorForTrue":
|
|
||||||
mViewManager.setTrackColorForTrue(view, ColorPropConverter.getColor(value, view.getContext()));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
super.setProperty(view, propName, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void receiveCommand(T view, String commandName, ReadableArray args) {
|
|
||||||
switch (commandName) {
|
|
||||||
case "setValue":
|
|
||||||
mViewManager.setValue(view, args.getBoolean(0));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,24 +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.
|
|
||||||
*
|
|
||||||
* @generated by codegen project: GeneratePropsJavaInterface.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
package com.facebook.react.viewmanagers;
|
|
||||||
|
|
||||||
import android.view.View;
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public interface SwitchManagerInterface<T extends View> {
|
|
||||||
void setDisabled(T view, boolean value);
|
|
||||||
void setValue(T view, boolean value);
|
|
||||||
void setTintColor(T view, @Nullable Integer value);
|
|
||||||
void setOnTintColor(T view, @Nullable Integer value);
|
|
||||||
void setThumbTintColor(T view, @Nullable Integer value);
|
|
||||||
void setThumbColor(T view, @Nullable Integer value);
|
|
||||||
void setTrackColorForFalse(T view, @Nullable Integer value);
|
|
||||||
void setTrackColorForTrue(T view, @Nullable Integer value);
|
|
||||||
}
|
|
Загрузка…
Ссылка в новой задаче