Skip to content

Commit 4509679

Browse files
cortinicofacebook-github-bot
authored andcommitted
Do not include Facebook license on users codegen'd code (#32840)
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
1 parent c8d823b commit 4509679

File tree

53 files changed

+1698
-1698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1698
-1698
lines changed

packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GenerateComponentDescriptorH-test.js.snap

+48-48
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ArrayPropsNativeComponen
44
Object {
55
"ComponentDescriptors.h": "
66
/**
7-
* Copyright (c) Meta Platforms, Inc. and affiliates.
7+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
88
*
9-
* This source code is licensed under the MIT license found in the
10-
* LICENSE file in the root directory of this source tree.
9+
* Do not edit this file as changes may cause incorrect behavior and will be lost
10+
* once the code is regenerated.
1111
*
1212
* @generated by codegen project: GenerateComponentDescriptorH.js
1313
*/
@@ -32,10 +32,10 @@ exports[`GenerateComponentDescriptorH can generate for 'BooleanPropNativeCompone
3232
Object {
3333
"ComponentDescriptors.h": "
3434
/**
35-
* Copyright (c) Meta Platforms, Inc. and affiliates.
35+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3636
*
37-
* This source code is licensed under the MIT license found in the
38-
* LICENSE file in the root directory of this source tree.
37+
* Do not edit this file as changes may cause incorrect behavior and will be lost
38+
* once the code is regenerated.
3939
*
4040
* @generated by codegen project: GenerateComponentDescriptorH.js
4141
*/
@@ -60,10 +60,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ColorPropNativeComponent
6060
Object {
6161
"ComponentDescriptors.h": "
6262
/**
63-
* Copyright (c) Meta Platforms, Inc. and affiliates.
63+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
6464
*
65-
* This source code is licensed under the MIT license found in the
66-
* LICENSE file in the root directory of this source tree.
65+
* Do not edit this file as changes may cause incorrect behavior and will be lost
66+
* once the code is regenerated.
6767
*
6868
* @generated by codegen project: GenerateComponentDescriptorH.js
6969
*/
@@ -88,10 +88,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EdgeInsetsPropNativeComp
8888
Object {
8989
"ComponentDescriptors.h": "
9090
/**
91-
* Copyright (c) Meta Platforms, Inc. and affiliates.
91+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
9292
*
93-
* This source code is licensed under the MIT license found in the
94-
* LICENSE file in the root directory of this source tree.
93+
* Do not edit this file as changes may cause incorrect behavior and will be lost
94+
* once the code is regenerated.
9595
*
9696
* @generated by codegen project: GenerateComponentDescriptorH.js
9797
*/
@@ -116,10 +116,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EnumPropNativeComponent.
116116
Object {
117117
"ComponentDescriptors.h": "
118118
/**
119-
* Copyright (c) Meta Platforms, Inc. and affiliates.
119+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
120120
*
121-
* This source code is licensed under the MIT license found in the
122-
* LICENSE file in the root directory of this source tree.
121+
* Do not edit this file as changes may cause incorrect behavior and will be lost
122+
* once the code is regenerated.
123123
*
124124
* @generated by codegen project: GenerateComponentDescriptorH.js
125125
*/
@@ -144,10 +144,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EventNestedObjectPropsNa
144144
Object {
145145
"ComponentDescriptors.h": "
146146
/**
147-
* Copyright (c) Meta Platforms, Inc. and affiliates.
147+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
148148
*
149-
* This source code is licensed under the MIT license found in the
150-
* LICENSE file in the root directory of this source tree.
149+
* Do not edit this file as changes may cause incorrect behavior and will be lost
150+
* once the code is regenerated.
151151
*
152152
* @generated by codegen project: GenerateComponentDescriptorH.js
153153
*/
@@ -172,10 +172,10 @@ exports[`GenerateComponentDescriptorH can generate for 'EventPropsNativeComponen
172172
Object {
173173
"ComponentDescriptors.h": "
174174
/**
175-
* Copyright (c) Meta Platforms, Inc. and affiliates.
175+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
176176
*
177-
* This source code is licensed under the MIT license found in the
178-
* LICENSE file in the root directory of this source tree.
177+
* Do not edit this file as changes may cause incorrect behavior and will be lost
178+
* once the code is regenerated.
179179
*
180180
* @generated by codegen project: GenerateComponentDescriptorH.js
181181
*/
@@ -200,10 +200,10 @@ exports[`GenerateComponentDescriptorH can generate for 'FloatPropsNativeComponen
200200
Object {
201201
"ComponentDescriptors.h": "
202202
/**
203-
* Copyright (c) Meta Platforms, Inc. and affiliates.
203+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
204204
*
205-
* This source code is licensed under the MIT license found in the
206-
* LICENSE file in the root directory of this source tree.
205+
* Do not edit this file as changes may cause incorrect behavior and will be lost
206+
* once the code is regenerated.
207207
*
208208
* @generated by codegen project: GenerateComponentDescriptorH.js
209209
*/
@@ -228,10 +228,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ImagePropNativeComponent
228228
Object {
229229
"ComponentDescriptors.h": "
230230
/**
231-
* Copyright (c) Meta Platforms, Inc. and affiliates.
231+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
232232
*
233-
* This source code is licensed under the MIT license found in the
234-
* LICENSE file in the root directory of this source tree.
233+
* Do not edit this file as changes may cause incorrect behavior and will be lost
234+
* once the code is regenerated.
235235
*
236236
* @generated by codegen project: GenerateComponentDescriptorH.js
237237
*/
@@ -256,10 +256,10 @@ exports[`GenerateComponentDescriptorH can generate for 'IntegerPropNativeCompone
256256
Object {
257257
"ComponentDescriptors.h": "
258258
/**
259-
* Copyright (c) Meta Platforms, Inc. and affiliates.
259+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
260260
*
261-
* This source code is licensed under the MIT license found in the
262-
* LICENSE file in the root directory of this source tree.
261+
* Do not edit this file as changes may cause incorrect behavior and will be lost
262+
* once the code is regenerated.
263263
*
264264
* @generated by codegen project: GenerateComponentDescriptorH.js
265265
*/
@@ -284,10 +284,10 @@ exports[`GenerateComponentDescriptorH can generate for 'InterfaceOnlyNativeCompo
284284
Object {
285285
"ComponentDescriptors.h": "
286286
/**
287-
* Copyright (c) Meta Platforms, Inc. and affiliates.
287+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
288288
*
289-
* This source code is licensed under the MIT license found in the
290-
* LICENSE file in the root directory of this source tree.
289+
* Do not edit this file as changes may cause incorrect behavior and will be lost
290+
* once the code is regenerated.
291291
*
292292
* @generated by codegen project: GenerateComponentDescriptorH.js
293293
*/
@@ -312,10 +312,10 @@ exports[`GenerateComponentDescriptorH can generate for 'MultiNativePropNativeCom
312312
Object {
313313
"ComponentDescriptors.h": "
314314
/**
315-
* Copyright (c) Meta Platforms, Inc. and affiliates.
315+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
316316
*
317-
* This source code is licensed under the MIT license found in the
318-
* LICENSE file in the root directory of this source tree.
317+
* Do not edit this file as changes may cause incorrect behavior and will be lost
318+
* once the code is regenerated.
319319
*
320320
* @generated by codegen project: GenerateComponentDescriptorH.js
321321
*/
@@ -340,10 +340,10 @@ exports[`GenerateComponentDescriptorH can generate for 'NoPropsNoEventsNativeCom
340340
Object {
341341
"ComponentDescriptors.h": "
342342
/**
343-
* Copyright (c) Meta Platforms, Inc. and affiliates.
343+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
344344
*
345-
* This source code is licensed under the MIT license found in the
346-
* LICENSE file in the root directory of this source tree.
345+
* Do not edit this file as changes may cause incorrect behavior and will be lost
346+
* once the code is regenerated.
347347
*
348348
* @generated by codegen project: GenerateComponentDescriptorH.js
349349
*/
@@ -368,10 +368,10 @@ exports[`GenerateComponentDescriptorH can generate for 'ObjectPropsNativeCompone
368368
Object {
369369
"ComponentDescriptors.h": "
370370
/**
371-
* Copyright (c) Meta Platforms, Inc. and affiliates.
371+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
372372
*
373-
* This source code is licensed under the MIT license found in the
374-
* LICENSE file in the root directory of this source tree.
373+
* Do not edit this file as changes may cause incorrect behavior and will be lost
374+
* once the code is regenerated.
375375
*
376376
* @generated by codegen project: GenerateComponentDescriptorH.js
377377
*/
@@ -396,10 +396,10 @@ exports[`GenerateComponentDescriptorH can generate for 'PointPropNativeComponent
396396
Object {
397397
"ComponentDescriptors.h": "
398398
/**
399-
* Copyright (c) Meta Platforms, Inc. and affiliates.
399+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
400400
*
401-
* This source code is licensed under the MIT license found in the
402-
* LICENSE file in the root directory of this source tree.
401+
* Do not edit this file as changes may cause incorrect behavior and will be lost
402+
* once the code is regenerated.
403403
*
404404
* @generated by codegen project: GenerateComponentDescriptorH.js
405405
*/
@@ -424,10 +424,10 @@ exports[`GenerateComponentDescriptorH can generate for 'StringPropNativeComponen
424424
Object {
425425
"ComponentDescriptors.h": "
426426
/**
427-
* Copyright (c) Meta Platforms, Inc. and affiliates.
427+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
428428
*
429-
* This source code is licensed under the MIT license found in the
430-
* LICENSE file in the root directory of this source tree.
429+
* Do not edit this file as changes may cause incorrect behavior and will be lost
430+
* once the code is regenerated.
431431
*
432432
* @generated by codegen project: GenerateComponentDescriptorH.js
433433
*/

0 commit comments

Comments
 (0)