From ba9bd4eae35032c75cd64b91e67d2928f45dc931 Mon Sep 17 00:00:00 2001 From: Sidharth Guglani Date: Wed, 24 Oct 2018 03:09:58 -0700 Subject: [PATCH] Added Copyright Header Reviewed By: davidaurelio Differential Revision: D10462700 fbshipit-source-id: edef1f6f5825835bbdb613a1934bf7bfe86d0ee6 --- Yoga.podspec | 6 ++++++ YogaKit.podspec | 6 ++++++ .../YogaKitSample.xcodeproj/project.pbxproj | 7 +++++++ .../project.xcworkspace/contents.xcworkspacedata | 7 +++++++ .../YogaKitSample.xcworkspace/contents.xcworkspacedata | 7 +++++++ android/build.gradle | 7 +++++++ android/gradle.properties | 7 +++++++ build.gradle | 7 +++++++ csharp/Mac/run-tests.sh | 10 +++++++++- csharp/build-native.sh | 9 ++++++++- gradle.properties | 7 +++++++ java/build.gradle | 7 +++++++ java/gradle.properties | 7 +++++++ java/proguard-annotations/build.gradle | 7 +++++++ javascript/sources/Value.hh | 7 +++++++ lib/fb/build.gradle | 7 +++++++ lib/fb/src/main/java/com/facebook/jni/fbjni.pro | 7 +++++++ scripts/android-setup.sh | 9 +++++++++ scripts/deploy_jcenter.sh | 8 ++++++++ scripts/publish-snapshot.sh | 6 ++++++ settings.gradle | 7 +++++++ tools/build_defs/oss/yoga_defs.bzl | 6 ++++++ website/src/components/Playground/CodeComponentKit.js | 7 +++++++ website/src/components/Playground/CodeGenerators.css | 7 +++++++ website/src/components/Playground/URLShortener.css | 7 +++++++ website/src/pages/playground/index.css | 7 +++++++ yogacore/build.gradle | 7 +++++++ 27 files changed, 191 insertions(+), 2 deletions(-) diff --git a/Yoga.podspec b/Yoga.podspec index a13fb02f..43e43ab4 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -1,3 +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. +# Pod::Spec.new do |spec| spec.name = 'Yoga' spec.version = '1.9.0' diff --git a/YogaKit.podspec b/YogaKit.podspec index 59af6974..cedbe73e 100644 --- a/YogaKit.podspec +++ b/YogaKit.podspec @@ -1,3 +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. +# podspec = Pod::Spec.new do |spec| spec.name = 'YogaKit' spec.version = '1.9.0' diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj index 654f9ebb..01b15da3 100644 --- a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj +++ b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.pbxproj @@ -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. + */ + // !$*UTF8*$! { archiveVersion = 1; diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata index b8f12e0b..cee8ad8b 100644 --- a/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/YogaKit/YogaKitSample/YogaKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -1,3 +1,10 @@ + + diff --git a/YogaKit/YogaKitSample/YogaKitSample.xcworkspace/contents.xcworkspacedata b/YogaKit/YogaKitSample/YogaKitSample.xcworkspace/contents.xcworkspacedata index c64c0fa8..ad8697b8 100644 --- a/YogaKit/YogaKitSample/YogaKitSample.xcworkspace/contents.xcworkspacedata +++ b/YogaKit/YogaKitSample/YogaKitSample.xcworkspace/contents.xcworkspacedata @@ -1,3 +1,10 @@ + + diff --git a/android/build.gradle b/android/build.gradle index 042459a2..7dc4904b 100644 --- a/android/build.gradle +++ b/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. + */ + apply plugin: 'com.jfrog.bintray' apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' diff --git a/android/gradle.properties b/android/gradle.properties index e03c3c0c..76b74e27 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -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. +# + GROUP=com.facebook.yoga.android POM_NAME=YogaLayout POM_DESCRIPTION=YogaLayout diff --git a/build.gradle b/build.gradle index 7cbb3cf7..d2202c63 100644 --- a/build.gradle +++ b/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. + */ + // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { diff --git a/csharp/Mac/run-tests.sh b/csharp/Mac/run-tests.sh index 88b899e6..fe69016a 100755 --- a/csharp/Mac/run-tests.sh +++ b/csharp/Mac/run-tests.sh @@ -1,2 +1,10 @@ #!/bin/sh -./csharp/Mac/Facebook.Yoga.Mac.Tests/bin/Release/Facebook.Yoga.Mac.Tests.app/Contents/MacOS/Facebook.Yoga.Mac.Tests \ No newline at end of file + +# +# 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. +# + +./csharp/Mac/Facebook.Yoga.Mac.Tests/bin/Release/Facebook.Yoga.Mac.Tests.app/Contents/MacOS/Facebook.Yoga.Mac.Tests diff --git a/csharp/build-native.sh b/csharp/build-native.sh index c614744e..eaada621 100755 --- a/csharp/build-native.sh +++ b/csharp/build-native.sh @@ -1,4 +1,12 @@ #!/bin/sh + +# +# 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. +# + cd `dirname "$0"` echo $ANDROID_SDK BUCK_RELEASE=2018.02.16.01 @@ -22,4 +30,3 @@ $BUCK build \ //csharp:yoganet-macosx \ //csharp:yoganet#android-armv7,shared \ //csharp:yoganet#android-x86,shared - diff --git a/gradle.properties b/gradle.properties index 5ee043c0..a514ea0a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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. +# + # Project-wide Gradle settings. org.gradle.jvmargs=-Xmx1536M diff --git a/java/build.gradle b/java/build.gradle index 85e94961..772886e0 100644 --- a/java/build.gradle +++ b/java/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.jfrog.bintray' apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' diff --git a/java/gradle.properties b/java/gradle.properties index 1679cf1d..eb063444 100644 --- a/java/gradle.properties +++ b/java/gradle.properties @@ -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. +# + GROUP=com.facebook.yoga POM_NAME=Yoga POM_DESCRIPTION=Java bindings to libyoga diff --git a/java/proguard-annotations/build.gradle b/java/proguard-annotations/build.gradle index bbfeb03c..3f252b3f 100644 --- a/java/proguard-annotations/build.gradle +++ b/java/proguard-annotations/build.gradle @@ -1 +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. + */ + apply plugin: 'java' diff --git a/javascript/sources/Value.hh b/javascript/sources/Value.hh index bfcc2b81..a44cbbbe 100644 --- a/javascript/sources/Value.hh +++ b/javascript/sources/Value.hh @@ -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. + */ + #pragma once #include diff --git a/lib/fb/build.gradle b/lib/fb/build.gradle index 2b01b4c2..eb806477 100644 --- a/lib/fb/build.gradle +++ b/lib/fb/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.library' android { diff --git a/lib/fb/src/main/java/com/facebook/jni/fbjni.pro b/lib/fb/src/main/java/com/facebook/jni/fbjni.pro index 5b5b6454..3b3c2b61 100644 --- a/lib/fb/src/main/java/com/facebook/jni/fbjni.pro +++ b/lib/fb/src/main/java/com/facebook/jni/fbjni.pro @@ -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. +# + # For common use cases for the hybrid pattern, keep symbols which may # be referenced only from C++. diff --git a/scripts/android-setup.sh b/scripts/android-setup.sh index abc102a1..33b6e7a8 100644 --- a/scripts/android-setup.sh +++ b/scripts/android-setup.sh @@ -1,3 +1,12 @@ +#!/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 -e function download() { diff --git a/scripts/deploy_jcenter.sh b/scripts/deploy_jcenter.sh index 897331a1..34c633df 100755 --- a/scripts/deploy_jcenter.sh +++ b/scripts/deploy_jcenter.sh @@ -1,4 +1,12 @@ #!/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 -e ROOTDIR="$(dirname $0)/.." echo -e "\033[1;34m** We can deploy two libraries\n** (1) Java bindings to Yoga\n** (2) Android YogaLayout\n** Which do you want to ship today? \033[0m" diff --git a/scripts/publish-snapshot.sh b/scripts/publish-snapshot.sh index 145322b7..02c45457 100755 --- a/scripts/publish-snapshot.sh +++ b/scripts/publish-snapshot.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash # # Deploy a SNAPSHOT JAR after every successful CI run To Sonatype. + +# +# 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 -e diff --git a/settings.gradle b/settings.gradle index 93d836ba..1c136f10 100644 --- a/settings.gradle +++ b/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. + */ + include ':yoga', ':yogacore', ':yoga-layout', ':yoga:proguard-annotations', ':libfb' project(':yoga').projectDir = file('java') project(':yoga:proguard-annotations').projectDir = file('java/proguard-annotations') diff --git a/tools/build_defs/oss/yoga_defs.bzl b/tools/build_defs/oss/yoga_defs.bzl index 5d717a86..6b3ac1d5 100644 --- a/tools/build_defs/oss/yoga_defs.bzl +++ b/tools/build_defs/oss/yoga_defs.bzl @@ -1,3 +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. +# """Provides macros for working with yoga library.""" YOGA_ROOTS = ["//..."] diff --git a/website/src/components/Playground/CodeComponentKit.js b/website/src/components/Playground/CodeComponentKit.js index 9dd71a2f..74cc2db2 100644 --- a/website/src/components/Playground/CodeComponentKit.js +++ b/website/src/components/Playground/CodeComponentKit.js @@ -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. + */ + // @flow import yoga from 'yoga-layout/dist/entry-browser'; import LayoutRecord from './LayoutRecord'; diff --git a/website/src/components/Playground/CodeGenerators.css b/website/src/components/Playground/CodeGenerators.css index 483e7ab3..261986d2 100644 --- a/website/src/components/Playground/CodeGenerators.css +++ b/website/src/components/Playground/CodeGenerators.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. + */ + .CodeGeneratorsTitle { display: flex; justify-content: space-between; diff --git a/website/src/components/Playground/URLShortener.css b/website/src/components/Playground/URLShortener.css index e319fb2b..fe3da49c 100644 --- a/website/src/components/Playground/URLShortener.css +++ b/website/src/components/Playground/URLShortener.css @@ -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. + */ + .URLShortener { } diff --git a/website/src/pages/playground/index.css b/website/src/pages/playground/index.css index b4f3e843..0ed0ad24 100644 --- a/website/src/pages/playground/index.css +++ b/website/src/pages/playground/index.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. + */ + .playground-page { display: flex; flex: 1; diff --git a/yogacore/build.gradle b/yogacore/build.gradle index c31d7294..122383b3 100644 --- a/yogacore/build.gradle +++ b/yogacore/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.library' android {