diff --git a/local-cli/link/__tests__/android/applyPatch.spec.js b/local-cli/link/__tests__/android/applyPatch.spec.js index b8af368cc7c..000743f1484 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 02556336555..f87f0d14bf9 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 61eeb55ab34..e731bc4e477 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 805679188c2..b41775c8c7d 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 68496607fed..8407fe6ed07 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 4782010cf69..1ca5681217b 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 6a59c11bd50..4232ba789f6 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 827d369ff49..87cf12755d4 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 2c05bc8963c..28ad2a61ac0 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 c62b6f52dbc..2154583d5b4 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 82949468900..335e53e3795 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 d070150e27f..4c7858f4eda 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 5a63d8e8265..58bff8c6abc 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 66e88154c42..5f1bf442460 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 f1cc8abef6d..fbe9fd49b2d 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 dc018c608db..9569a998f08 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 d9da73354a6..e63de35cb3b 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 33051b17707..8d2830ed834 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 0c0b2074b6d..df900c19224 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 4d49c5ddda5..783cbb26c0c 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 d3cab43e3b5..93bc0fcca66 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 2eed13dc9af..77bdf39bce4 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 7c76656fb07..8882ac2f8dd 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 168ba1faa2b..45c9a05d228 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 688f0557e6f..0f2b743d212 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 d40d279c5a8..5328291a1f3 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 dc1c25af475..adb4eac7fd0 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 5d7cf39e7bc..ece8b176ef1 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 e1f83bdb3c5..29ea0bfd7d7 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 aaad000e91d..b3470563d7c 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 0dcd590946f..3940136a992 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 9c74845c189..9e2a8bed8e4 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 2839609e31c..1d382315d7c 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 bb68bc5011c..1060baa4561 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 68ba895b2a2..aa8fd5a26a3 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 1d1f38ae5e9..ca1d30db1a4 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 709bf0b95c7..0f41a301c63 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 faa31d671dd..b485a9ebfbd 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 16c9194a57f..c191c0f68c5 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 21c1e9545bc..4574399d22d 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 67337d41ac2..bc6396602da 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 b27b16829fd..473ab291cf0 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 deee6dfec6b..219242e6dcd 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 e1a5bec5df3..7789cbc4dea 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 d4c2e57f04a..5b0983a9304 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 b9059635968..a8a2981a129 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 8905923b1b3..037e2a13052 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 db31bfdcedf..f6d37b5519c 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 1cc0974d3e4..6c8b02191ec 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 f3b84c81178..51eb1578580 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 ab4718af93d..7529fe4ed9f 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 597be6aab5c..751f746a888 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 1897395371f..1d670574ef1 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 5dc692e1c21..0a5dce030e1 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 eab1d12535e..3ed3340afb2 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 4e65ef30f35..d79f643aaf9 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 82cf58ba873..ad29ef9a2dd 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 1eff6055e4b..b3d3e56e21c 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 f8cd0919899..dec1cb0c996 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 aba805d762e..586e933b8c9 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 78f077c1f91..e782813009d 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 181a74ec930..6fc82fe496d 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 ab24df8d3d5..dd64332a42f 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 750c060914a..9857bb62f46 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 7dc954db59a..b0426f01a47 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 9190aa3459d..adc530310fb 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 44b810ab1e2..a82d086fd3a 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 b51492734c3..590ff831431 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 af0ca077989..b2441e9acf2 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 b380309344e..077591a7c99 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 81b1fff01fb..095925688c4 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 b173e3ac575..f31c2d1507c 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 85411ab34a4..74b828548f4 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 07259f1d223..9dbe99e3643 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 e0a6a84a7a6..ee5e31777ef 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 b867964ff6e..09561896e2a 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 652b189295c..b0c9eada9ce 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 2a66fa44aac..861d319f144 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 186aed7f7b1..6326540b638 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 20965a67e09..48b356c81a7 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 3a3f173dbe6..e9f2379a051 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 1150e2383cc..6da91f11966 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 c80e793a73c..083519e38fe 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 af91799197f..8f09484cff9 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 e8fe6715af3..c7d424fcddb 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 b38faa9dde6..ac0aba2a679 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 2316f260ac4..bc9e2ced173 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 902194f7e36..f275f1c3f79 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 2154cd5227c..8d084987e7b 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 bc4e6f85e1d..fea3b38c835 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 55100275be1..59072a2762e 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 72613b7f04f..a0b85cc3d27 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 e29c5642a1c..1032f244861 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 6c6d28887c0..490a2300a1a 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 b615c9a541d..dbd98686f6f 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 b111eb836f9..10da38f158a 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 47b003b3149..b5e0da82343 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 e6df8805874..d8813553593 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 b5bca830b85..38c0237843d 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 020802146a5..5c54526dfcc 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');