mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
15b2353382
commit
9d5d2549e3
+9
-1
@@ -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_::
|
||||
|
||||
Reference in New Issue
Block a user