Add copyright header and @generated annotation to Android view manager interfaces and delegates

Summary: This diff adds a missing copyright header and the `generated` annotation to the Java files generated by the JS codegen. Since we are going to check in the generated classes for the OSS components, we need to make sure the Lint formatter doesn't complain about formatting issues in those files.

Reviewed By: fkgozali

Differential Revision: D17101946

fbshipit-source-id: 1361a294b8c1538c0ea346b43ef623e843d7038d
This commit is contained in:
Oleksandr Melnykov 2019-08-29 16:07:04 -07:00 коммит произвёл Facebook Github Bot
Родитель 15b2353382
Коммит 9d5d2549e3
4 изменённых файлов: 450 добавлений и 50 удалений

Просмотреть файл

@ -21,7 +21,15 @@ const {getImports, toSafeJavaString} = require('./JavaHelpers');
// File path -> contents
type FilesOutput = Map<string, string>;
const template = `
const template = `/**
* 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;
::_IMPORTS_::

Просмотреть файл

@ -21,7 +21,15 @@ const {getImports, toSafeJavaString} = require('./JavaHelpers');
// File path -> contents
type FilesOutput = Map<string, string>;
const template = `
const template = `/**
* 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;
::_IMPORTS_::

Просмотреть файл

@ -2,7 +2,15 @@
exports[`GeneratePropsJavaDelegate can generate fixture ARRAY_PROPS 1`] = `
Map {
"ArrayPropsNativeComponentManagerDelegate.java" => "
"ArrayPropsNativeComponentManagerDelegate.java" => "/**
* 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;
@ -60,7 +68,15 @@ public class ArrayPropsNativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] = `
Map {
"ArrayPropsNativeComponentManagerDelegate.java" => "
"ArrayPropsNativeComponentManagerDelegate.java" => "/**
* 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;
@ -91,7 +107,15 @@ public class ArrayPropsNativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture BOOLEAN_PROP 1`] = `
Map {
"BooleanPropNativeComponentManagerDelegate.java" => "
"BooleanPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -121,7 +145,15 @@ public class BooleanPropNativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture COLOR_PROP 1`] = `
Map {
"ColorPropNativeComponentManagerDelegate.java" => "
"ColorPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -151,7 +183,15 @@ public class ColorPropNativeComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture COMMANDS 1`] = `
Map {
"CommandNativeComponentManagerDelegate.java" => "
"CommandNativeComponentManagerDelegate.java" => "/**
* 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;
@ -187,7 +227,15 @@ public class CommandNativeComponentManagerDelegate<T extends View, U extends Bas
exports[`GeneratePropsJavaDelegate can generate fixture COMMANDS_AND_PROPS 1`] = `
Map {
"CommandNativeComponentManagerDelegate.java" => "
"CommandNativeComponentManagerDelegate.java" => "/**
* 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;
@ -226,7 +274,15 @@ public class CommandNativeComponentManagerDelegate<T extends View, U extends Bas
exports[`GeneratePropsJavaDelegate can generate fixture DOUBLE_PROPS 1`] = `
Map {
"DoublePropNativeComponentManagerDelegate.java" => "
"DoublePropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -271,7 +327,15 @@ public class DoublePropNativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture ENUM_PROP 1`] = `
Map {
"EnumPropsNativeComponentManagerDelegate.java" => "
"EnumPropsNativeComponentManagerDelegate.java" => "/**
* 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;
@ -301,7 +365,15 @@ public class EnumPropsNativeComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = `
Map {
"EventsNestedObjectNativeComponentManagerDelegate.java" => "
"EventsNestedObjectNativeComponentManagerDelegate.java" => "/**
* 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;
@ -331,7 +403,15 @@ public class EventsNestedObjectNativeComponentManagerDelegate<T extends View, U
exports[`GeneratePropsJavaDelegate can generate fixture EVENT_PROPS 1`] = `
Map {
"EventsNativeComponentManagerDelegate.java" => "
"EventsNativeComponentManagerDelegate.java" => "/**
* 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;
@ -361,7 +441,15 @@ public class EventsNativeComponentManagerDelegate<T extends View, U extends Base
exports[`GeneratePropsJavaDelegate can generate fixture EVENTS_WITH_PAPER_NAME 1`] = `
Map {
"InterfaceOnlyComponentManagerDelegate.java" => "
"InterfaceOnlyComponentManagerDelegate.java" => "/**
* 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;
@ -385,7 +473,15 @@ public class InterfaceOnlyComponentManagerDelegate<T extends View, U extends Bas
exports[`GeneratePropsJavaDelegate can generate fixture FLOAT_PROPS 1`] = `
Map {
"FloatPropNativeComponentManagerDelegate.java" => "
"FloatPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -430,7 +526,15 @@ public class FloatPropNativeComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture IMAGE_PROP 1`] = `
Map {
"ImagePropNativeComponentManagerDelegate.java" => "
"ImagePropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -461,7 +565,15 @@ public class ImagePropNativeComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture INTEGER_PROPS 1`] = `
Map {
"IntegerPropNativeComponentManagerDelegate.java" => "
"IntegerPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -497,7 +609,15 @@ public class IntegerPropNativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture INTERFACE_ONLY 1`] = `
Map {
"InterfaceOnlyComponentManagerDelegate.java" => "
"InterfaceOnlyComponentManagerDelegate.java" => "/**
* 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;
@ -527,7 +647,15 @@ public class InterfaceOnlyComponentManagerDelegate<T extends View, U extends Bas
exports[`GeneratePropsJavaDelegate can generate fixture MULTI_NATIVE_PROP 1`] = `
Map {
"ImageColorPropNativeComponentManagerDelegate.java" => "
"ImageColorPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -567,7 +695,15 @@ public class ImageColorPropNativeComponentManagerDelegate<T extends View, U exte
exports[`GeneratePropsJavaDelegate can generate fixture NO_PROPS_NO_EVENTS 1`] = `
Map {
"NoPropsNoEventsComponentManagerDelegate.java" => "
"NoPropsNoEventsComponentManagerDelegate.java" => "/**
* 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;
@ -591,7 +727,15 @@ public class NoPropsNoEventsComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture OBJECT_PROPS 1`] = `
Map {
"ObjectPropsManagerDelegate.java" => "
"ObjectPropsManagerDelegate.java" => "/**
* 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;
@ -622,7 +766,15 @@ public class ObjectPropsManagerDelegate<T extends View, U extends BaseViewManage
exports[`GeneratePropsJavaDelegate can generate fixture POINT_PROP 1`] = `
Map {
"PointPropNativeComponentManagerDelegate.java" => "
"PointPropNativeComponentManagerDelegate.java" => "/**
* 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;
@ -653,7 +805,15 @@ public class PointPropNativeComponentManagerDelegate<T extends View, U extends B
exports[`GeneratePropsJavaDelegate can generate fixture STRING_PROP 1`] = `
Map {
"StringPropComponentManagerDelegate.java" => "
"StringPropComponentManagerDelegate.java" => "/**
* 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;
@ -686,7 +846,15 @@ public class StringPropComponentManagerDelegate<T extends View, U extends BaseVi
exports[`GeneratePropsJavaDelegate can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] = `
Map {
"MultiFile1NativeComponentManagerDelegate.java" => "
"MultiFile1NativeComponentManagerDelegate.java" => "/**
* 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;
@ -711,7 +879,15 @@ public class MultiFile1NativeComponentManagerDelegate<T extends View, U extends
}
}
",
"MultiFile2NativeComponentManagerDelegate.java" => "
"MultiFile2NativeComponentManagerDelegate.java" => "/**
* 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;
@ -741,7 +917,15 @@ public class MultiFile2NativeComponentManagerDelegate<T extends View, U extends
exports[`GeneratePropsJavaDelegate can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = `
Map {
"MultiComponent1NativeComponentManagerDelegate.java" => "
"MultiComponent1NativeComponentManagerDelegate.java" => "/**
* 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;
@ -766,7 +950,15 @@ public class MultiComponent1NativeComponentManagerDelegate<T extends View, U ext
}
}
",
"MultiComponent2NativeComponentManagerDelegate.java" => "
"MultiComponent2NativeComponentManagerDelegate.java" => "/**
* 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;

Просмотреть файл

@ -2,7 +2,15 @@
exports[`GeneratePropsJavaInterface can generate fixture ARRAY_PROPS 1`] = `
Map {
"ArrayPropsNativeComponentManagerInterface.java" => "
"ArrayPropsNativeComponentManagerInterface.java" => "/**
* 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;
@ -27,7 +35,15 @@ public interface ArrayPropsNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture ARRAY_PROPS_WITH_NESTED_OBJECT 1`] = `
Map {
"ArrayPropsNativeComponentManagerInterface.java" => "
"ArrayPropsNativeComponentManagerInterface.java" => "/**
* 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;
@ -43,7 +59,15 @@ public interface ArrayPropsNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture BOOLEAN_PROP 1`] = `
Map {
"BooleanPropNativeComponentManagerInterface.java" => "
"BooleanPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -57,7 +81,15 @@ public interface BooleanPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture COLOR_PROP 1`] = `
Map {
"ColorPropNativeComponentManagerInterface.java" => "
"ColorPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -72,7 +104,15 @@ public interface ColorPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture COMMANDS 1`] = `
Map {
"CommandNativeComponentManagerInterface.java" => "
"CommandNativeComponentManagerInterface.java" => "/**
* 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;
@ -88,7 +128,15 @@ public interface CommandNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture COMMANDS_AND_PROPS 1`] = `
Map {
"CommandNativeComponentManagerInterface.java" => "
"CommandNativeComponentManagerInterface.java" => "/**
* 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;
@ -104,7 +152,15 @@ public interface CommandNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture DOUBLE_PROPS 1`] = `
Map {
"DoublePropNativeComponentManagerInterface.java" => "
"DoublePropNativeComponentManagerInterface.java" => "/**
* 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;
@ -123,7 +179,15 @@ public interface DoublePropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture ENUM_PROP 1`] = `
Map {
"EnumPropsNativeComponentManagerInterface.java" => "
"EnumPropsNativeComponentManagerInterface.java" => "/**
* 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;
@ -138,7 +202,15 @@ public interface EnumPropsNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture EVENT_NESTED_OBJECT_PROPS 1`] = `
Map {
"EventsNestedObjectNativeComponentManagerInterface.java" => "
"EventsNestedObjectNativeComponentManagerInterface.java" => "/**
* 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;
@ -152,7 +224,15 @@ public interface EventsNestedObjectNativeComponentManagerInterface<T extends Vie
exports[`GeneratePropsJavaInterface can generate fixture EVENT_PROPS 1`] = `
Map {
"EventsNativeComponentManagerInterface.java" => "
"EventsNativeComponentManagerInterface.java" => "/**
* 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;
@ -166,7 +246,15 @@ public interface EventsNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture EVENTS_WITH_PAPER_NAME 1`] = `
Map {
"InterfaceOnlyComponentManagerInterface.java" => "
"InterfaceOnlyComponentManagerInterface.java" => "/**
* 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;
@ -180,7 +268,15 @@ public interface InterfaceOnlyComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture FLOAT_PROPS 1`] = `
Map {
"FloatPropNativeComponentManagerInterface.java" => "
"FloatPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -199,7 +295,15 @@ public interface FloatPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture IMAGE_PROP 1`] = `
Map {
"ImagePropNativeComponentManagerInterface.java" => "
"ImagePropNativeComponentManagerInterface.java" => "/**
* 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;
@ -215,7 +319,15 @@ public interface ImagePropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture INTEGER_PROPS 1`] = `
Map {
"IntegerPropNativeComponentManagerInterface.java" => "
"IntegerPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -231,7 +343,15 @@ public interface IntegerPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture INTERFACE_ONLY 1`] = `
Map {
"InterfaceOnlyComponentManagerInterface.java" => "
"InterfaceOnlyComponentManagerInterface.java" => "/**
* 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;
@ -246,7 +366,15 @@ public interface InterfaceOnlyComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture MULTI_NATIVE_PROP 1`] = `
Map {
"ImageColorPropNativeComponentManagerInterface.java" => "
"ImageColorPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -265,7 +393,15 @@ public interface ImageColorPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture NO_PROPS_NO_EVENTS 1`] = `
Map {
"NoPropsNoEventsComponentManagerInterface.java" => "
"NoPropsNoEventsComponentManagerInterface.java" => "/**
* 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;
@ -279,7 +415,15 @@ public interface NoPropsNoEventsComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture OBJECT_PROPS 1`] = `
Map {
"ObjectPropsManagerInterface.java" => "
"ObjectPropsManagerInterface.java" => "/**
* 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;
@ -295,7 +439,15 @@ public interface ObjectPropsManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture POINT_PROP 1`] = `
Map {
"PointPropNativeComponentManagerInterface.java" => "
"PointPropNativeComponentManagerInterface.java" => "/**
* 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;
@ -311,7 +463,15 @@ public interface PointPropNativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture STRING_PROP 1`] = `
Map {
"StringPropComponentManagerInterface.java" => "
"StringPropComponentManagerInterface.java" => "/**
* 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;
@ -327,7 +487,15 @@ public interface StringPropComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture TWO_COMPONENTS_DIFFERENT_FILES 1`] = `
Map {
"MultiFile1NativeComponentManagerInterface.java" => "
"MultiFile1NativeComponentManagerInterface.java" => "/**
* 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;
@ -336,7 +504,15 @@ public interface MultiFile1NativeComponentManagerInterface<T extends View> {
void setDisabled(T view, boolean value);
}
",
"MultiFile2NativeComponentManagerInterface.java" => "
"MultiFile2NativeComponentManagerInterface.java" => "/**
* 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;
@ -350,7 +526,15 @@ public interface MultiFile2NativeComponentManagerInterface<T extends View> {
exports[`GeneratePropsJavaInterface can generate fixture TWO_COMPONENTS_SAME_FILE 1`] = `
Map {
"MultiComponent1NativeComponentManagerInterface.java" => "
"MultiComponent1NativeComponentManagerInterface.java" => "/**
* 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;
@ -359,7 +543,15 @@ public interface MultiComponent1NativeComponentManagerInterface<T extends View>
void setDisabled(T view, boolean value);
}
",
"MultiComponent2NativeComponentManagerInterface.java" => "
"MultiComponent2NativeComponentManagerInterface.java" => "/**
* 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;