Skip to content

Commit

Permalink
Do not include Facebook license on users codegen'd code (#32840)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #32840

Closes #31516
I've cherry-picked the original PR that had merge conficts + updated all
the headers as the one for the TurboModule generators were not handled.

Original Commit Message from acoates

The codegen generates a Facebook copyright notice at the top of the generated files.

While this might make sense on the core files, this codegen will be run on external components too.
The notice also refers to a LICENSE file in the root of this project, which might not be there if this is run on another project.
I did a quick look at some of the codegen that we ship within windows dev tools, and it looks like we normally just have comments
saying the file was codegen'd and so the file shouldn't be manually edited.
Open to suggestions on what the comment header should say.

Changelog:
[General] [Changed] - Do not include Facebook license on users codegen'd code

Reviewed By: ShikaSD

Differential Revision: D33455176

fbshipit-source-id: b247e72efb242e79d99b388c80e4126633e5234d
  • Loading branch information
cortinico authored and facebook-github-bot committed Jan 19, 2022
1 parent c8d823b commit 4509679
Show file tree
Hide file tree
Showing 53 changed files with 1,698 additions and 1,698 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ArrayPropsNativeComponen
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -32,10 +32,10 @@ exports[`GenerateComponentDescriptorH can generate for 'BooleanPropNativeCompone
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -60,10 +60,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ColorPropNativeComponent
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -88,10 +88,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EdgeInsetsPropNativeComp
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -116,10 +116,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EnumPropNativeComponent.
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -144,10 +144,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EventNestedObjectPropsNa
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -172,10 +172,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EventPropsNativeComponen
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -200,10 +200,10 @@ exports[`GenerateComponentDescriptorH can generate for 'FloatPropsNativeComponen
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -228,10 +228,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ImagePropNativeComponent
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -256,10 +256,10 @@ exports[`GenerateComponentDescriptorH can generate for 'IntegerPropNativeCompone
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -284,10 +284,10 @@ exports[`GenerateComponentDescriptorH can generate for 'InterfaceOnlyNativeCompo
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -312,10 +312,10 @@ exports[`GenerateComponentDescriptorH can generate for 'MultiNativePropNativeCom
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -340,10 +340,10 @@ exports[`GenerateComponentDescriptorH can generate for 'NoPropsNoEventsNativeCom
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -368,10 +368,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ObjectPropsNativeCompone
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -396,10 +396,10 @@ exports[`GenerateComponentDescriptorH can generate for 'PointPropNativeComponent
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand All @@ -424,10 +424,10 @@ exports[`GenerateComponentDescriptorH can generate for 'StringPropNativeComponen
Object {
"ComponentDescriptors.h": "
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateComponentDescriptorH.js
*/
Expand Down
Loading

0 comments on commit 4509679

Please sign in to comment.