Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not include Facebook license on users codegen'd code #31516

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type FilesOutput = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* This code was generated by a tool.
* 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.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
Comment on lines +22 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
* 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
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ RCT_EXTERN inline void RCT::_COMPONENT_NAME_::HandleCommand(

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateComponentHObjCpp.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type ComponentCollection = $ReadOnly<{

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateEventEmitterCpp.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ type ComponentCollection = $ReadOnly<{

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateEventEmitterH.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ type FilesOutput = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GeneratePropsCpp.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ type StructsMap = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GeneratePropsH.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const {
type FilesOutput = Map<string, string>;

const template = `/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GeneratePropsJavaDelegate.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const {
type FilesOutput = Map<string, string>;

const template = `/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GeneratePropsJavaInterface.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type FilesOutput = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateShadowNodeCpp.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type FilesOutput = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateShadowNodeH.js
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ type TestCase = $ReadOnly<{

const fileTemplate = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* ${'@'}generated by codegen project: GenerateTests.js
* */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ type FilesOutput = Map<string, string>;

const template = `
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* This code was generated by a tool.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*
* @flow
*
Expand Down
Loading