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:
Oleksandr Melnykov
2019-08-29 16:08:47 -07:00
committed by Facebook Github Bot
parent 15b2353382
commit 9d5d2549e3
4 changed files with 450 additions and 50 deletions
@@ -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_::