From e93bc9b6ec244b33f9b671f8e3d7b25dc11b0d03 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 22 May 2023 08:00:52 -0700 Subject: [PATCH] Do not add Meta's license header to template (#37513) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37513 After the monorepo migration, we started to add license headers to the template file. This needs to be reverted, I'm doing it here. Changelog: [Internal] [Changed] - Do not add Meta's license header to template Reviewed By: dmytrorykun Differential Revision: D46070682 fbshipit-source-id: ee071d90c92e32c57698b09298a2f5cf39d3f6d7 --- packages/react-native/template/android/app/build.gradle | 7 ------- .../src/debug/java/com/helloworld/ReactNativeFlipper.kt | 7 ------- .../app/src/main/java/com/helloworld/MainActivity.kt | 7 ------- .../app/src/main/java/com/helloworld/MainApplication.kt | 7 ------- .../src/release/java/com/helloworld/ReactNativeFlipper.kt | 7 ------- 5 files changed, 35 deletions(-) diff --git a/packages/react-native/template/android/app/build.gradle b/packages/react-native/template/android/app/build.gradle index eb8f4efa97a..b464d3616cd 100644 --- a/packages/react-native/template/android/app/build.gradle +++ b/packages/react-native/template/android/app/build.gradle @@ -1,10 +1,3 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - apply plugin: "com.android.application" apply plugin: "org.jetbrains.kotlin.android" apply plugin: "com.facebook.react" diff --git a/packages/react-native/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.kt b/packages/react-native/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.kt index 5cea7f83005..c628808885f 100644 --- a/packages/react-native/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.kt +++ b/packages/react-native/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.kt @@ -1,10 +1,3 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - package com.helloworld import android.content.Context diff --git a/packages/react-native/template/android/app/src/main/java/com/helloworld/MainActivity.kt b/packages/react-native/template/android/app/src/main/java/com/helloworld/MainActivity.kt index 07c47370090..d7a3dee1a87 100644 --- a/packages/react-native/template/android/app/src/main/java/com/helloworld/MainActivity.kt +++ b/packages/react-native/template/android/app/src/main/java/com/helloworld/MainActivity.kt @@ -1,10 +1,3 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - package com.helloworld import com.facebook.react.ReactActivity diff --git a/packages/react-native/template/android/app/src/main/java/com/helloworld/MainApplication.kt b/packages/react-native/template/android/app/src/main/java/com/helloworld/MainApplication.kt index 75193c30424..6ca847e0e0b 100644 --- a/packages/react-native/template/android/app/src/main/java/com/helloworld/MainApplication.kt +++ b/packages/react-native/template/android/app/src/main/java/com/helloworld/MainApplication.kt @@ -1,10 +1,3 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - package com.helloworld import android.app.Application diff --git a/packages/react-native/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.kt b/packages/react-native/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.kt index 486e6cd14f4..5eea0530a74 100644 --- a/packages/react-native/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.kt +++ b/packages/react-native/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.kt @@ -1,10 +1,3 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - package com.helloworld import android.content.Context