Move non-license comments out of license header

Summary: Changelog: [General] [Fixed] - License header cleanup

Reviewed By: cpojer

Differential Revision: D17749100

fbshipit-source-id: edca9c73a065e9fc311109cd6efeb1f75451a55a
This commit is contained in:
Andres Suarez
2019-10-15 20:08:07 -07:00
committed by Facebook Github Bot
parent fc80a51457
commit e1cfeaddd4
55 changed files with 80 additions and 104 deletions
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -4,15 +4,17 @@
* 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
*
* @copyright 2014-2015 Gaetan Renaudeau. MIT License.
* @emails oncall+react_native
* @flow
* @format
*/
/**
* BezierEasing - use bezier curve for transition easing function
* https://github.com/gre/bezier-easing
* @copyright 2014-2015 Gaetan Renaudeau. MIT License.
*/
'use strict';
const bezier = require('../bezier');
+5 -3
View File
@@ -4,11 +4,13 @@
* 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
*
* @flow strict
* @format
*/
/**
* BezierEasing - use bezier curve for transition easing function
* https://github.com/gre/bezier-easing
* @copyright 2014-2015 Gaëtan Renaudeau. MIT License.
*/
@@ -4,12 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* These don't actually exist anywhere in the code.
*
* @flow strict-local
* @format
*/
// These don't actually exist anywhere in the code.
'use strict';
import type {ModuleConfig} from '../NativeModules';
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -4,13 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* This is a controlled component version of RCTDatePickerIOS
*
* @format
* @flow strict-local
*/
// This is a controlled component version of RCTDatePickerIOS.
'use strict';
const RCTDatePickerNativeComponent = require('./RCTDatePickerNativeComponent');
@@ -4,12 +4,11 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* This is a controlled component version of RCTPickerIOS
*
* @format
*/
// This is a controlled component version of RCTPickerIOS.
'use strict';
module.exports = require('../UnimplementedViews/UnimplementedView');
+2 -3
View File
@@ -4,13 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* This is a controlled component version of RCTPickerIOS
*
* @format
* @flow
*/
// This is a controlled component version of RCTPickerIOS.
'use strict';
const RCTPickerNativeComponent = require('./RCTPickerNativeComponent');
@@ -4,15 +4,14 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* This class is responsible for coordinating the "focused"
* state for TextInputs. All calls relating to the keyboard
* should be funneled through here
*
* @format
* @flow strict-local
*/
// This class is responsible for coordinating the "focused" state for
// TextInputs. All calls relating to the keyboard should be funneled
// through here.
'use strict';
const Platform = require('../../Utilities/Platform');
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
+2 -3
View File
@@ -4,13 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* Resolves an asset into a `source` for `Image`.
*
* @format
* @flow
*/
// Resolves an asset into a `source` for `Image`.
'use strict';
const AssetRegistry = require('./AssetRegistry');
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
+2 -2
View File
@@ -4,12 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* Stub of Sample for Android.
*
* @format
* @flow
*/
// Stub of Sample for Android.
'use strict';
const warning = require('fbjs/lib/warning');
+2 -2
View File
@@ -4,12 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* Stub of Sample for Android.
*
* @format
* @flow strict-local
*/
// Stub of Sample for Android.
'use strict';
const NativeSample = require('../BatchedBridge/NativeModules').Sample;
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
+3 -3
View File
@@ -4,13 +4,13 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* On Apple TV, this implements back navigation using the TV remote's menu button.
* On iOS, this just implements a stub.
*
* @flow
* @format
*/
// On Apple TV, this implements back navigation using the TV remote's menu button.
// On iOS, this just implements a stub.
'use strict';
const Platform = require('./Platform');
+2 -3
View File
@@ -4,13 +4,12 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* This function dismisses the currently-open keyboard, if any
*
* @flow strict-local
* @format
*/
// This function dismisses the currently-open keyboard, if any.
'use strict';
const TextInputState = require('../Components/TextInput/TextInputState');
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -3,9 +3,10 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* This file was pulled from the facebook/rebound repository.
*/
// This file was pulled from the facebook/rebound repository.
package com.facebook.react.modules.core;
import android.os.Handler;
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
-1
View File
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
@@ -1,4 +1,3 @@
# coding: utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
+8 -7
View File
@@ -4,16 +4,17 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* Modified from https://raw.githubusercontent.com/flow-typed/flow-typed/master/definitions/npm/jest_v23.x.x/flow_v0.39.x-/jest_v23.x.x.js
* List of modifications:
* - fix some [] -> Array lint warnings
* - make it.each/describe.each take $ReadOnlyArray instead of Array<mixed>
* - added definition for `isolateModules`
*
* TODO(T35016336) remove the .each modifications if flow-typed adopts them
* @format
*/
// Modified from https://raw.githubusercontent.com/flow-typed/flow-typed/master/definitions/npm/jest_v23.x.x/flow_v0.39.x-/jest_v23.x.x.js
// List of modifications:
// - fix some [] -> Array lint warnings
// - make it.each/describe.each take $ReadOnlyArray instead of Array<mixed>
// - added definition for `isolateModules`
//
// TODO(T35016336) remove the .each modifications if flow-typed adopts them
type JestMockFn<TArguments: $ReadOnlyArray<mixed>, TReturn> = {|
(...args: TArguments): TReturn,
/**
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script should be run from the react-native root
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
+21 -18
View File
@@ -4,27 +4,30 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* Used in run-ci-e2e-test.js and executed in Circle CI.
* E2e test that verifies that init app can be installed, compiled, started and Hot Module reloading and Chrome debugging work.
* For other examples of appium refer to: https://github.com/appium/sample-code/tree/master/sample-code/examples/node and
* https://www.npmjs.com/package/wd-android
*
*
* To set up:
* - npm install --save-dev appium@1.11.1 mocha@2.4.5 wd@1.11.1 colors@1.0.3 pretty-data2@0.40.1
* - cp <this file> <to app installation path>
* - keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
*
* To run this test:
* - npm start
* - node node_modules/.bin/appium
* - (cd android && ./gradlew :app:copyDownloadableDepsToLibs)
* - react-native run-android
* - node ../node_modules/.bin/_mocha ../android-e2e-test.js
*
* @format
*/
// Used in run-ci-e2e-test.js and executed in Circle CI.
//
// E2e test that verifies that init app can be installed, compiled, started and
// Hot Module reloading and Chrome debugging work.
//
// For other examples of appium refer to:
// https://github.com/appium/sample-code/tree/master/sample-code/examples/node and
// https://www.npmjs.com/package/wd-android
//
// To set up:
// - npm install --save-dev appium@1.11.1 mocha@2.4.5 wd@1.11.1 colors@1.0.3 pretty-data2@0.40.1
// - cp <this file> <to app installation path>
// - keytool -genkey -v -keystore android/app/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
//
// To run this test:
// - npm start
// - node node_modules/.bin/appium
// - (cd android && ./gradlew :app:copyDownloadableDepsToLibs)
// - react-native run-android
// - node ../node_modules/.bin/_mocha ../android-e2e-test.js
/* eslint-env mocha */
'use strict';
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# inspired by https://github.com/Originate/guide/blob/master/android/guide/Continuous%20Integration.md
# shellcheck disable=SC1091
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script collects the "core" component schemas used by fabric
# then uses react-native-codegen to generate the component headers
# to a location that the podspecs expect.
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Script used to run iOS tests.
# If no arguments are passed to the script, it will only compile
# the RNTester.
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Bundle React Native app's code and image assets.
# This script is supposed to be invoked as part of Xcode build process
# and relies on environment variables (including PWD) set by Xcode
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Runs an Android emulator locally.
# If there already is a running emulator, this just uses that.
# The only reason to use this config is that it represents a known-good
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Runs all Android integration tests locally.
# See http://facebook.github.io/react-native/docs/testing.html
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Runs all Android unit tests locally.
# See http://facebook.github.io/react-native/docs/testing.html
@@ -3,10 +3,10 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# 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
#
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
# clear the logs
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script validates that the Android environment is set up to run
# tests on a device or emulator (as opposed to a plain Java environment).
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script validates that the Android SDK is installed correctly.
# This means setting ANDROID_HOME and adding its subdirectories to PATH.
# If the Android SDK is not installed correctly, this script exits
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script validates that Android is set up correctly for the
# testing environment.
#
+1 -1
View File
@@ -3,7 +3,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This script validates that iOS is set up correctly for the
# testing environment.
#