Skip to content

Commit

Permalink
Move non-license comments out of license header
Browse files Browse the repository at this point in the history
Summary: Changelog: [General] [Fixed] - License header cleanup

Reviewed By: cpojer

Differential Revision: D17749100

fbshipit-source-id: edca9c73a065e9fc311109cd6efeb1f75451a55a
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 16, 2019
1 parent fc80a51 commit e1cfead
Show file tree
Hide file tree
Showing 55 changed files with 80 additions and 104 deletions.
1 change: 0 additions & 1 deletion Libraries/ART/React-ART.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/ActionSheetIOS/React-RCTActionSheet.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 6 additions & 4 deletions Libraries/Animated/src/__tests__/bezier-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
8 changes: 5 additions & 3 deletions Libraries/Animated/src/bezier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down
4 changes: 2 additions & 2 deletions Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion Libraries/Blob/React-RCTBlob.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions Libraries/Components/DatePicker/DatePickerIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 2 additions & 3 deletions Libraries/Components/Picker/PickerIOS.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
5 changes: 2 additions & 3 deletions Libraries/Components/Picker/PickerIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
9 changes: 4 additions & 5 deletions Libraries/Components/TextInput/TextInputState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion Libraries/FBLazyVector/FBLazyVector.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/FBReactNativeSpec/FBReactNativeSpec.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/Image/React-RCTImage.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions Libraries/Image/resolveAssetSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion Libraries/LinkingIOS/React-RCTLinking.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/NativeAnimation/React-RCTAnimation.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/Network/React-RCTNetwork.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/RCTRequired/RCTRequired.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Sample/Sample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Sample/Sample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Libraries/Settings/React-RCTSettings.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/Text/React-RCTText.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion Libraries/TypeSafety/RCTTypeSafety.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions Libraries/Utilities/BackHandler.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 2 additions & 3 deletions Libraries/Utilities/dismissKeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion Libraries/Vibration/React-RCTVibration.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion RNTester/RCTTest/React-RCTTest.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion React-Core.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion React.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion React/CoreModules/React-CoreModules.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion React/React-RCTFabric.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/React-Fabric.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/ReactCommon.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/cxxreact/React-cxxreact.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/fabric/graphics/React-graphics.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/jsi/React-jsi.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/jsiexecutor/React-jsiexecutor.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/jsinspector/React-jsinspector.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 8 additions & 7 deletions flow/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
/**
Expand Down
2 changes: 1 addition & 1 deletion runXcodeTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading

0 comments on commit e1cfead

Please sign in to comment.