From 7e09db40b25561e79d0aac5d3925acf7e1b3e3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Thu, 8 Feb 2018 17:10:29 -0800 Subject: [PATCH] Restore copyright header Summary: Restoring the copyright header on some files, in order to fix an internal lint failure that is raised whenever these files are edited on open source. Closes https://github.com/facebook/react-native/pull/17912 Differential Revision: D6938189 Pulled By: hramos fbshipit-source-id: 6447d8ad6d7ecce0ef5f1821f63e44957bbf6d15 --- link/__tests__/android/applyPatch.spec.js | 2 +- link/__tests__/android/isInstalled.spec.js | 2 +- link/__tests__/android/makeBuildPatch.spec.js | 2 +- link/__tests__/android/makeImportPatch.spec.js | 2 +- link/__tests__/android/makePackagePatch.spec.js | 2 +- link/__tests__/android/makeSettingsPatch.spec.js | 2 +- link/__tests__/android/makeStringsPatch.spec.js | 2 +- link/__tests__/getDependencyConfig.spec.js | 2 +- link/__tests__/getProjectDependencies.spec.js | 2 +- link/__tests__/groupFilesByType.spec.js | 2 +- link/__tests__/ios/addFileToProject.spec.js | 2 +- link/__tests__/ios/addProjectToLibraries.spec.js | 2 +- link/__tests__/ios/addSharedLibraries.spec.js | 2 +- link/__tests__/ios/createGroup.spec.js | 2 +- link/__tests__/ios/getBuildProperty.spec.js | 2 +- link/__tests__/ios/getGroup.spec.js | 2 +- link/__tests__/ios/getHeaderSearchPath.spec.js | 2 +- link/__tests__/ios/getHeadersInFolder.spec.js | 2 +- link/__tests__/ios/getPlist.spec.js | 2 +- link/__tests__/ios/getPlistPath.spec.js | 2 +- link/__tests__/ios/getProducts.spec.js | 2 +- link/__tests__/ios/getTargets.spec.js | 2 +- link/__tests__/ios/hasLibraryImported.spec.js | 2 +- link/__tests__/ios/isInstalled.spec.js | 2 +- link/__tests__/ios/mapHeaderSearchPaths.spec.js | 2 +- link/__tests__/ios/removeProjectFromLibraries.js | 2 +- link/__tests__/ios/removeProjectFromProject.spec.js | 2 +- link/__tests__/ios/removeSharedLibrary.spec.js | 2 +- link/__tests__/ios/writePlist.spec.js | 2 +- link/__tests__/link.spec.js | 2 +- link/__tests__/pods/findLineToAddPod.spec.js | 2 +- link/__tests__/pods/findMarkedLinesInPodfile.spec.js | 2 +- link/__tests__/pods/findPodTargetLine.spec.js | 2 +- link/__tests__/pods/isInstalled.spec.js | 2 +- link/__tests__/pods/removePodEntry.spec.js | 2 +- link/__tests__/promiseWaterfall.spec.js | 2 +- link/android/copyAssets.js | 9 +++++++++ link/android/fs.js | 9 +++++++++ link/android/isInstalled.js | 9 +++++++++ link/android/patches/applyParams.js | 2 +- link/android/patches/applyPatch.js | 9 +++++++++ link/android/patches/makeBuildPatch.js | 9 +++++++++ link/android/patches/makeImportPatch.js | 9 +++++++++ link/android/patches/makePackagePatch.js | 9 +++++++++ link/android/patches/makeSettingsPatch.js | 9 +++++++++ link/android/patches/makeStringsPatch.js | 9 +++++++++ link/android/patches/revokePatch.js | 9 +++++++++ link/android/registerNativeModule.js | 9 +++++++++ link/android/unlinkAssets.js | 9 +++++++++ link/android/unregisterNativeModule.js | 9 +++++++++ link/commandStub.js | 9 +++++++++ link/getDependencyConfig.js | 9 +++++++++ link/getProjectDependencies.js | 9 +++++++++ link/groupFilesByType.js | 9 +++++++++ link/ios/addFileToProject.js | 9 +++++++++ link/ios/addProjectToLibraries.js | 9 +++++++++ link/ios/addSharedLibraries.js | 9 +++++++++ link/ios/addToHeaderSearchPaths.js | 9 +++++++++ link/ios/copyAssets.js | 9 +++++++++ link/ios/createGroup.js | 9 +++++++++ link/ios/createGroupWithMessage.js | 9 +++++++++ link/ios/getBuildProperty.js | 9 +++++++++ link/ios/getGroup.js | 9 +++++++++ link/ios/getHeaderSearchPath.js | 9 +++++++++ link/ios/getHeadersInFolder.js | 9 +++++++++ link/ios/getPlist.js | 9 +++++++++ link/ios/getPlistPath.js | 9 +++++++++ link/ios/getProducts.js | 9 +++++++++ link/ios/getTargets.js | 9 +++++++++ link/ios/hasLibraryImported.js | 9 +++++++++ link/ios/isInstalled.js | 9 +++++++++ link/ios/mapHeaderSearchPaths.js | 9 +++++++++ link/ios/registerNativeModule.js | 9 +++++++++ link/ios/removeFromHeaderSearchPaths.js | 9 +++++++++ link/ios/removeFromPbxItemContainerProxySection.js | 9 +++++++++ link/ios/removeFromPbxReferenceProxySection.js | 9 +++++++++ link/ios/removeFromProjectReferences.js | 9 +++++++++ link/ios/removeFromStaticLibraries.js | 9 +++++++++ link/ios/removeProductGroup.js | 9 +++++++++ link/ios/removeProjectFromLibraries.js | 9 +++++++++ link/ios/removeProjectFromProject.js | 9 +++++++++ link/ios/removeSharedLibraries.js | 9 +++++++++ link/ios/unlinkAssets.js | 9 +++++++++ link/ios/unregisterNativeModule.js | 9 +++++++++ link/ios/writePlist.js | 9 +++++++++ link/link.js | 2 +- link/pods/addPodEntry.js | 9 +++++++++ link/pods/findLineToAddPod.js | 9 +++++++++ link/pods/findMarkedLinesInPodfile.js | 9 +++++++++ link/pods/findPodTargetLine.js | 9 +++++++++ link/pods/isInstalled.js | 9 +++++++++ link/pods/readPodfile.js | 9 +++++++++ link/pods/registerNativeModule.js | 9 +++++++++ link/pods/removePodEntry.js | 9 +++++++++ link/pods/savePodFile.js | 9 +++++++++ link/pods/unregisterNativeModule.js | 9 +++++++++ link/pollParams.js | 9 +++++++++ link/promiseWaterfall.js | 9 +++++++++ link/promisify.js | 9 +++++++++ link/unlink.js | 9 +++++++++ 100 files changed, 596 insertions(+), 38 deletions(-) diff --git a/link/__tests__/android/applyPatch.spec.js b/link/__tests__/android/applyPatch.spec.js index b8af368cc..000743f14 100644 --- a/link/__tests__/android/applyPatch.spec.js +++ b/link/__tests__/android/applyPatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/isInstalled.spec.js b/link/__tests__/android/isInstalled.spec.js index 025563365..f87f0d14b 100644 --- a/link/__tests__/android/isInstalled.spec.js +++ b/link/__tests__/android/isInstalled.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/makeBuildPatch.spec.js b/link/__tests__/android/makeBuildPatch.spec.js index 61eeb55ab..e731bc4e4 100644 --- a/link/__tests__/android/makeBuildPatch.spec.js +++ b/link/__tests__/android/makeBuildPatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/makeImportPatch.spec.js b/link/__tests__/android/makeImportPatch.spec.js index 805679188..b41775c8c 100644 --- a/link/__tests__/android/makeImportPatch.spec.js +++ b/link/__tests__/android/makeImportPatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/makePackagePatch.spec.js b/link/__tests__/android/makePackagePatch.spec.js index 68496607f..8407fe6ed 100644 --- a/link/__tests__/android/makePackagePatch.spec.js +++ b/link/__tests__/android/makePackagePatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/makeSettingsPatch.spec.js b/link/__tests__/android/makeSettingsPatch.spec.js index 4782010cf..1ca568121 100644 --- a/link/__tests__/android/makeSettingsPatch.spec.js +++ b/link/__tests__/android/makeSettingsPatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/android/makeStringsPatch.spec.js b/link/__tests__/android/makeStringsPatch.spec.js index 6a59c11bd..4232ba789 100644 --- a/link/__tests__/android/makeStringsPatch.spec.js +++ b/link/__tests__/android/makeStringsPatch.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/getDependencyConfig.spec.js b/link/__tests__/getDependencyConfig.spec.js index 827d369ff..87cf12755 100644 --- a/link/__tests__/getDependencyConfig.spec.js +++ b/link/__tests__/getDependencyConfig.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/getProjectDependencies.spec.js b/link/__tests__/getProjectDependencies.spec.js index 2c05bc896..28ad2a61a 100644 --- a/link/__tests__/getProjectDependencies.spec.js +++ b/link/__tests__/getProjectDependencies.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/groupFilesByType.spec.js b/link/__tests__/groupFilesByType.spec.js index c62b6f52d..2154583d5 100644 --- a/link/__tests__/groupFilesByType.spec.js +++ b/link/__tests__/groupFilesByType.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/addFileToProject.spec.js b/link/__tests__/ios/addFileToProject.spec.js index 829494689..335e53e37 100644 --- a/link/__tests__/ios/addFileToProject.spec.js +++ b/link/__tests__/ios/addFileToProject.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/addProjectToLibraries.spec.js b/link/__tests__/ios/addProjectToLibraries.spec.js index d070150e2..4c7858f4e 100644 --- a/link/__tests__/ios/addProjectToLibraries.spec.js +++ b/link/__tests__/ios/addProjectToLibraries.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/addSharedLibraries.spec.js b/link/__tests__/ios/addSharedLibraries.spec.js index 5a63d8e82..58bff8c6a 100644 --- a/link/__tests__/ios/addSharedLibraries.spec.js +++ b/link/__tests__/ios/addSharedLibraries.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/createGroup.spec.js b/link/__tests__/ios/createGroup.spec.js index 66e88154c..5f1bf4424 100644 --- a/link/__tests__/ios/createGroup.spec.js +++ b/link/__tests__/ios/createGroup.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getBuildProperty.spec.js b/link/__tests__/ios/getBuildProperty.spec.js index f1cc8abef..fbe9fd49b 100644 --- a/link/__tests__/ios/getBuildProperty.spec.js +++ b/link/__tests__/ios/getBuildProperty.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getGroup.spec.js b/link/__tests__/ios/getGroup.spec.js index dc018c608..9569a998f 100644 --- a/link/__tests__/ios/getGroup.spec.js +++ b/link/__tests__/ios/getGroup.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getHeaderSearchPath.spec.js b/link/__tests__/ios/getHeaderSearchPath.spec.js index d9da73354..e63de35cb 100644 --- a/link/__tests__/ios/getHeaderSearchPath.spec.js +++ b/link/__tests__/ios/getHeaderSearchPath.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getHeadersInFolder.spec.js b/link/__tests__/ios/getHeadersInFolder.spec.js index 33051b177..8d2830ed8 100644 --- a/link/__tests__/ios/getHeadersInFolder.spec.js +++ b/link/__tests__/ios/getHeadersInFolder.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getPlist.spec.js b/link/__tests__/ios/getPlist.spec.js index 0c0b2074b..df900c192 100644 --- a/link/__tests__/ios/getPlist.spec.js +++ b/link/__tests__/ios/getPlist.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getPlistPath.spec.js b/link/__tests__/ios/getPlistPath.spec.js index 4d49c5ddd..783cbb26c 100644 --- a/link/__tests__/ios/getPlistPath.spec.js +++ b/link/__tests__/ios/getPlistPath.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getProducts.spec.js b/link/__tests__/ios/getProducts.spec.js index d3cab43e3..93bc0fcca 100644 --- a/link/__tests__/ios/getProducts.spec.js +++ b/link/__tests__/ios/getProducts.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/getTargets.spec.js b/link/__tests__/ios/getTargets.spec.js index 2eed13dc9..77bdf39bc 100644 --- a/link/__tests__/ios/getTargets.spec.js +++ b/link/__tests__/ios/getTargets.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/hasLibraryImported.spec.js b/link/__tests__/ios/hasLibraryImported.spec.js index 7c76656fb..8882ac2f8 100644 --- a/link/__tests__/ios/hasLibraryImported.spec.js +++ b/link/__tests__/ios/hasLibraryImported.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/isInstalled.spec.js b/link/__tests__/ios/isInstalled.spec.js index 168ba1faa..45c9a05d2 100644 --- a/link/__tests__/ios/isInstalled.spec.js +++ b/link/__tests__/ios/isInstalled.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/mapHeaderSearchPaths.spec.js b/link/__tests__/ios/mapHeaderSearchPaths.spec.js index 688f0557e..0f2b743d2 100644 --- a/link/__tests__/ios/mapHeaderSearchPaths.spec.js +++ b/link/__tests__/ios/mapHeaderSearchPaths.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/removeProjectFromLibraries.js b/link/__tests__/ios/removeProjectFromLibraries.js index d40d279c5..5328291a1 100644 --- a/link/__tests__/ios/removeProjectFromLibraries.js +++ b/link/__tests__/ios/removeProjectFromLibraries.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/removeProjectFromProject.spec.js b/link/__tests__/ios/removeProjectFromProject.spec.js index dc1c25af4..adb4eac7f 100644 --- a/link/__tests__/ios/removeProjectFromProject.spec.js +++ b/link/__tests__/ios/removeProjectFromProject.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/removeSharedLibrary.spec.js b/link/__tests__/ios/removeSharedLibrary.spec.js index 5d7cf39e7..ece8b176e 100644 --- a/link/__tests__/ios/removeSharedLibrary.spec.js +++ b/link/__tests__/ios/removeSharedLibrary.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/ios/writePlist.spec.js b/link/__tests__/ios/writePlist.spec.js index e1f83bdb3..29ea0bfd7 100644 --- a/link/__tests__/ios/writePlist.spec.js +++ b/link/__tests__/ios/writePlist.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/link.spec.js b/link/__tests__/link.spec.js index aaad000e9..b3470563d 100644 --- a/link/__tests__/link.spec.js +++ b/link/__tests__/link.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/pods/findLineToAddPod.spec.js b/link/__tests__/pods/findLineToAddPod.spec.js index 0dcd59094..3940136a9 100644 --- a/link/__tests__/pods/findLineToAddPod.spec.js +++ b/link/__tests__/pods/findLineToAddPod.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/pods/findMarkedLinesInPodfile.spec.js b/link/__tests__/pods/findMarkedLinesInPodfile.spec.js index 9c74845c1..9e2a8bed8 100644 --- a/link/__tests__/pods/findMarkedLinesInPodfile.spec.js +++ b/link/__tests__/pods/findMarkedLinesInPodfile.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/pods/findPodTargetLine.spec.js b/link/__tests__/pods/findPodTargetLine.spec.js index 2839609e3..1d382315d 100644 --- a/link/__tests__/pods/findPodTargetLine.spec.js +++ b/link/__tests__/pods/findPodTargetLine.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/pods/isInstalled.spec.js b/link/__tests__/pods/isInstalled.spec.js index bb68bc501..1060baa45 100644 --- a/link/__tests__/pods/isInstalled.spec.js +++ b/link/__tests__/pods/isInstalled.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/pods/removePodEntry.spec.js b/link/__tests__/pods/removePodEntry.spec.js index 68ba895b2..aa8fd5a26 100644 --- a/link/__tests__/pods/removePodEntry.spec.js +++ b/link/__tests__/pods/removePodEntry.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/__tests__/promiseWaterfall.spec.js b/link/__tests__/promiseWaterfall.spec.js index 1d1f38ae5..ca1d30db1 100644 --- a/link/__tests__/promiseWaterfall.spec.js +++ b/link/__tests__/promiseWaterfall.spec.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/android/copyAssets.js b/link/android/copyAssets.js index 709bf0b95..0f41a301c 100644 --- a/link/android/copyAssets.js +++ b/link/android/copyAssets.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs-extra'); const path = require('path'); const groupFilesByType = require('../groupFilesByType'); diff --git a/link/android/fs.js b/link/android/fs.js index faa31d671..b485a9ebf 100644 --- a/link/android/fs.js +++ b/link/android/fs.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs-extra'); exports.readFile = (file) => diff --git a/link/android/isInstalled.js b/link/android/isInstalled.js index 16c9194a5..c191c0f68 100644 --- a/link/android/isInstalled.js +++ b/link/android/isInstalled.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs'); const makeBuildPatch = require('./patches/makeBuildPatch'); diff --git a/link/android/patches/applyParams.js b/link/android/patches/applyParams.js index 21c1e9545..4574399d2 100644 --- a/link/android/patches/applyParams.js +++ b/link/android/patches/applyParams.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/android/patches/applyPatch.js b/link/android/patches/applyPatch.js index 67337d41a..bc6396602 100644 --- a/link/android/patches/applyPatch.js +++ b/link/android/patches/applyPatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs'); module.exports = function applyPatch(file, patch) { diff --git a/link/android/patches/makeBuildPatch.js b/link/android/patches/makeBuildPatch.js index b27b16829..473ab291c 100644 --- a/link/android/patches/makeBuildPatch.js +++ b/link/android/patches/makeBuildPatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = function makeBuildPatch(name) { const installPattern = new RegExp( `\\s{4}(compile)(\\(|\\s)(project)\\(\\\':${name}\\\'\\)(\\)|\\s)` diff --git a/link/android/patches/makeImportPatch.js b/link/android/patches/makeImportPatch.js index deee6dfec..219242e6d 100644 --- a/link/android/patches/makeImportPatch.js +++ b/link/android/patches/makeImportPatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = function makeImportPatch(packageImportPath) { return { pattern: 'import com.facebook.react.ReactApplication;', diff --git a/link/android/patches/makePackagePatch.js b/link/android/patches/makePackagePatch.js index e1a5bec5d..7789cbc4d 100644 --- a/link/android/patches/makePackagePatch.js +++ b/link/android/patches/makePackagePatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const applyParams = require('./applyParams'); module.exports = function makePackagePatch(packageInstance, params, prefix) { diff --git a/link/android/patches/makeSettingsPatch.js b/link/android/patches/makeSettingsPatch.js index d4c2e57f0..5b0983a93 100644 --- a/link/android/patches/makeSettingsPatch.js +++ b/link/android/patches/makeSettingsPatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const path = require('path'); const isWin = process.platform === 'win32'; diff --git a/link/android/patches/makeStringsPatch.js b/link/android/patches/makeStringsPatch.js index b90596359..a8a2981a1 100644 --- a/link/android/patches/makeStringsPatch.js +++ b/link/android/patches/makeStringsPatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const toCamelCase = require('lodash').camelCase; module.exports = function makeStringsPatch(params, prefix) { diff --git a/link/android/patches/revokePatch.js b/link/android/patches/revokePatch.js index 8905923b1..037e2a130 100644 --- a/link/android/patches/revokePatch.js +++ b/link/android/patches/revokePatch.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs'); module.exports = function revokePatch(file, patch) { diff --git a/link/android/registerNativeModule.js b/link/android/registerNativeModule.js index db31bfdce..f6d37b551 100644 --- a/link/android/registerNativeModule.js +++ b/link/android/registerNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const applyPatch = require('./patches/applyPatch'); const makeStringsPatch = require('./patches/makeStringsPatch'); const makeSettingsPatch = require('./patches/makeSettingsPatch'); diff --git a/link/android/unlinkAssets.js b/link/android/unlinkAssets.js index 1cc0974d3..6c8b02191 100644 --- a/link/android/unlinkAssets.js +++ b/link/android/unlinkAssets.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs-extra'); const path = require('path'); const groupFilesByType = require('../groupFilesByType'); diff --git a/link/android/unregisterNativeModule.js b/link/android/unregisterNativeModule.js index f3b84c811..51eb15785 100644 --- a/link/android/unregisterNativeModule.js +++ b/link/android/unregisterNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs'); const toCamelCase = require('lodash').camelCase; diff --git a/link/commandStub.js b/link/commandStub.js index ab4718af9..7529fe4ed 100644 --- a/link/commandStub.js +++ b/link/commandStub.js @@ -1 +1,10 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = (cb) => cb(); diff --git a/link/getDependencyConfig.js b/link/getDependencyConfig.js index 597be6aab..751f746a8 100644 --- a/link/getDependencyConfig.js +++ b/link/getDependencyConfig.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given an array of dependencies - it returns their RNPM config * if they were valid. diff --git a/link/getProjectDependencies.js b/link/getProjectDependencies.js index 189739537..1d670574e 100644 --- a/link/getProjectDependencies.js +++ b/link/getProjectDependencies.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const path = require('path'); /** diff --git a/link/groupFilesByType.js b/link/groupFilesByType.js index 5dc692e1c..0a5dce030 100644 --- a/link/groupFilesByType.js +++ b/link/groupFilesByType.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const groupBy = require('lodash').groupBy; const mime = require('mime'); diff --git a/link/ios/addFileToProject.js b/link/ios/addFileToProject.js index eab1d1253..3ed3340af 100644 --- a/link/ios/addFileToProject.js +++ b/link/ios/addFileToProject.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const PbxFile = require('xcode/lib/pbxFile'); /** diff --git a/link/ios/addProjectToLibraries.js b/link/ios/addProjectToLibraries.js index 4e65ef30f..d79f643aa 100644 --- a/link/ios/addProjectToLibraries.js +++ b/link/ios/addProjectToLibraries.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given an array of xcodeproj libraries and pbxFile, * it appends it to that group diff --git a/link/ios/addSharedLibraries.js b/link/ios/addSharedLibraries.js index 82cf58ba8..ad29ef9a2 100644 --- a/link/ios/addSharedLibraries.js +++ b/link/ios/addSharedLibraries.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const createGroupWithMessage = require('./createGroupWithMessage'); module.exports = function addSharedLibraries(project, libraries) { diff --git a/link/ios/addToHeaderSearchPaths.js b/link/ios/addToHeaderSearchPaths.js index 1eff6055e..b3d3e56e2 100644 --- a/link/ios/addToHeaderSearchPaths.js +++ b/link/ios/addToHeaderSearchPaths.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const mapHeaderSearchPaths = require('./mapHeaderSearchPaths'); module.exports = function addToHeaderSearchPaths(project, path) { diff --git a/link/ios/copyAssets.js b/link/ios/copyAssets.js index f8cd09198..dec1cb0c9 100644 --- a/link/ios/copyAssets.js +++ b/link/ios/copyAssets.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs-extra'); const path = require('path'); const xcode = require('xcode'); diff --git a/link/ios/createGroup.js b/link/ios/createGroup.js index aba805d76..586e933b8 100644 --- a/link/ios/createGroup.js +++ b/link/ios/createGroup.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const getGroup = require('./getGroup'); const hasGroup = (pbxGroup, name) => pbxGroup.children.find(group => group.comment === name); diff --git a/link/ios/createGroupWithMessage.js b/link/ios/createGroupWithMessage.js index 78f077c1f..e78281300 100644 --- a/link/ios/createGroupWithMessage.js +++ b/link/ios/createGroupWithMessage.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const log = require('npmlog'); const createGroup = require('./createGroup'); diff --git a/link/ios/getBuildProperty.js b/link/ios/getBuildProperty.js index 181a74ec9..6fc82fe49 100644 --- a/link/ios/getBuildProperty.js +++ b/link/ios/getBuildProperty.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Gets build property from the main target build section * diff --git a/link/ios/getGroup.js b/link/ios/getGroup.js index ab24df8d3..dd64332a4 100644 --- a/link/ios/getGroup.js +++ b/link/ios/getGroup.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const getFirstProject = (project) => project.getFirstProject().firstProject; const findGroup = (group, name) => group.children.find(group => group.comment === name); diff --git a/link/ios/getHeaderSearchPath.js b/link/ios/getHeaderSearchPath.js index 750c06091..9857bb62f 100644 --- a/link/ios/getHeaderSearchPath.js +++ b/link/ios/getHeaderSearchPath.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const path = require('path'); const union = require('lodash').union; const last = require('lodash').last; diff --git a/link/ios/getHeadersInFolder.js b/link/ios/getHeadersInFolder.js index 7dc954db5..b0426f01a 100644 --- a/link/ios/getHeadersInFolder.js +++ b/link/ios/getHeadersInFolder.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const glob = require('glob'); const path = require('path'); diff --git a/link/ios/getPlist.js b/link/ios/getPlist.js index 9190aa345..adc530310 100644 --- a/link/ios/getPlist.js +++ b/link/ios/getPlist.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const plistParser = require('plist'); const getPlistPath = require('./getPlistPath'); const fs = require('fs'); diff --git a/link/ios/getPlistPath.js b/link/ios/getPlistPath.js index 44b810ab1..a82d086fd 100644 --- a/link/ios/getPlistPath.js +++ b/link/ios/getPlistPath.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const path = require('path'); const getBuildProperty = require('./getBuildProperty'); diff --git a/link/ios/getProducts.js b/link/ios/getProducts.js index b51492734..590ff8314 100644 --- a/link/ios/getProducts.js +++ b/link/ios/getProducts.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given xcodeproj it returns list of products ending with * .a extension, so that we know what elements add to target diff --git a/link/ios/getTargets.js b/link/ios/getTargets.js index af0ca0779..b2441e9ac 100644 --- a/link/ios/getTargets.js +++ b/link/ios/getTargets.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given xcodeproj it returns list of targets */ diff --git a/link/ios/hasLibraryImported.js b/link/ios/hasLibraryImported.js index b38030934..077591a7c 100644 --- a/link/ios/hasLibraryImported.js +++ b/link/ios/hasLibraryImported.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given an array of libraries already imported and packageName that will be * added, returns true or false depending on whether the library is already linked diff --git a/link/ios/isInstalled.js b/link/ios/isInstalled.js index 81b1fff01..095925688 100644 --- a/link/ios/isInstalled.js +++ b/link/ios/isInstalled.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const xcode = require('xcode'); const getGroup = require('./getGroup'); const hasLibraryImported = require('./hasLibraryImported'); diff --git a/link/ios/mapHeaderSearchPaths.js b/link/ios/mapHeaderSearchPaths.js index b173e3ac5..f31c2d150 100644 --- a/link/ios/mapHeaderSearchPaths.js +++ b/link/ios/mapHeaderSearchPaths.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given Xcode project and path, iterate over all build configurations * and execute func with HEADER_SEARCH_PATHS from current section diff --git a/link/ios/registerNativeModule.js b/link/ios/registerNativeModule.js index 85411ab34..74b828548 100644 --- a/link/ios/registerNativeModule.js +++ b/link/ios/registerNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const xcode = require('xcode'); const fs = require('fs'); const path = require('path'); diff --git a/link/ios/removeFromHeaderSearchPaths.js b/link/ios/removeFromHeaderSearchPaths.js index 07259f1d2..9dbe99e36 100644 --- a/link/ios/removeFromHeaderSearchPaths.js +++ b/link/ios/removeFromHeaderSearchPaths.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const mapHeaderSearchPaths = require('./mapHeaderSearchPaths'); /** diff --git a/link/ios/removeFromPbxItemContainerProxySection.js b/link/ios/removeFromPbxItemContainerProxySection.js index e0a6a84a7..ee5e31777 100644 --- a/link/ios/removeFromPbxItemContainerProxySection.js +++ b/link/ios/removeFromPbxItemContainerProxySection.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * For all files that are created and referenced from another `.xcodeproj` - * a new PBXItemContainerProxy is created that contains `containerPortal` value diff --git a/link/ios/removeFromPbxReferenceProxySection.js b/link/ios/removeFromPbxReferenceProxySection.js index b867964ff..09561896e 100644 --- a/link/ios/removeFromPbxReferenceProxySection.js +++ b/link/ios/removeFromPbxReferenceProxySection.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Every file added to the project from another project is attached to * `PBXItemContainerProxy` through `PBXReferenceProxy`. diff --git a/link/ios/removeFromProjectReferences.js b/link/ios/removeFromProjectReferences.js index 652b18929..b0c9eada9 100644 --- a/link/ios/removeFromProjectReferences.js +++ b/link/ios/removeFromProjectReferences.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * For each file (.xcodeproj), there's an entry in `projectReferences` created * that has two entries - `ProjectRef` - reference to a file.uuid and diff --git a/link/ios/removeFromStaticLibraries.js b/link/ios/removeFromStaticLibraries.js index 2a66fa44a..861d319f1 100644 --- a/link/ios/removeFromStaticLibraries.js +++ b/link/ios/removeFromStaticLibraries.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const PbxFile = require('xcode/lib/pbxFile'); const removeFromPbxReferenceProxySection = require('./removeFromPbxReferenceProxySection'); diff --git a/link/ios/removeProductGroup.js b/link/ios/removeProductGroup.js index 186aed7f7..6326540b6 100644 --- a/link/ios/removeProductGroup.js +++ b/link/ios/removeProductGroup.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = function removeProductGroup(project, productGroupId) { const section = project.hash.project.objects.PBXGroup; diff --git a/link/ios/removeProjectFromLibraries.js b/link/ios/removeProjectFromLibraries.js index 20965a67e..48b356c81 100644 --- a/link/ios/removeProjectFromLibraries.js +++ b/link/ios/removeProjectFromLibraries.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given an array of xcodeproj libraries and pbxFile, * it removes it from that group by comparing basenames diff --git a/link/ios/removeProjectFromProject.js b/link/ios/removeProjectFromProject.js index 3a3f173db..e9f2379a0 100644 --- a/link/ios/removeProjectFromProject.js +++ b/link/ios/removeProjectFromProject.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const PbxFile = require('xcode/lib/pbxFile'); const removeFromPbxItemContainerProxySection = require('./removeFromPbxItemContainerProxySection'); const removeFromProjectReferences = require('./removeFromProjectReferences'); diff --git a/link/ios/removeSharedLibraries.js b/link/ios/removeSharedLibraries.js index 1150e2383..6da91f119 100644 --- a/link/ios/removeSharedLibraries.js +++ b/link/ios/removeSharedLibraries.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = function removeSharedLibraries(project, libraries) { if (!libraries.length) { return; diff --git a/link/ios/unlinkAssets.js b/link/ios/unlinkAssets.js index c80e793a7..083519e38 100644 --- a/link/ios/unlinkAssets.js +++ b/link/ios/unlinkAssets.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const fs = require('fs-extra'); const path = require('path'); const xcode = require('xcode'); diff --git a/link/ios/unregisterNativeModule.js b/link/ios/unregisterNativeModule.js index af9179919..8f09484cf 100644 --- a/link/ios/unregisterNativeModule.js +++ b/link/ios/unregisterNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const xcode = require('xcode'); const path = require('path'); const fs = require('fs'); diff --git a/link/ios/writePlist.js b/link/ios/writePlist.js index e8fe6715a..c7d424fcd 100644 --- a/link/ios/writePlist.js +++ b/link/ios/writePlist.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const plistParser = require('plist'); const getPlistPath = require('./getPlistPath'); const fs = require('fs'); diff --git a/link/link.js b/link/link.js index b38faa9dd..ac0aba2a6 100644 --- a/link/link.js +++ b/link/link.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the diff --git a/link/pods/addPodEntry.js b/link/pods/addPodEntry.js index 2316f260a..bc9e2ced1 100644 --- a/link/pods/addPodEntry.js +++ b/link/pods/addPodEntry.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; module.exports = function addPodEntry(podLines, linesToAddEntry, podName, nodePath) { diff --git a/link/pods/findLineToAddPod.js b/link/pods/findLineToAddPod.js index 902194f7e..f275f1c3f 100644 --- a/link/pods/findLineToAddPod.js +++ b/link/pods/findLineToAddPod.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; module.exports = function findLineToAddPod(podLines, firstTargetLine) { diff --git a/link/pods/findMarkedLinesInPodfile.js b/link/pods/findMarkedLinesInPodfile.js index 2154cd522..8d084987e 100644 --- a/link/pods/findMarkedLinesInPodfile.js +++ b/link/pods/findMarkedLinesInPodfile.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const MARKER_TEXT = '# Add new pods below this line'; diff --git a/link/pods/findPodTargetLine.js b/link/pods/findPodTargetLine.js index bc4e6f85e..fea3b38c8 100644 --- a/link/pods/findPodTargetLine.js +++ b/link/pods/findPodTargetLine.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; module.exports = function findPodTargetLine(podLines, projectName) { diff --git a/link/pods/isInstalled.js b/link/pods/isInstalled.js index 55100275b..59072a276 100644 --- a/link/pods/isInstalled.js +++ b/link/pods/isInstalled.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const readPodfile = require('./readPodfile'); diff --git a/link/pods/readPodfile.js b/link/pods/readPodfile.js index 72613b7f0..a0b85cc3d 100644 --- a/link/pods/readPodfile.js +++ b/link/pods/readPodfile.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const fs = require('fs'); diff --git a/link/pods/registerNativeModule.js b/link/pods/registerNativeModule.js index e29c5642a..1032f2448 100644 --- a/link/pods/registerNativeModule.js +++ b/link/pods/registerNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const readPodfile = require('./readPodfile'); diff --git a/link/pods/removePodEntry.js b/link/pods/removePodEntry.js index 6c6d28887..490a2300a 100644 --- a/link/pods/removePodEntry.js +++ b/link/pods/removePodEntry.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; module.exports = function removePodEntry(podfileContent, podName) { diff --git a/link/pods/savePodFile.js b/link/pods/savePodFile.js index b615c9a54..dbd98686f 100644 --- a/link/pods/savePodFile.js +++ b/link/pods/savePodFile.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const fs = require('fs'); diff --git a/link/pods/unregisterNativeModule.js b/link/pods/unregisterNativeModule.js index b111eb836..10da38f15 100644 --- a/link/pods/unregisterNativeModule.js +++ b/link/pods/unregisterNativeModule.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + 'use strict'; const fs = require('fs'); diff --git a/link/pollParams.js b/link/pollParams.js index 47b003b31..b5e0da823 100644 --- a/link/pollParams.js +++ b/link/pollParams.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + var inquirer = require('inquirer'); module.exports = (questions) => new Promise((resolve, reject) => { diff --git a/link/promiseWaterfall.js b/link/promiseWaterfall.js index e6df88058..d88135535 100644 --- a/link/promiseWaterfall.js +++ b/link/promiseWaterfall.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + /** * Given an array of promise creators, executes them in a sequence. * diff --git a/link/promisify.js b/link/promisify.js index b5bca830b..38c023784 100644 --- a/link/promisify.js +++ b/link/promisify.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + module.exports = (func) => new Promise((resolve, reject) => func((err, res) => err ? reject(err) : resolve(res)) ); diff --git a/link/unlink.js b/link/unlink.js index 020802146..5c54526df 100644 --- a/link/unlink.js +++ b/link/unlink.js @@ -1,3 +1,12 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + const log = require('npmlog'); const getProjectDependencies = require('./getProjectDependencies');