From 9d5d2549e31dd96df6f3aae0c3f45849e3281157 Mon Sep 17 00:00:00 2001 From: Oleksandr Melnykov Date: Thu, 29 Aug 2019 16:07:04 -0700 Subject: [PATCH] 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 --- .../components/GeneratePropsJavaDelegate.js | 10 +- .../components/GeneratePropsJavaInterface.js | 10 +- .../GeneratePropsJavaDelegate-test.js.snap | 240 ++++++++++++++++-- .../GeneratePropsJavaInterface-test.js.snap | 240 ++++++++++++++++-- 4 files changed, 450 insertions(+), 50 deletions(-) diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js index 9a902d0aa02..f2029611639 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaDelegate.js @@ -21,7 +21,15 @@ const {getImports, toSafeJavaString} = require('./JavaHelpers'); // File path -> contents type FilesOutput = Map; -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_:: diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js index 64360d7dc85..d8e63634a16 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js @@ -21,7 +21,15 @@ const {getImports, toSafeJavaString} = require('./JavaHelpers'); // File path -> contents type FilesOutput = Map; -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_:: diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap index 1e552102885..2dc6baa450c 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaDelegate-test.js.snap @@ -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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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 " + "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; diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap index 80b37f18fc2..18938d1855a 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap @@ -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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 " + "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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 { 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 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;