From a689711f680bb23795dea6391627383ca6973f88 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Wed, 31 Oct 2018 01:35:03 -0700 Subject: [PATCH] RN: Missing Copyright Headers Summary: Adds copyright headers to all files that are missing them. Reviewed By: hramos Differential Revision: D12837494 fbshipit-source-id: 6330a18919676dec9ff2c03b7c9329ed9127d930 --- ContainerShip/Dockerfile.android | 5 ++++ ContainerShip/Dockerfile.android-base | 5 ++++ ContainerShip/Dockerfile.javascript | 5 ++++ ...un-android-docker-instrumentation-tests.sh | 6 ++++ .../scripts/run-android-docker-unit-tests.sh | 6 ++++ ContainerShip/scripts/run-ci-e2e-tests.sh | 6 ++++ ...run-instrumentation-tests-via-adb-shell.sh | 7 +++++ Libraries/Animated/examples/style.css | 7 +++++ .../Animated/src/__tests__/bezier-test.js | 5 ++++ Libraries/Animated/src/bezier.js | 5 ++++ .../FBSnapshotTestCase/UIImage+Compare.h | 5 ++++ .../FBSnapshotTestCase/UIImage+Compare.m | 5 ++++ .../RCTTest/FBSnapshotTestCase/UIImage+Diff.h | 5 ++++ .../RCTTest/FBSnapshotTestCase/UIImage+Diff.m | 5 ++++ Libraries/Sample/Sample.h | 5 ++++ Libraries/Sample/Sample.m | 5 ++++ Libraries/vendor/core/merge.js | 29 ++---------------- Libraries/vendor/core/mergeInto.js | 30 ++----------------- RNTester/android/app/build.gradle | 7 +++++ RNTester/android/app/proguard-rules.pro | 5 ++++ .../DevSupport/RCTInspectorDevServerHelper.mm | 5 ++++ React/Inspector/RCTInspector.mm | 4 +++ .../RCTInspectorPackagerConnection.m | 5 ++++ ReactAndroid/proguard-rules.pro | 5 ++++ .../src/main/java/com/facebook/jni/fbjni.pro | 5 ++++ .../annotations/proguard_annotations.pro | 5 ++++ .../facebook/react/ReactPackageHelper.java | 7 +++++ .../com/facebook/react/TurboReactPackage.java | 7 +++++ .../react/animated/SpringAnimation.java | 7 +++++ .../com/facebook/react/bridge/JSIModule.java | 7 +++++ .../react/bridge/JSIModuleHolder.java | 7 +++++ .../react/bridge/JSIModulePackage.java | 7 +++++ .../react/bridge/JSIModuleProvider.java | 7 +++++ .../react/bridge/JSIModuleRegistry.java | 7 +++++ .../facebook/react/bridge/JSIModuleSpec.java | 7 +++++ .../react/bridge/NativeArrayInterface.java | 7 +++++ .../com/facebook/react/bridge/UIManager.java | 9 +++++- .../java/com/facebook/react/bridge/bridge.pro | 5 ++++ .../com/facebook/react/bridge/reactnative.pro | 5 ++++ .../com/facebook/react/common/ArrayUtils.java | 7 +++++ .../react/config/ReactFeatureFlags.java | 7 +++++ .../react/devsupport/ViewHierarchyUtil.java | 7 +++++ .../react/devsupport/WindowOverlayCompat.java | 7 +++++ .../com/facebook/react/jscexecutor/Android.mk | 5 ++++ .../react/modules/fabric/ReactFabric.java | 7 +++++ .../modules/network/CookieJarContainer.java | 7 +++++ .../network/ReactCookieJarContainer.java | 11 +++++-- .../react/uimanager/MatrixMathHelper.java | 7 +++++ .../uimanager/ReactYogaConfigProvider.java | 7 +++++ .../react/uimanager/TransformHelper.java | 7 +++++ .../com/facebook/react/uimanager/UIBlock.java | 7 +++++ .../react/uimanager/UIManagerHelper.java | 7 +++++ ReactAndroid/src/main/jni/Application.mk | 5 ++++ .../src/main/jni/first-party/fb/Android.mk | 5 ++++ .../jni/first-party/fbgloginit/Android.mk | 5 ++++ .../main/jni/first-party/yogajni/Android.mk | 5 ++++ .../src/main/jni/react/jni/Android.mk | 5 ++++ .../NativeAnimatedInterpolationTest.java | 7 +++++ .../react/uimanager/MatrixMathHelperTest.java | 7 +++++ .../views/text/CustomLineHeightSpanTest.java | 7 +++++ ReactCommon/cxxreact/Android.mk | 5 ++++ ReactCommon/cxxreact/JSDeltaBundleClient.cpp | 5 ++++ .../components/text/paragraph/conversions.h | 4 +++ ReactCommon/jsi/Android.mk | 5 ++++ ReactCommon/jsiexecutor/Android.mk | 5 ++++ ReactCommon/jsinspector/Android.mk | 5 ++++ ReactCommon/yoga/Android.mk | 5 ++++ ReactCommon/yoga/yoga.podspec | 5 ++++ android-jsc/build.gradle | 9 +++++- local-cli/core/__fixtures__/commands.js | 9 +++++- local-cli/core/__fixtures__/dependencies.js | 9 +++++- local-cli/core/__fixtures__/files/Main.java | 7 +++++ .../core/__fixtures__/files/ReactPackage.java | 7 +++++ .../core/__fixtures__/files/ReactPackage.kt | 7 +++++ local-cli/core/__fixtures__/ios.js | 9 +++++- local-cli/core/__fixtures__/projects.js | 9 +++++- local-cli/core/ios/findPodfilePath.js | 9 +++++- local-cli/core/ios/findPodspecName.js | 9 +++++- local-cli/generator/promptSync.js | 9 +++++- .../android/0.17/MainActivity.java | 7 +++++ .../android/0.17/patchedMainActivity.java | 7 +++++ .../android/0.18/MainActivity.java | 7 +++++ .../android/0.18/patchedMainActivity.java | 7 +++++ .../android/0.20/MainActivity.java | 7 +++++ .../link/__fixtures__/android/build.gradle | 7 +++++ .../__fixtures__/android/patchedBuild.gradle | 7 +++++ .../android/patchedSettings.gradle | 7 +++++ .../link/__fixtures__/android/settings.gradle | 7 +++++ local-cli/link/android/index.js | 9 +++++- .../android/patches/normalizeProjectName.js | 9 +++++- local-cli/link/ios/common/isInstalled.js | 9 +++++- .../link/ios/common/registerNativeModule.js | 9 +++++- .../link/ios/common/unregisterNativeModule.js | 9 +++++- local-cli/link/ios/index.js | 9 +++++- scripts/circleci/validate_yarn_lockfile.sh | 4 +++ scripts/test-manual-e2e.sh | 6 +++- third-party-podspecs/DoubleConversion.podspec | 5 ++++ third-party-podspecs/Folly.podspec | 5 ++++ third-party-podspecs/glog.podspec | 5 ++++ tools/build_defs/fb_native_wrapper.bzl | 5 ++++ tools/build_defs/oss/rn_defs.bzl | 5 ++++ 101 files changed, 628 insertions(+), 71 deletions(-) diff --git a/ContainerShip/Dockerfile.android b/ContainerShip/Dockerfile.android index ab311060b..39b02062d 100644 --- a/ContainerShip/Dockerfile.android +++ b/ContainerShip/Dockerfile.android @@ -1,3 +1,8 @@ +# 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. + # React Native Android Unit Tests # # This image builds upon the React Native Base Android Development Environment diff --git a/ContainerShip/Dockerfile.android-base b/ContainerShip/Dockerfile.android-base index 433adf547..560a2c461 100644 --- a/ContainerShip/Dockerfile.android-base +++ b/ContainerShip/Dockerfile.android-base @@ -1,3 +1,8 @@ +# 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. + # React Native Base Android Development Environment # # This image provides a base Android development environment for React Native, diff --git a/ContainerShip/Dockerfile.javascript b/ContainerShip/Dockerfile.javascript index 7c1e14bb9..5e077f972 100644 --- a/ContainerShip/Dockerfile.javascript +++ b/ContainerShip/Dockerfile.javascript @@ -1,3 +1,8 @@ +# 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. + FROM library/node:6.9.2 ENV YARN_VERSION=0.27.5 diff --git a/ContainerShip/scripts/run-android-docker-instrumentation-tests.sh b/ContainerShip/scripts/run-android-docker-instrumentation-tests.sh index e2c320d7e..63ee31b47 100644 --- a/ContainerShip/scripts/run-android-docker-instrumentation-tests.sh +++ b/ContainerShip/scripts/run-android-docker-instrumentation-tests.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# 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. +# # for buck gen mount -o remount,exec /dev/shm diff --git a/ContainerShip/scripts/run-android-docker-unit-tests.sh b/ContainerShip/scripts/run-android-docker-unit-tests.sh index 1a422c25b..8653ccd9d 100644 --- a/ContainerShip/scripts/run-android-docker-unit-tests.sh +++ b/ContainerShip/scripts/run-android-docker-unit-tests.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# 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. +# # set default environment variables UNIT_TESTS_BUILD_THREADS="${UNIT_TESTS_BUILD_THREADS:-1}" diff --git a/ContainerShip/scripts/run-ci-e2e-tests.sh b/ContainerShip/scripts/run-ci-e2e-tests.sh index be9164397..aead257ff 100755 --- a/ContainerShip/scripts/run-ci-e2e-tests.sh +++ b/ContainerShip/scripts/run-ci-e2e-tests.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# 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. +# set -ex diff --git a/ContainerShip/scripts/run-instrumentation-tests-via-adb-shell.sh b/ContainerShip/scripts/run-instrumentation-tests-via-adb-shell.sh index 72b011ca9..d2b4b9ee2 100755 --- a/ContainerShip/scripts/run-instrumentation-tests-via-adb-shell.sh +++ b/ContainerShip/scripts/run-instrumentation-tests-via-adb-shell.sh @@ -1,4 +1,11 @@ #!/bin/bash +# +# 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. +# + # shellcheck disable=SC1117 # Python script to run instrumentation tests, copied from https://github.com/circleci/circle-dummy-android # Example: ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests com.facebook.react.tests.ReactPickerTestCase diff --git a/Libraries/Animated/examples/style.css b/Libraries/Animated/examples/style.css index c188ad79b..24191a56b 100644 --- a/Libraries/Animated/examples/style.css +++ b/Libraries/Animated/examples/style.css @@ -1,3 +1,10 @@ +/** + * 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. + */ + html, h1, h2 { font-family: 'Roboto', sans-serif; font-weight: 300; diff --git a/Libraries/Animated/src/__tests__/bezier-test.js b/Libraries/Animated/src/__tests__/bezier-test.js index e9f00a7d2..360d6262f 100644 --- a/Libraries/Animated/src/__tests__/bezier-test.js +++ b/Libraries/Animated/src/__tests__/bezier-test.js @@ -1,4 +1,9 @@ /** + * 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. + * * BezierEasing - use bezier curve for transition easing function * https://github.com/gre/bezier-easing * diff --git a/Libraries/Animated/src/bezier.js b/Libraries/Animated/src/bezier.js index 15f8e2dc1..d3ea74c27 100644 --- a/Libraries/Animated/src/bezier.js +++ b/Libraries/Animated/src/bezier.js @@ -1,4 +1,9 @@ /** + * 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. + * * BezierEasing - use bezier curve for transition easing function * https://github.com/gre/bezier-easing * diff --git a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.h b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.h index 11c6fa638..816e61ed4 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.h +++ b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.h @@ -1,3 +1,8 @@ +// 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. + // // Created by Gabriel Handford on 3/1/09. // Copyright 2009-2013. All rights reserved. diff --git a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.m b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.m index 24635509d..1c73254f8 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.m +++ b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Compare.m @@ -1,3 +1,8 @@ +// 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. + // // Created by Gabriel Handford on 3/1/09. // Copyright 2009-2013. All rights reserved. diff --git a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.h b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.h index 35595843f..a09d243b6 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.h +++ b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.h @@ -1,3 +1,8 @@ +// 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. + // // Created by Gabriel Handford on 3/1/09. // Copyright 2009-2013. All rights reserved. diff --git a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.m b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.m index 44ecb59ee..5e9f06c02 100644 --- a/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.m +++ b/Libraries/RCTTest/FBSnapshotTestCase/UIImage+Diff.m @@ -1,3 +1,8 @@ +// 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. + // // Created by Gabriel Handford on 3/1/09. // Copyright 2009-2013. All rights reserved. diff --git a/Libraries/Sample/Sample.h b/Libraries/Sample/Sample.h index 2bee4ac56..0c618d921 100644 --- a/Libraries/Sample/Sample.h +++ b/Libraries/Sample/Sample.h @@ -1,3 +1,8 @@ +// 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. + #import @interface Sample : NSObject diff --git a/Libraries/Sample/Sample.m b/Libraries/Sample/Sample.m index d30941112..2c8a7f030 100644 --- a/Libraries/Sample/Sample.m +++ b/Libraries/Sample/Sample.m @@ -1,3 +1,8 @@ +// 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. + #import "Sample.h" @implementation Sample diff --git a/Libraries/vendor/core/merge.js b/Libraries/vendor/core/merge.js index 6963eddd5..c9604a42a 100644 --- a/Libraries/vendor/core/merge.js +++ b/Libraries/vendor/core/merge.js @@ -1,31 +1,8 @@ /** - * @generated SignedSource<<148d1974f94f5c9597e86f946bdf0d4e>> - * - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * !! This file is a check-in of a static_upstream project! !! - * !! !! - * !! You should not modify this file directly. Instead: !! - * !! 1) Use `fjs use-upstream` to temporarily replace this with !! - * !! the latest version from upstream. !! - * !! 2) Make your changes, test them, etc. !! - * !! 3) Use `fjs push-upstream` to copy your changes back to !! - * !! static_upstream. !! - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * - * Copyright 2013-2014 Facebook, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * 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. */ "use strict"; diff --git a/Libraries/vendor/core/mergeInto.js b/Libraries/vendor/core/mergeInto.js index d42b3dcf3..31e869059 100644 --- a/Libraries/vendor/core/mergeInto.js +++ b/Libraries/vendor/core/mergeInto.js @@ -1,32 +1,8 @@ /** - * @generated SignedSource<> + * Copyright (c) Facebook, Inc. and its affiliates. * - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * !! This file is a check-in of a static_upstream project! !! - * !! !! - * !! You should not modify this file directly. Instead: !! - * !! 1) Use `fjs use-upstream` to temporarily replace this with !! - * !! the latest version from upstream. !! - * !! 2) Make your changes, test them, etc. !! - * !! 3) Use `fjs push-upstream` to copy your changes back to !! - * !! static_upstream. !! - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * - * Copyright 2013-2014 Facebook, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * @typechecks static-only + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ "use strict"; diff --git a/RNTester/android/app/build.gradle b/RNTester/android/app/build.gradle index 6656f6a40..f0f592613 100644 --- a/RNTester/android/app/build.gradle +++ b/RNTester/android/app/build.gradle @@ -1,3 +1,10 @@ +/** + * 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. + */ + apply plugin: 'com.android.application' import com.android.build.OutputFile diff --git a/RNTester/android/app/proguard-rules.pro b/RNTester/android/app/proguard-rules.pro index a92fa177e..4dc17584e 100644 --- a/RNTester/android/app/proguard-rules.pro +++ b/RNTester/android/app/proguard-rules.pro @@ -1,3 +1,8 @@ +# 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. + # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt diff --git a/React/DevSupport/RCTInspectorDevServerHelper.mm b/React/DevSupport/RCTInspectorDevServerHelper.mm index 7aad19bc2..2901b6833 100644 --- a/React/DevSupport/RCTInspectorDevServerHelper.mm +++ b/React/DevSupport/RCTInspectorDevServerHelper.mm @@ -1,3 +1,8 @@ +// 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. + #import "RCTInspectorDevServerHelper.h" #if RCT_DEV diff --git a/React/Inspector/RCTInspector.mm b/React/Inspector/RCTInspector.mm index 79c1431f0..32201f760 100644 --- a/React/Inspector/RCTInspector.mm +++ b/React/Inspector/RCTInspector.mm @@ -1,3 +1,7 @@ +// 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. #import "RCTInspector.h" diff --git a/React/Inspector/RCTInspectorPackagerConnection.m b/React/Inspector/RCTInspectorPackagerConnection.m index 8852d921b..5d0ed99ab 100644 --- a/React/Inspector/RCTInspectorPackagerConnection.m +++ b/React/Inspector/RCTInspectorPackagerConnection.m @@ -1,3 +1,8 @@ +// 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. + #import "RCTInspectorPackagerConnection.h" #if RCT_DEV diff --git a/ReactAndroid/proguard-rules.pro b/ReactAndroid/proguard-rules.pro index aa586132f..84f5e603a 100644 --- a/ReactAndroid/proguard-rules.pro +++ b/ReactAndroid/proguard-rules.pro @@ -1,3 +1,8 @@ +# 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. + # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt diff --git a/ReactAndroid/src/main/java/com/facebook/jni/fbjni.pro b/ReactAndroid/src/main/java/com/facebook/jni/fbjni.pro index 5b5b6454d..09fad6a9e 100644 --- a/ReactAndroid/src/main/java/com/facebook/jni/fbjni.pro +++ b/ReactAndroid/src/main/java/com/facebook/jni/fbjni.pro @@ -1,3 +1,8 @@ +# 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. + # For common use cases for the hybrid pattern, keep symbols which may # be referenced only from C++. diff --git a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/proguard_annotations.pro b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/proguard_annotations.pro index b1ef5f7ce..f9d4677e2 100644 --- a/ReactAndroid/src/main/java/com/facebook/proguard/annotations/proguard_annotations.pro +++ b/ReactAndroid/src/main/java/com/facebook/proguard/annotations/proguard_annotations.pro @@ -1,3 +1,8 @@ +# 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. + # Keep our interfaces so they can be used by other ProGuard rules. # See http://sourceforge.net/p/proguard/bugs/466/ -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.java b/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.java index 83630844b..5ce5b8259 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactPackageHelper.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react; import android.support.annotation.NonNull; diff --git a/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java b/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java index a55e473af..bd2b019eb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react; import android.support.annotation.NonNull; diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java b/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java index 355875614..6b76ae32d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/SpringAnimation.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.animated; import com.facebook.react.bridge.ReadableMap; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java index 8ee96fee2..43b1d3349 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleHolder.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleHolder.java index 14d0f97eb..7e7f4b091 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleHolder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleHolder.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; public class JSIModuleHolder { diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModulePackage.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModulePackage.java index 9a85f68d6..e5c28700b 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModulePackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModulePackage.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; import java.util.List; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java index a94162f12..d8c376587 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; public interface JSIModuleProvider { diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java index dbca620dc..c90d40077 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; import com.facebook.infer.annotation.Assertions; diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleSpec.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleSpec.java index d8c212200..117892129 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleSpec.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleSpec.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java index 74b49a890..989208814 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; public interface NativeArrayInterface { diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java index 29a5a9314..6d4824390 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.bridge; import com.facebook.react.uimanager.common.MeasureSpecProvider; @@ -26,7 +33,7 @@ public interface UIManager extends JSIModule, PerformanceCounter { /** * Dispatches the commandId received by parameter to the view associated with the reactTag. * The command will be processed in the UIThread. - * + * * @param reactTag {@link int} that identifies the view that will receive this command * @param commandId {@link int} command id * @param commandArgs {@link ReadableArray} parameters associated with the command diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/bridge.pro b/ReactAndroid/src/main/java/com/facebook/react/bridge/bridge.pro index a03ce0287..028d56d07 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/bridge.pro +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/bridge.pro @@ -1,3 +1,8 @@ +# 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. + ## Putting this here is kind of a hack. I don't want to modify the OSS bridge. ## TODO mhorowitz: add @DoNotStrip to the interface directly. diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/reactnative.pro b/ReactAndroid/src/main/java/com/facebook/react/bridge/reactnative.pro index 2625c0032..403157896 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/reactnative.pro +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/reactnative.pro @@ -1,3 +1,8 @@ +# 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. + -keepnames class * extends com.facebook.react.bridge.JavaScriptModule { *; } -keepnames class * extends com.facebook.react.bridge.CxxModuleWrapper {*; } -keepclassmembers class * extends com.facebook.react.bridge.NativeModule { diff --git a/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java b/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java index 5b2f32023..b689d8b0a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java +++ b/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.common; import java.util.Arrays; diff --git a/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java b/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java index f9f1b7083..be48e96bc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +++ b/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.config; /** diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/ViewHierarchyUtil.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/ViewHierarchyUtil.java index 1aee0099e..56e617caf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/ViewHierarchyUtil.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/ViewHierarchyUtil.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.devsupport; import android.util.Pair; diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java index b4bfa91ee..902714855 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.devsupport; import android.os.Build; diff --git a/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk b/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk index 9b7404543..21642e637 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +++ b/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/ReactFabric.java b/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/ReactFabric.java index fd0896bdd..fbf323368 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/ReactFabric.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/ReactFabric.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.modules.fabric; import com.facebook.react.bridge.JavaScriptModule; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/CookieJarContainer.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/CookieJarContainer.java index fcf375f08..6e58b76e9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/CookieJarContainer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/CookieJarContainer.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.modules.network; import okhttp3.CookieJar; diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ReactCookieJarContainer.java b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ReactCookieJarContainer.java index 370586fa5..0589bfd17 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/network/ReactCookieJarContainer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/network/ReactCookieJarContainer.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.modules.network; import java.util.ArrayList; @@ -12,8 +19,8 @@ import okhttp3.Headers; import okhttp3.HttpUrl; /** - * Basic okhttp3 CookieJar container - */ + * Basic okhttp3 CookieJar container + */ public class ReactCookieJarContainer implements CookieJarContainer { @Nullable diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java index cbf665a7e..8ce6fe2bf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import com.facebook.infer.annotation.Assertions; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java index 3e2b10976..4facdbf2a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import com.facebook.yoga.YogaConfig; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java index 52895d4b7..0dd0e2d27 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import com.facebook.react.bridge.JSApplicationIllegalArgumentException; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.java index 86678d897..619c793c1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import android.view.View; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java index fa2ac80a5..6c4219e1e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import static com.facebook.react.uimanager.common.UIManagerType.FABRIC; diff --git a/ReactAndroid/src/main/jni/Application.mk b/ReactAndroid/src/main/jni/Application.mk index 0e3d85e32..942a122de 100644 --- a/ReactAndroid/src/main/jni/Application.mk +++ b/ReactAndroid/src/main/jni/Application.mk @@ -1,3 +1,8 @@ +# 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. + APP_BUILD_SCRIPT := Android.mk APP_ABI := armeabi-v7a x86 arm64-v8a x86_64 diff --git a/ReactAndroid/src/main/jni/first-party/fb/Android.mk b/ReactAndroid/src/main/jni/first-party/fb/Android.mk index bd0b6cf1c..90f256515 100644 --- a/ReactAndroid/src/main/jni/first-party/fb/Android.mk +++ b/ReactAndroid/src/main/jni/first-party/fb/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk b/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk index 17e352bcc..ee9f3709c 100644 --- a/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk +++ b/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk b/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk index 22fe6854d..4850810df 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk +++ b/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactAndroid/src/main/jni/react/jni/Android.mk b/ReactAndroid/src/main/jni/react/jni/Android.mk index d76dd0fc2..85e5fddc7 100644 --- a/ReactAndroid/src/main/jni/react/jni/Android.mk +++ b/ReactAndroid/src/main/jni/react/jni/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java index 27973a3ac..a43308b7d 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.animated; import org.junit.Test; diff --git a/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java b/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java index ac61c012d..5866ca66f 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.uimanager; import org.junit.Test; diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java index eadb7d354..219143edf 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.facebook.react.views.text; import android.graphics.Paint; diff --git a/ReactCommon/cxxreact/Android.mk b/ReactCommon/cxxreact/Android.mk index 4a5a04373..faf9935ab 100644 --- a/ReactCommon/cxxreact/Android.mk +++ b/ReactCommon/cxxreact/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactCommon/cxxreact/JSDeltaBundleClient.cpp b/ReactCommon/cxxreact/JSDeltaBundleClient.cpp index d6785226d..86edf47c8 100644 --- a/ReactCommon/cxxreact/JSDeltaBundleClient.cpp +++ b/ReactCommon/cxxreact/JSDeltaBundleClient.cpp @@ -1,3 +1,8 @@ +// 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. + #include "JSDeltaBundleClient.h" #include diff --git a/ReactCommon/fabric/components/text/paragraph/conversions.h b/ReactCommon/fabric/components/text/paragraph/conversions.h index c9d614144..e3f2f6c1f 100644 --- a/ReactCommon/fabric/components/text/paragraph/conversions.h +++ b/ReactCommon/fabric/components/text/paragraph/conversions.h @@ -1,3 +1,7 @@ +// 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. #include #include diff --git a/ReactCommon/jsi/Android.mk b/ReactCommon/jsi/Android.mk index 1b27989ff..4e650d9ca 100644 --- a/ReactCommon/jsi/Android.mk +++ b/ReactCommon/jsi/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactCommon/jsiexecutor/Android.mk b/ReactCommon/jsiexecutor/Android.mk index 8580c9f4b..c6bb60124 100644 --- a/ReactCommon/jsiexecutor/Android.mk +++ b/ReactCommon/jsiexecutor/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactCommon/jsinspector/Android.mk b/ReactCommon/jsinspector/Android.mk index 2e36c2274..4ac555362 100644 --- a/ReactCommon/jsinspector/Android.mk +++ b/ReactCommon/jsinspector/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactCommon/yoga/Android.mk b/ReactCommon/yoga/Android.mk index 07e664037..f1cd07fc9 100644 --- a/ReactCommon/yoga/Android.mk +++ b/ReactCommon/yoga/Android.mk @@ -1,3 +1,8 @@ +# 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. + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/ReactCommon/yoga/yoga.podspec b/ReactCommon/yoga/yoga.podspec index 6d5dc0357..455d2e87b 100644 --- a/ReactCommon/yoga/yoga.podspec +++ b/ReactCommon/yoga/yoga.podspec @@ -1,3 +1,8 @@ +# 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. + package = JSON.parse(File.read(File.expand_path('../../package.json', __dir__))) version = package['version'] diff --git a/android-jsc/build.gradle b/android-jsc/build.gradle index dc3e8d0b8..fcc9f9d53 100644 --- a/android-jsc/build.gradle +++ b/android-jsc/build.gradle @@ -1,2 +1,9 @@ +/** + * 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. + */ + configurations.maybeCreate("default") -artifacts.add("default", file('android-jsc.aar')) \ No newline at end of file +artifacts.add("default", file('android-jsc.aar')) diff --git a/local-cli/core/__fixtures__/commands.js b/local-cli/core/__fixtures__/commands.js index 2f98b7ef5..5331649a7 100644 --- a/local-cli/core/__fixtures__/commands.js +++ b/local-cli/core/__fixtures__/commands.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ exports.single = { func: () => {}, diff --git a/local-cli/core/__fixtures__/dependencies.js b/local-cli/core/__fixtures__/dependencies.js index 3b9c9abc3..f5a3c1c33 100644 --- a/local-cli/core/__fixtures__/dependencies.js +++ b/local-cli/core/__fixtures__/dependencies.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const fs = jest.requireActual('fs'); const path = require('path'); diff --git a/local-cli/core/__fixtures__/files/Main.java b/local-cli/core/__fixtures__/files/Main.java index 08dc35a58..5ddddfae8 100644 --- a/local-cli/core/__fixtures__/files/Main.java +++ b/local-cli/core/__fixtures__/files/Main.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.some.example; import java.util.ArrayList; diff --git a/local-cli/core/__fixtures__/files/ReactPackage.java b/local-cli/core/__fixtures__/files/ReactPackage.java index 1f65e4f5f..08695ebb7 100644 --- a/local-cli/core/__fixtures__/files/ReactPackage.java +++ b/local-cli/core/__fixtures__/files/ReactPackage.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.some.example; import com.facebook.react.ReactPackage; diff --git a/local-cli/core/__fixtures__/files/ReactPackage.kt b/local-cli/core/__fixtures__/files/ReactPackage.kt index f17b5b760..17b0db22b 100644 --- a/local-cli/core/__fixtures__/files/ReactPackage.kt +++ b/local-cli/core/__fixtures__/files/ReactPackage.kt @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.some.example; import android.view.View diff --git a/local-cli/core/__fixtures__/ios.js b/local-cli/core/__fixtures__/ios.js index ef0ba538a..1792f6730 100644 --- a/local-cli/core/__fixtures__/ios.js +++ b/local-cli/core/__fixtures__/ios.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const fs = jest.requireActual('fs'); const path = require('path'); diff --git a/local-cli/core/__fixtures__/projects.js b/local-cli/core/__fixtures__/projects.js index 28414b3d9..c3d42d693 100644 --- a/local-cli/core/__fixtures__/projects.js +++ b/local-cli/core/__fixtures__/projects.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const android = require('./android'); const ios = require('./ios'); diff --git a/local-cli/core/ios/findPodfilePath.js b/local-cli/core/ios/findPodfilePath.js index 91efb191d..672325354 100644 --- a/local-cli/core/ios/findPodfilePath.js +++ b/local-cli/core/ios/findPodfilePath.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ 'use strict'; diff --git a/local-cli/core/ios/findPodspecName.js b/local-cli/core/ios/findPodspecName.js index 8f43d4360..1041a0a99 100644 --- a/local-cli/core/ios/findPodspecName.js +++ b/local-cli/core/ios/findPodspecName.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ 'use strict'; diff --git a/local-cli/generator/promptSync.js b/local-cli/generator/promptSync.js index 636138abf..ba1b4d7f1 100644 --- a/local-cli/generator/promptSync.js +++ b/local-cli/generator/promptSync.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ // Simplified version of: // https://github.com/0x00A/prompt-sync/blob/master/index.js diff --git a/local-cli/link/__fixtures__/android/0.17/MainActivity.java b/local-cli/link/__fixtures__/android/0.17/MainActivity.java index 0a532a7ed..d0794b72b 100644 --- a/local-cli/link/__fixtures__/android/0.17/MainActivity.java +++ b/local-cli/link/__fixtures__/android/0.17/MainActivity.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.basic; import android.app.Activity; diff --git a/local-cli/link/__fixtures__/android/0.17/patchedMainActivity.java b/local-cli/link/__fixtures__/android/0.17/patchedMainActivity.java index edd841d76..17c2b278d 100644 --- a/local-cli/link/__fixtures__/android/0.17/patchedMainActivity.java +++ b/local-cli/link/__fixtures__/android/0.17/patchedMainActivity.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.basic; import android.app.Activity; diff --git a/local-cli/link/__fixtures__/android/0.18/MainActivity.java b/local-cli/link/__fixtures__/android/0.18/MainActivity.java index c2ccca890..c63062744 100644 --- a/local-cli/link/__fixtures__/android/0.18/MainActivity.java +++ b/local-cli/link/__fixtures__/android/0.18/MainActivity.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.testrn; import com.facebook.react.ReactActivity; diff --git a/local-cli/link/__fixtures__/android/0.18/patchedMainActivity.java b/local-cli/link/__fixtures__/android/0.18/patchedMainActivity.java index 3c6331eaf..b099735c4 100644 --- a/local-cli/link/__fixtures__/android/0.18/patchedMainActivity.java +++ b/local-cli/link/__fixtures__/android/0.18/patchedMainActivity.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.testrn; import com.facebook.react.ReactActivity; diff --git a/local-cli/link/__fixtures__/android/0.20/MainActivity.java b/local-cli/link/__fixtures__/android/0.20/MainActivity.java index d9df13115..642f4259c 100644 --- a/local-cli/link/__fixtures__/android/0.20/MainActivity.java +++ b/local-cli/link/__fixtures__/android/0.20/MainActivity.java @@ -1,3 +1,10 @@ +/** + * 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. + */ + package com.myawesomeproject; import com.facebook.react.ReactActivity; diff --git a/local-cli/link/__fixtures__/android/build.gradle b/local-cli/link/__fixtures__/android/build.gradle index 4dd26f8e0..f206d053e 100644 --- a/local-cli/link/__fixtures__/android/build.gradle +++ b/local-cli/link/__fixtures__/android/build.gradle @@ -1,3 +1,10 @@ +/** + * 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. + */ + dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:27.1.1" diff --git a/local-cli/link/__fixtures__/android/patchedBuild.gradle b/local-cli/link/__fixtures__/android/patchedBuild.gradle index 425aaaf7f..f5cb4a24a 100644 --- a/local-cli/link/__fixtures__/android/patchedBuild.gradle +++ b/local-cli/link/__fixtures__/android/patchedBuild.gradle @@ -1,3 +1,10 @@ +/** + * 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. + */ + dependencies { implementation project(':test') implementation(project(':test2')) { diff --git a/local-cli/link/__fixtures__/android/patchedSettings.gradle b/local-cli/link/__fixtures__/android/patchedSettings.gradle index 8854e3d10..2b311263a 100644 --- a/local-cli/link/__fixtures__/android/patchedSettings.gradle +++ b/local-cli/link/__fixtures__/android/patchedSettings.gradle @@ -1,3 +1,10 @@ +/** + * 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. + */ + rootProject.name = 'TestRN' include ':app' diff --git a/local-cli/link/__fixtures__/android/settings.gradle b/local-cli/link/__fixtures__/android/settings.gradle index ded35f713..5bb3d945c 100644 --- a/local-cli/link/__fixtures__/android/settings.gradle +++ b/local-cli/link/__fixtures__/android/settings.gradle @@ -1,3 +1,10 @@ +/** + * 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. + */ + rootProject.name = 'TestRN' include ':app' diff --git a/local-cli/link/android/index.js b/local-cli/link/android/index.js index 3eacc4175..d8b8f5add 100644 --- a/local-cli/link/android/index.js +++ b/local-cli/link/android/index.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ module.exports = function() { return { diff --git a/local-cli/link/android/patches/normalizeProjectName.js b/local-cli/link/android/patches/normalizeProjectName.js index 97dae55ed..bdf457d74 100644 --- a/local-cli/link/android/patches/normalizeProjectName.js +++ b/local-cli/link/android/patches/normalizeProjectName.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ module.exports = function normalizeProjectName(name) { return name.replace(/\//g, '_'); diff --git a/local-cli/link/ios/common/isInstalled.js b/local-cli/link/ios/common/isInstalled.js index 71af956bd..3e5542fe1 100644 --- a/local-cli/link/ios/common/isInstalled.js +++ b/local-cli/link/ios/common/isInstalled.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const isInstalledIOS = require('../isInstalled'); const isInstalledPods = require('../../pods/isInstalled'); diff --git a/local-cli/link/ios/common/registerNativeModule.js b/local-cli/link/ios/common/registerNativeModule.js index 72057712f..8a86e6887 100644 --- a/local-cli/link/ios/common/registerNativeModule.js +++ b/local-cli/link/ios/common/registerNativeModule.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const registerDependencyIOS = require('../registerNativeModule'); const registerDependencyPods = require('../../pods/registerNativeModule'); diff --git a/local-cli/link/ios/common/unregisterNativeModule.js b/local-cli/link/ios/common/unregisterNativeModule.js index dbf7bc414..69d25ea59 100644 --- a/local-cli/link/ios/common/unregisterNativeModule.js +++ b/local-cli/link/ios/common/unregisterNativeModule.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ const compact = require('lodash').compact; const isInstalledIOS = require('../isInstalled'); diff --git a/local-cli/link/ios/index.js b/local-cli/link/ios/index.js index bf6b57b26..aa31fd2ba 100644 --- a/local-cli/link/ios/index.js +++ b/local-cli/link/ios/index.js @@ -1,4 +1,11 @@ -/** @format */ +/** + * 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. + * + * @format + */ module.exports = function() { return { diff --git a/scripts/circleci/validate_yarn_lockfile.sh b/scripts/circleci/validate_yarn_lockfile.sh index 5626dd956..8231cd496 100755 --- a/scripts/circleci/validate_yarn_lockfile.sh +++ b/scripts/circleci/validate_yarn_lockfile.sh @@ -1,4 +1,8 @@ #!/bin/bash +# 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. # Abort the mission if any command fails set -e diff --git a/scripts/test-manual-e2e.sh b/scripts/test-manual-e2e.sh index ac1157df6..84affa42d 100755 --- a/scripts/test-manual-e2e.sh +++ b/scripts/test-manual-e2e.sh @@ -1,4 +1,8 @@ -#! /bin/bash +#!/bin/bash +# 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. JAVA_VERSION="1.7" diff --git a/third-party-podspecs/DoubleConversion.podspec b/third-party-podspecs/DoubleConversion.podspec index 2ea6c84a4..97a80401f 100644 --- a/third-party-podspecs/DoubleConversion.podspec +++ b/third-party-podspecs/DoubleConversion.podspec @@ -1,3 +1,8 @@ +# 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. + Pod::Spec.new do |spec| spec.name = 'DoubleConversion' spec.version = '1.1.6' diff --git a/third-party-podspecs/Folly.podspec b/third-party-podspecs/Folly.podspec index ebe807b8e..c12c8e16b 100644 --- a/third-party-podspecs/Folly.podspec +++ b/third-party-podspecs/Folly.podspec @@ -1,3 +1,8 @@ +# 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. + Pod::Spec.new do |spec| spec.name = 'Folly' spec.version = '2018.10.22.00' diff --git a/third-party-podspecs/glog.podspec b/third-party-podspecs/glog.podspec index bc4bb1e18..b5656e586 100644 --- a/third-party-podspecs/glog.podspec +++ b/third-party-podspecs/glog.podspec @@ -1,3 +1,8 @@ +# 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. + Pod::Spec.new do |spec| spec.name = 'glog' spec.version = '0.3.5' diff --git a/tools/build_defs/fb_native_wrapper.bzl b/tools/build_defs/fb_native_wrapper.bzl index 4e251dc0a..3d246dee1 100644 --- a/tools/build_defs/fb_native_wrapper.bzl +++ b/tools/build_defs/fb_native_wrapper.bzl @@ -1,3 +1,8 @@ +# 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. + fb_native = struct( android_aar = native.android_aar, android_app_modularity = native.android_app_modularity, diff --git a/tools/build_defs/oss/rn_defs.bzl b/tools/build_defs/oss/rn_defs.bzl index c4420b22e..fbf99d0cb 100644 --- a/tools/build_defs/oss/rn_defs.bzl +++ b/tools/build_defs/oss/rn_defs.bzl @@ -1,3 +1,8 @@ +# 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. + """Helpers for referring to React Native open source code. This lets us build React Native: