From 4f883bd0bcdc015e2cf70bcc29bbe05fd5b8a40b 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 --- local-cli/link/__tests__/android/applyPatch.spec.js | 2 +- local-cli/link/__tests__/android/isInstalled.spec.js | 2 +- local-cli/link/__tests__/android/makeBuildPatch.spec.js | 2 +- local-cli/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 +- local-cli/link/__tests__/getDependencyConfig.spec.js | 2 +- local-cli/link/__tests__/getProjectDependencies.spec.js | 2 +- local-cli/link/__tests__/groupFilesByType.spec.js | 2 +- local-cli/link/__tests__/ios/addFileToProject.spec.js | 2 +- .../link/__tests__/ios/addProjectToLibraries.spec.js | 2 +- local-cli/link/__tests__/ios/addSharedLibraries.spec.js | 2 +- local-cli/link/__tests__/ios/createGroup.spec.js | 2 +- local-cli/link/__tests__/ios/getBuildProperty.spec.js | 2 +- local-cli/link/__tests__/ios/getGroup.spec.js | 2 +- local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js | 2 +- local-cli/link/__tests__/ios/getHeadersInFolder.spec.js | 2 +- local-cli/link/__tests__/ios/getPlist.spec.js | 2 +- local-cli/link/__tests__/ios/getPlistPath.spec.js | 2 +- local-cli/link/__tests__/ios/getProducts.spec.js | 2 +- local-cli/link/__tests__/ios/getTargets.spec.js | 2 +- local-cli/link/__tests__/ios/hasLibraryImported.spec.js | 2 +- local-cli/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 +- local-cli/link/__tests__/ios/removeSharedLibrary.spec.js | 2 +- local-cli/link/__tests__/ios/writePlist.spec.js | 2 +- local-cli/link/__tests__/link.spec.js | 2 +- local-cli/link/__tests__/pods/findLineToAddPod.spec.js | 2 +- .../link/__tests__/pods/findMarkedLinesInPodfile.spec.js | 2 +- local-cli/link/__tests__/pods/findPodTargetLine.spec.js | 2 +- local-cli/link/__tests__/pods/isInstalled.spec.js | 2 +- local-cli/link/__tests__/pods/removePodEntry.spec.js | 2 +- local-cli/link/__tests__/promiseWaterfall.spec.js | 2 +- local-cli/link/android/copyAssets.js | 9 +++++++++ local-cli/link/android/fs.js | 9 +++++++++ local-cli/link/android/isInstalled.js | 9 +++++++++ local-cli/link/android/patches/applyParams.js | 2 +- local-cli/link/android/patches/applyPatch.js | 9 +++++++++ local-cli/link/android/patches/makeBuildPatch.js | 9 +++++++++ local-cli/link/android/patches/makeImportPatch.js | 9 +++++++++ local-cli/link/android/patches/makePackagePatch.js | 9 +++++++++ local-cli/link/android/patches/makeSettingsPatch.js | 9 +++++++++ local-cli/link/android/patches/makeStringsPatch.js | 9 +++++++++ local-cli/link/android/patches/revokePatch.js | 9 +++++++++ local-cli/link/android/registerNativeModule.js | 9 +++++++++ local-cli/link/android/unlinkAssets.js | 9 +++++++++ local-cli/link/android/unregisterNativeModule.js | 9 +++++++++ local-cli/link/commandStub.js | 9 +++++++++ local-cli/link/getDependencyConfig.js | 9 +++++++++ local-cli/link/getProjectDependencies.js | 9 +++++++++ local-cli/link/groupFilesByType.js | 9 +++++++++ local-cli/link/ios/addFileToProject.js | 9 +++++++++ local-cli/link/ios/addProjectToLibraries.js | 9 +++++++++ local-cli/link/ios/addSharedLibraries.js | 9 +++++++++ local-cli/link/ios/addToHeaderSearchPaths.js | 9 +++++++++ local-cli/link/ios/copyAssets.js | 9 +++++++++ local-cli/link/ios/createGroup.js | 9 +++++++++ local-cli/link/ios/createGroupWithMessage.js | 9 +++++++++ local-cli/link/ios/getBuildProperty.js | 9 +++++++++ local-cli/link/ios/getGroup.js | 9 +++++++++ local-cli/link/ios/getHeaderSearchPath.js | 9 +++++++++ local-cli/link/ios/getHeadersInFolder.js | 9 +++++++++ local-cli/link/ios/getPlist.js | 9 +++++++++ local-cli/link/ios/getPlistPath.js | 9 +++++++++ local-cli/link/ios/getProducts.js | 9 +++++++++ local-cli/link/ios/getTargets.js | 9 +++++++++ local-cli/link/ios/hasLibraryImported.js | 9 +++++++++ local-cli/link/ios/isInstalled.js | 9 +++++++++ local-cli/link/ios/mapHeaderSearchPaths.js | 9 +++++++++ local-cli/link/ios/registerNativeModule.js | 9 +++++++++ local-cli/link/ios/removeFromHeaderSearchPaths.js | 9 +++++++++ .../link/ios/removeFromPbxItemContainerProxySection.js | 9 +++++++++ local-cli/link/ios/removeFromPbxReferenceProxySection.js | 9 +++++++++ local-cli/link/ios/removeFromProjectReferences.js | 9 +++++++++ local-cli/link/ios/removeFromStaticLibraries.js | 9 +++++++++ local-cli/link/ios/removeProductGroup.js | 9 +++++++++ local-cli/link/ios/removeProjectFromLibraries.js | 9 +++++++++ local-cli/link/ios/removeProjectFromProject.js | 9 +++++++++ local-cli/link/ios/removeSharedLibraries.js | 9 +++++++++ local-cli/link/ios/unlinkAssets.js | 9 +++++++++ local-cli/link/ios/unregisterNativeModule.js | 9 +++++++++ local-cli/link/ios/writePlist.js | 9 +++++++++ local-cli/link/link.js | 2 +- local-cli/link/pods/addPodEntry.js | 9 +++++++++ local-cli/link/pods/findLineToAddPod.js | 9 +++++++++ local-cli/link/pods/findMarkedLinesInPodfile.js | 9 +++++++++ local-cli/link/pods/findPodTargetLine.js | 9 +++++++++ local-cli/link/pods/isInstalled.js | 9 +++++++++ local-cli/link/pods/readPodfile.js | 9 +++++++++ local-cli/link/pods/registerNativeModule.js | 9 +++++++++ local-cli/link/pods/removePodEntry.js | 9 +++++++++ local-cli/link/pods/savePodFile.js | 9 +++++++++ local-cli/link/pods/unregisterNativeModule.js | 9 +++++++++ local-cli/link/pollParams.js | 9 +++++++++ local-cli/link/promiseWaterfall.js | 9 +++++++++ local-cli/link/promisify.js | 9 +++++++++ local-cli/link/unlink.js | 9 +++++++++ 100 files changed, 596 insertions(+), 38 deletions(-) diff --git a/local-cli/link/__tests__/android/applyPatch.spec.js b/local-cli/link/__tests__/android/applyPatch.spec.js index b8af368cc7ca56..000743f1484d76 100644 --- a/local-cli/link/__tests__/android/applyPatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/isInstalled.spec.js b/local-cli/link/__tests__/android/isInstalled.spec.js index 025563365557cb..f87f0d14bf9cee 100644 --- a/local-cli/link/__tests__/android/isInstalled.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/makeBuildPatch.spec.js b/local-cli/link/__tests__/android/makeBuildPatch.spec.js index 61eeb55ab34785..e731bc4e477d2f 100644 --- a/local-cli/link/__tests__/android/makeBuildPatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/makeImportPatch.spec.js b/local-cli/link/__tests__/android/makeImportPatch.spec.js index 805679188c2795..b41775c8c7d845 100644 --- a/local-cli/link/__tests__/android/makeImportPatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/makePackagePatch.spec.js b/local-cli/link/__tests__/android/makePackagePatch.spec.js index 68496607fed799..8407fe6ed076ad 100644 --- a/local-cli/link/__tests__/android/makePackagePatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/makeSettingsPatch.spec.js b/local-cli/link/__tests__/android/makeSettingsPatch.spec.js index 4782010cf697a5..1ca5681217bfb6 100644 --- a/local-cli/link/__tests__/android/makeSettingsPatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/android/makeStringsPatch.spec.js b/local-cli/link/__tests__/android/makeStringsPatch.spec.js index 6a59c11bd50a51..4232ba789f6bbc 100644 --- a/local-cli/link/__tests__/android/makeStringsPatch.spec.js +++ b/local-cli/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/local-cli/link/__tests__/getDependencyConfig.spec.js b/local-cli/link/__tests__/getDependencyConfig.spec.js index 827d369ff49e6d..87cf12755d4a6d 100644 --- a/local-cli/link/__tests__/getDependencyConfig.spec.js +++ b/local-cli/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/local-cli/link/__tests__/getProjectDependencies.spec.js b/local-cli/link/__tests__/getProjectDependencies.spec.js index 2c05bc8963cc15..28ad2a61ac0b89 100644 --- a/local-cli/link/__tests__/getProjectDependencies.spec.js +++ b/local-cli/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/local-cli/link/__tests__/groupFilesByType.spec.js b/local-cli/link/__tests__/groupFilesByType.spec.js index c62b6f52dbcef5..2154583d5b4211 100644 --- a/local-cli/link/__tests__/groupFilesByType.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/addFileToProject.spec.js b/local-cli/link/__tests__/ios/addFileToProject.spec.js index 82949468900a9f..335e53e37954c0 100644 --- a/local-cli/link/__tests__/ios/addFileToProject.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js b/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js index d070150e27f929..4c7858f4eda302 100644 --- a/local-cli/link/__tests__/ios/addProjectToLibraries.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/addSharedLibraries.spec.js b/local-cli/link/__tests__/ios/addSharedLibraries.spec.js index 5a63d8e826514a..58bff8c6abc55b 100644 --- a/local-cli/link/__tests__/ios/addSharedLibraries.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/createGroup.spec.js b/local-cli/link/__tests__/ios/createGroup.spec.js index 66e88154c4207e..5f1bf4424608a2 100644 --- a/local-cli/link/__tests__/ios/createGroup.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getBuildProperty.spec.js b/local-cli/link/__tests__/ios/getBuildProperty.spec.js index f1cc8abef6db74..fbe9fd49b2de42 100644 --- a/local-cli/link/__tests__/ios/getBuildProperty.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getGroup.spec.js b/local-cli/link/__tests__/ios/getGroup.spec.js index dc018c608db02d..9569a998f08751 100644 --- a/local-cli/link/__tests__/ios/getGroup.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js b/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js index d9da73354a6e27..e63de35cb3bf24 100644 --- a/local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js b/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js index 33051b17707f90..8d2830ed834dc2 100644 --- a/local-cli/link/__tests__/ios/getHeadersInFolder.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getPlist.spec.js b/local-cli/link/__tests__/ios/getPlist.spec.js index 0c0b2074b6dede..df900c19224525 100644 --- a/local-cli/link/__tests__/ios/getPlist.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getPlistPath.spec.js b/local-cli/link/__tests__/ios/getPlistPath.spec.js index 4d49c5ddda515f..783cbb26c0c486 100644 --- a/local-cli/link/__tests__/ios/getPlistPath.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getProducts.spec.js b/local-cli/link/__tests__/ios/getProducts.spec.js index d3cab43e3b52c3..93bc0fcca66d41 100644 --- a/local-cli/link/__tests__/ios/getProducts.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/getTargets.spec.js b/local-cli/link/__tests__/ios/getTargets.spec.js index 2eed13dc9af8f2..77bdf39bce4ec9 100644 --- a/local-cli/link/__tests__/ios/getTargets.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/hasLibraryImported.spec.js b/local-cli/link/__tests__/ios/hasLibraryImported.spec.js index 7c76656fb07301..8882ac2f8dd619 100644 --- a/local-cli/link/__tests__/ios/hasLibraryImported.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/isInstalled.spec.js b/local-cli/link/__tests__/ios/isInstalled.spec.js index 168ba1faa2b416..45c9a05d2280f4 100644 --- a/local-cli/link/__tests__/ios/isInstalled.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js b/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js index 688f0557e6fa62..0f2b743d21261b 100644 --- a/local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/removeProjectFromLibraries.js b/local-cli/link/__tests__/ios/removeProjectFromLibraries.js index d40d279c5a84dd..5328291a1f3e42 100644 --- a/local-cli/link/__tests__/ios/removeProjectFromLibraries.js +++ b/local-cli/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/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js b/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js index dc1c25af4759bd..adb4eac7fd016c 100644 --- a/local-cli/link/__tests__/ios/removeProjectFromProject.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js b/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js index 5d7cf39e7bc0c8..ece8b176ef1d16 100644 --- a/local-cli/link/__tests__/ios/removeSharedLibrary.spec.js +++ b/local-cli/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/local-cli/link/__tests__/ios/writePlist.spec.js b/local-cli/link/__tests__/ios/writePlist.spec.js index e1f83bdb3c57fe..29ea0bfd7d72e4 100644 --- a/local-cli/link/__tests__/ios/writePlist.spec.js +++ b/local-cli/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/local-cli/link/__tests__/link.spec.js b/local-cli/link/__tests__/link.spec.js index aaad000e91d153..b3470563d7ce40 100644 --- a/local-cli/link/__tests__/link.spec.js +++ b/local-cli/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/local-cli/link/__tests__/pods/findLineToAddPod.spec.js b/local-cli/link/__tests__/pods/findLineToAddPod.spec.js index 0dcd590946fe47..3940136a9920de 100644 --- a/local-cli/link/__tests__/pods/findLineToAddPod.spec.js +++ b/local-cli/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/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js b/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js index 9c74845c189c4c..9e2a8bed8e4c2e 100644 --- a/local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js +++ b/local-cli/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/local-cli/link/__tests__/pods/findPodTargetLine.spec.js b/local-cli/link/__tests__/pods/findPodTargetLine.spec.js index 2839609e31cb6d..1d382315d7cad2 100644 --- a/local-cli/link/__tests__/pods/findPodTargetLine.spec.js +++ b/local-cli/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/local-cli/link/__tests__/pods/isInstalled.spec.js b/local-cli/link/__tests__/pods/isInstalled.spec.js index bb68bc5011cffc..1060baa456199f 100644 --- a/local-cli/link/__tests__/pods/isInstalled.spec.js +++ b/local-cli/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/local-cli/link/__tests__/pods/removePodEntry.spec.js b/local-cli/link/__tests__/pods/removePodEntry.spec.js index 68ba895b2a2dfd..aa8fd5a26a34b8 100644 --- a/local-cli/link/__tests__/pods/removePodEntry.spec.js +++ b/local-cli/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/local-cli/link/__tests__/promiseWaterfall.spec.js b/local-cli/link/__tests__/promiseWaterfall.spec.js index 1d1f38ae5e988f..ca1d30db1a427d 100644 --- a/local-cli/link/__tests__/promiseWaterfall.spec.js +++ b/local-cli/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/local-cli/link/android/copyAssets.js b/local-cli/link/android/copyAssets.js index 709bf0b95c770b..0f41a301c63b9a 100644 --- a/local-cli/link/android/copyAssets.js +++ b/local-cli/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/local-cli/link/android/fs.js b/local-cli/link/android/fs.js index faa31d671ddb12..b485a9ebfbd168 100644 --- a/local-cli/link/android/fs.js +++ b/local-cli/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/local-cli/link/android/isInstalled.js b/local-cli/link/android/isInstalled.js index 16c9194a57f926..c191c0f68c5fdd 100644 --- a/local-cli/link/android/isInstalled.js +++ b/local-cli/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/local-cli/link/android/patches/applyParams.js b/local-cli/link/android/patches/applyParams.js index 21c1e9545bc49a..4574399d22d4b9 100644 --- a/local-cli/link/android/patches/applyParams.js +++ b/local-cli/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/local-cli/link/android/patches/applyPatch.js b/local-cli/link/android/patches/applyPatch.js index 67337d41ac243f..bc6396602dac78 100644 --- a/local-cli/link/android/patches/applyPatch.js +++ b/local-cli/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/local-cli/link/android/patches/makeBuildPatch.js b/local-cli/link/android/patches/makeBuildPatch.js index b27b16829fd2d3..473ab291cf0646 100644 --- a/local-cli/link/android/patches/makeBuildPatch.js +++ b/local-cli/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/local-cli/link/android/patches/makeImportPatch.js b/local-cli/link/android/patches/makeImportPatch.js index deee6dfec6bc02..219242e6dcd036 100644 --- a/local-cli/link/android/patches/makeImportPatch.js +++ b/local-cli/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/local-cli/link/android/patches/makePackagePatch.js b/local-cli/link/android/patches/makePackagePatch.js index e1a5bec5df3e49..7789cbc4deae0a 100644 --- a/local-cli/link/android/patches/makePackagePatch.js +++ b/local-cli/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/local-cli/link/android/patches/makeSettingsPatch.js b/local-cli/link/android/patches/makeSettingsPatch.js index d4c2e57f04a7f2..5b0983a9304d9d 100644 --- a/local-cli/link/android/patches/makeSettingsPatch.js +++ b/local-cli/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/local-cli/link/android/patches/makeStringsPatch.js b/local-cli/link/android/patches/makeStringsPatch.js index b9059635968bea..a8a2981a12970c 100644 --- a/local-cli/link/android/patches/makeStringsPatch.js +++ b/local-cli/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/local-cli/link/android/patches/revokePatch.js b/local-cli/link/android/patches/revokePatch.js index 8905923b1b3413..037e2a13052fa3 100644 --- a/local-cli/link/android/patches/revokePatch.js +++ b/local-cli/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/local-cli/link/android/registerNativeModule.js b/local-cli/link/android/registerNativeModule.js index db31bfdcedf23b..f6d37b5519c36b 100644 --- a/local-cli/link/android/registerNativeModule.js +++ b/local-cli/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/local-cli/link/android/unlinkAssets.js b/local-cli/link/android/unlinkAssets.js index 1cc0974d3e4e14..6c8b02191ecd9e 100644 --- a/local-cli/link/android/unlinkAssets.js +++ b/local-cli/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/local-cli/link/android/unregisterNativeModule.js b/local-cli/link/android/unregisterNativeModule.js index f3b84c81178f69..51eb157858036c 100644 --- a/local-cli/link/android/unregisterNativeModule.js +++ b/local-cli/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/local-cli/link/commandStub.js b/local-cli/link/commandStub.js index ab4718af93d772..7529fe4ed9fcbd 100644 --- a/local-cli/link/commandStub.js +++ b/local-cli/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/local-cli/link/getDependencyConfig.js b/local-cli/link/getDependencyConfig.js index 597be6aab5cb30..751f746a8881c9 100644 --- a/local-cli/link/getDependencyConfig.js +++ b/local-cli/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/local-cli/link/getProjectDependencies.js b/local-cli/link/getProjectDependencies.js index 1897395371f9fe..1d670574ef1f97 100644 --- a/local-cli/link/getProjectDependencies.js +++ b/local-cli/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/local-cli/link/groupFilesByType.js b/local-cli/link/groupFilesByType.js index 5dc692e1c21e1a..0a5dce030e1395 100644 --- a/local-cli/link/groupFilesByType.js +++ b/local-cli/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/local-cli/link/ios/addFileToProject.js b/local-cli/link/ios/addFileToProject.js index eab1d12535ef75..3ed3340afb21cd 100644 --- a/local-cli/link/ios/addFileToProject.js +++ b/local-cli/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/local-cli/link/ios/addProjectToLibraries.js b/local-cli/link/ios/addProjectToLibraries.js index 4e65ef30f35241..d79f643aaf9226 100644 --- a/local-cli/link/ios/addProjectToLibraries.js +++ b/local-cli/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/local-cli/link/ios/addSharedLibraries.js b/local-cli/link/ios/addSharedLibraries.js index 82cf58ba873137..ad29ef9a2dda8f 100644 --- a/local-cli/link/ios/addSharedLibraries.js +++ b/local-cli/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/local-cli/link/ios/addToHeaderSearchPaths.js b/local-cli/link/ios/addToHeaderSearchPaths.js index 1eff6055e4b6a7..b3d3e56e21c9a6 100644 --- a/local-cli/link/ios/addToHeaderSearchPaths.js +++ b/local-cli/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/local-cli/link/ios/copyAssets.js b/local-cli/link/ios/copyAssets.js index f8cd09198993a5..dec1cb0c9962c2 100644 --- a/local-cli/link/ios/copyAssets.js +++ b/local-cli/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/local-cli/link/ios/createGroup.js b/local-cli/link/ios/createGroup.js index aba805d762e0d4..586e933b8c9e0d 100644 --- a/local-cli/link/ios/createGroup.js +++ b/local-cli/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/local-cli/link/ios/createGroupWithMessage.js b/local-cli/link/ios/createGroupWithMessage.js index 78f077c1f91c7f..e782813009d8ad 100644 --- a/local-cli/link/ios/createGroupWithMessage.js +++ b/local-cli/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/local-cli/link/ios/getBuildProperty.js b/local-cli/link/ios/getBuildProperty.js index 181a74ec9302c3..6fc82fe496da54 100644 --- a/local-cli/link/ios/getBuildProperty.js +++ b/local-cli/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/local-cli/link/ios/getGroup.js b/local-cli/link/ios/getGroup.js index ab24df8d3d511d..dd64332a42fa32 100644 --- a/local-cli/link/ios/getGroup.js +++ b/local-cli/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/local-cli/link/ios/getHeaderSearchPath.js b/local-cli/link/ios/getHeaderSearchPath.js index 750c060914acb9..9857bb62f46c36 100644 --- a/local-cli/link/ios/getHeaderSearchPath.js +++ b/local-cli/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/local-cli/link/ios/getHeadersInFolder.js b/local-cli/link/ios/getHeadersInFolder.js index 7dc954db59a6c6..b0426f01a4775a 100644 --- a/local-cli/link/ios/getHeadersInFolder.js +++ b/local-cli/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/local-cli/link/ios/getPlist.js b/local-cli/link/ios/getPlist.js index 9190aa3459d86e..adc530310fb602 100644 --- a/local-cli/link/ios/getPlist.js +++ b/local-cli/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/local-cli/link/ios/getPlistPath.js b/local-cli/link/ios/getPlistPath.js index 44b810ab1e298b..a82d086fd3ae1e 100644 --- a/local-cli/link/ios/getPlistPath.js +++ b/local-cli/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/local-cli/link/ios/getProducts.js b/local-cli/link/ios/getProducts.js index b51492734c35b2..590ff831431906 100644 --- a/local-cli/link/ios/getProducts.js +++ b/local-cli/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/local-cli/link/ios/getTargets.js b/local-cli/link/ios/getTargets.js index af0ca07798980e..b2441e9acf2c8b 100644 --- a/local-cli/link/ios/getTargets.js +++ b/local-cli/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/local-cli/link/ios/hasLibraryImported.js b/local-cli/link/ios/hasLibraryImported.js index b380309344e41e..077591a7c991c0 100644 --- a/local-cli/link/ios/hasLibraryImported.js +++ b/local-cli/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/local-cli/link/ios/isInstalled.js b/local-cli/link/ios/isInstalled.js index 81b1fff01fb9ff..095925688c4e37 100644 --- a/local-cli/link/ios/isInstalled.js +++ b/local-cli/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/local-cli/link/ios/mapHeaderSearchPaths.js b/local-cli/link/ios/mapHeaderSearchPaths.js index b173e3ac575e88..f31c2d1507c325 100644 --- a/local-cli/link/ios/mapHeaderSearchPaths.js +++ b/local-cli/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/local-cli/link/ios/registerNativeModule.js b/local-cli/link/ios/registerNativeModule.js index 85411ab34a4161..74b828548f4cb9 100644 --- a/local-cli/link/ios/registerNativeModule.js +++ b/local-cli/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/local-cli/link/ios/removeFromHeaderSearchPaths.js b/local-cli/link/ios/removeFromHeaderSearchPaths.js index 07259f1d223e0b..9dbe99e3643710 100644 --- a/local-cli/link/ios/removeFromHeaderSearchPaths.js +++ b/local-cli/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/local-cli/link/ios/removeFromPbxItemContainerProxySection.js b/local-cli/link/ios/removeFromPbxItemContainerProxySection.js index e0a6a84a7a65dc..ee5e31777efb98 100644 --- a/local-cli/link/ios/removeFromPbxItemContainerProxySection.js +++ b/local-cli/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/local-cli/link/ios/removeFromPbxReferenceProxySection.js b/local-cli/link/ios/removeFromPbxReferenceProxySection.js index b867964ff6ef0a..09561896e2a012 100644 --- a/local-cli/link/ios/removeFromPbxReferenceProxySection.js +++ b/local-cli/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/local-cli/link/ios/removeFromProjectReferences.js b/local-cli/link/ios/removeFromProjectReferences.js index 652b189295c297..b0c9eada9cebda 100644 --- a/local-cli/link/ios/removeFromProjectReferences.js +++ b/local-cli/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/local-cli/link/ios/removeFromStaticLibraries.js b/local-cli/link/ios/removeFromStaticLibraries.js index 2a66fa44aac879..861d319f14415c 100644 --- a/local-cli/link/ios/removeFromStaticLibraries.js +++ b/local-cli/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/local-cli/link/ios/removeProductGroup.js b/local-cli/link/ios/removeProductGroup.js index 186aed7f7b17f8..6326540b638b0d 100644 --- a/local-cli/link/ios/removeProductGroup.js +++ b/local-cli/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/local-cli/link/ios/removeProjectFromLibraries.js b/local-cli/link/ios/removeProjectFromLibraries.js index 20965a67e09292..48b356c81a7529 100644 --- a/local-cli/link/ios/removeProjectFromLibraries.js +++ b/local-cli/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/local-cli/link/ios/removeProjectFromProject.js b/local-cli/link/ios/removeProjectFromProject.js index 3a3f173dbe682d..e9f2379a051679 100644 --- a/local-cli/link/ios/removeProjectFromProject.js +++ b/local-cli/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/local-cli/link/ios/removeSharedLibraries.js b/local-cli/link/ios/removeSharedLibraries.js index 1150e2383cc806..6da91f119668a8 100644 --- a/local-cli/link/ios/removeSharedLibraries.js +++ b/local-cli/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/local-cli/link/ios/unlinkAssets.js b/local-cli/link/ios/unlinkAssets.js index c80e793a73c2bc..083519e38fe816 100644 --- a/local-cli/link/ios/unlinkAssets.js +++ b/local-cli/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/local-cli/link/ios/unregisterNativeModule.js b/local-cli/link/ios/unregisterNativeModule.js index af91799197f94b..8f09484cff9434 100644 --- a/local-cli/link/ios/unregisterNativeModule.js +++ b/local-cli/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/local-cli/link/ios/writePlist.js b/local-cli/link/ios/writePlist.js index e8fe6715af3071..c7d424fcddb627 100644 --- a/local-cli/link/ios/writePlist.js +++ b/local-cli/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/local-cli/link/link.js b/local-cli/link/link.js index b38faa9dde61da..ac0aba2a679ebd 100644 --- a/local-cli/link/link.js +++ b/local-cli/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/local-cli/link/pods/addPodEntry.js b/local-cli/link/pods/addPodEntry.js index 2316f260ac427d..bc9e2ced1739a7 100644 --- a/local-cli/link/pods/addPodEntry.js +++ b/local-cli/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/local-cli/link/pods/findLineToAddPod.js b/local-cli/link/pods/findLineToAddPod.js index 902194f7e368b4..f275f1c3f79855 100644 --- a/local-cli/link/pods/findLineToAddPod.js +++ b/local-cli/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/local-cli/link/pods/findMarkedLinesInPodfile.js b/local-cli/link/pods/findMarkedLinesInPodfile.js index 2154cd5227c7da..8d084987e7b87b 100644 --- a/local-cli/link/pods/findMarkedLinesInPodfile.js +++ b/local-cli/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/local-cli/link/pods/findPodTargetLine.js b/local-cli/link/pods/findPodTargetLine.js index bc4e6f85e1d1f4..fea3b38c835c03 100644 --- a/local-cli/link/pods/findPodTargetLine.js +++ b/local-cli/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/local-cli/link/pods/isInstalled.js b/local-cli/link/pods/isInstalled.js index 55100275be16c5..59072a2762e61e 100644 --- a/local-cli/link/pods/isInstalled.js +++ b/local-cli/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/local-cli/link/pods/readPodfile.js b/local-cli/link/pods/readPodfile.js index 72613b7f04fbdf..a0b85cc3d27955 100644 --- a/local-cli/link/pods/readPodfile.js +++ b/local-cli/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/local-cli/link/pods/registerNativeModule.js b/local-cli/link/pods/registerNativeModule.js index e29c5642a1c684..1032f244861228 100644 --- a/local-cli/link/pods/registerNativeModule.js +++ b/local-cli/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/local-cli/link/pods/removePodEntry.js b/local-cli/link/pods/removePodEntry.js index 6c6d28887c045d..490a2300a1a957 100644 --- a/local-cli/link/pods/removePodEntry.js +++ b/local-cli/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/local-cli/link/pods/savePodFile.js b/local-cli/link/pods/savePodFile.js index b615c9a541da2e..dbd98686f6f166 100644 --- a/local-cli/link/pods/savePodFile.js +++ b/local-cli/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/local-cli/link/pods/unregisterNativeModule.js b/local-cli/link/pods/unregisterNativeModule.js index b111eb836f9343..10da38f158a7dd 100644 --- a/local-cli/link/pods/unregisterNativeModule.js +++ b/local-cli/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/local-cli/link/pollParams.js b/local-cli/link/pollParams.js index 47b003b3149466..b5e0da823436a6 100644 --- a/local-cli/link/pollParams.js +++ b/local-cli/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/local-cli/link/promiseWaterfall.js b/local-cli/link/promiseWaterfall.js index e6df880587403e..d88135535938bc 100644 --- a/local-cli/link/promiseWaterfall.js +++ b/local-cli/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/local-cli/link/promisify.js b/local-cli/link/promisify.js index b5bca830b856b0..38c0237843d316 100644 --- a/local-cli/link/promisify.js +++ b/local-cli/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/local-cli/link/unlink.js b/local-cli/link/unlink.js index 020802146a5e48..5c54526dfcc589 100644 --- a/local-cli/link/unlink.js +++ b/local-cli/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');