Skip to content
Permalink
Browse files

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 #17912

Differential Revision: D6938189

Pulled By: hramos

fbshipit-source-id: 6447d8ad6d7ecce0ef5f1821f63e44957bbf6d15
  • Loading branch information...
hramos authored and facebook-github-bot committed Feb 9, 2018
1 parent 2ef9b7f commit 4f883bd0bcdc015e2cf70bcc29bbe05fd5b8a40b
Showing with 596 additions and 38 deletions.
  1. +1 −1 local-cli/link/__tests__/android/applyPatch.spec.js
  2. +1 −1 local-cli/link/__tests__/android/isInstalled.spec.js
  3. +1 −1 local-cli/link/__tests__/android/makeBuildPatch.spec.js
  4. +1 −1 local-cli/link/__tests__/android/makeImportPatch.spec.js
  5. +1 −1 local-cli/link/__tests__/android/makePackagePatch.spec.js
  6. +1 −1 local-cli/link/__tests__/android/makeSettingsPatch.spec.js
  7. +1 −1 local-cli/link/__tests__/android/makeStringsPatch.spec.js
  8. +1 −1 local-cli/link/__tests__/getDependencyConfig.spec.js
  9. +1 −1 local-cli/link/__tests__/getProjectDependencies.spec.js
  10. +1 −1 local-cli/link/__tests__/groupFilesByType.spec.js
  11. +1 −1 local-cli/link/__tests__/ios/addFileToProject.spec.js
  12. +1 −1 local-cli/link/__tests__/ios/addProjectToLibraries.spec.js
  13. +1 −1 local-cli/link/__tests__/ios/addSharedLibraries.spec.js
  14. +1 −1 local-cli/link/__tests__/ios/createGroup.spec.js
  15. +1 −1 local-cli/link/__tests__/ios/getBuildProperty.spec.js
  16. +1 −1 local-cli/link/__tests__/ios/getGroup.spec.js
  17. +1 −1 local-cli/link/__tests__/ios/getHeaderSearchPath.spec.js
  18. +1 −1 local-cli/link/__tests__/ios/getHeadersInFolder.spec.js
  19. +1 −1 local-cli/link/__tests__/ios/getPlist.spec.js
  20. +1 −1 local-cli/link/__tests__/ios/getPlistPath.spec.js
  21. +1 −1 local-cli/link/__tests__/ios/getProducts.spec.js
  22. +1 −1 local-cli/link/__tests__/ios/getTargets.spec.js
  23. +1 −1 local-cli/link/__tests__/ios/hasLibraryImported.spec.js
  24. +1 −1 local-cli/link/__tests__/ios/isInstalled.spec.js
  25. +1 −1 local-cli/link/__tests__/ios/mapHeaderSearchPaths.spec.js
  26. +1 −1 local-cli/link/__tests__/ios/removeProjectFromLibraries.js
  27. +1 −1 local-cli/link/__tests__/ios/removeProjectFromProject.spec.js
  28. +1 −1 local-cli/link/__tests__/ios/removeSharedLibrary.spec.js
  29. +1 −1 local-cli/link/__tests__/ios/writePlist.spec.js
  30. +1 −1 local-cli/link/__tests__/link.spec.js
  31. +1 −1 local-cli/link/__tests__/pods/findLineToAddPod.spec.js
  32. +1 −1 local-cli/link/__tests__/pods/findMarkedLinesInPodfile.spec.js
  33. +1 −1 local-cli/link/__tests__/pods/findPodTargetLine.spec.js
  34. +1 −1 local-cli/link/__tests__/pods/isInstalled.spec.js
  35. +1 −1 local-cli/link/__tests__/pods/removePodEntry.spec.js
  36. +1 −1 local-cli/link/__tests__/promiseWaterfall.spec.js
  37. +9 −0 local-cli/link/android/copyAssets.js
  38. +9 −0 local-cli/link/android/fs.js
  39. +9 −0 local-cli/link/android/isInstalled.js
  40. +1 −1 local-cli/link/android/patches/applyParams.js
  41. +9 −0 local-cli/link/android/patches/applyPatch.js
  42. +9 −0 local-cli/link/android/patches/makeBuildPatch.js
  43. +9 −0 local-cli/link/android/patches/makeImportPatch.js
  44. +9 −0 local-cli/link/android/patches/makePackagePatch.js
  45. +9 −0 local-cli/link/android/patches/makeSettingsPatch.js
  46. +9 −0 local-cli/link/android/patches/makeStringsPatch.js
  47. +9 −0 local-cli/link/android/patches/revokePatch.js
  48. +9 −0 local-cli/link/android/registerNativeModule.js
  49. +9 −0 local-cli/link/android/unlinkAssets.js
  50. +9 −0 local-cli/link/android/unregisterNativeModule.js
  51. +9 −0 local-cli/link/commandStub.js
  52. +9 −0 local-cli/link/getDependencyConfig.js
  53. +9 −0 local-cli/link/getProjectDependencies.js
  54. +9 −0 local-cli/link/groupFilesByType.js
  55. +9 −0 local-cli/link/ios/addFileToProject.js
  56. +9 −0 local-cli/link/ios/addProjectToLibraries.js
  57. +9 −0 local-cli/link/ios/addSharedLibraries.js
  58. +9 −0 local-cli/link/ios/addToHeaderSearchPaths.js
  59. +9 −0 local-cli/link/ios/copyAssets.js
  60. +9 −0 local-cli/link/ios/createGroup.js
  61. +9 −0 local-cli/link/ios/createGroupWithMessage.js
  62. +9 −0 local-cli/link/ios/getBuildProperty.js
  63. +9 −0 local-cli/link/ios/getGroup.js
  64. +9 −0 local-cli/link/ios/getHeaderSearchPath.js
  65. +9 −0 local-cli/link/ios/getHeadersInFolder.js
  66. +9 −0 local-cli/link/ios/getPlist.js
  67. +9 −0 local-cli/link/ios/getPlistPath.js
  68. +9 −0 local-cli/link/ios/getProducts.js
  69. +9 −0 local-cli/link/ios/getTargets.js
  70. +9 −0 local-cli/link/ios/hasLibraryImported.js
  71. +9 −0 local-cli/link/ios/isInstalled.js
  72. +9 −0 local-cli/link/ios/mapHeaderSearchPaths.js
  73. +9 −0 local-cli/link/ios/registerNativeModule.js
  74. +9 −0 local-cli/link/ios/removeFromHeaderSearchPaths.js
  75. +9 −0 local-cli/link/ios/removeFromPbxItemContainerProxySection.js
  76. +9 −0 local-cli/link/ios/removeFromPbxReferenceProxySection.js
  77. +9 −0 local-cli/link/ios/removeFromProjectReferences.js
  78. +9 −0 local-cli/link/ios/removeFromStaticLibraries.js
  79. +9 −0 local-cli/link/ios/removeProductGroup.js
  80. +9 −0 local-cli/link/ios/removeProjectFromLibraries.js
  81. +9 −0 local-cli/link/ios/removeProjectFromProject.js
  82. +9 −0 local-cli/link/ios/removeSharedLibraries.js
  83. +9 −0 local-cli/link/ios/unlinkAssets.js
  84. +9 −0 local-cli/link/ios/unregisterNativeModule.js
  85. +9 −0 local-cli/link/ios/writePlist.js
  86. +1 −1 local-cli/link/link.js
  87. +9 −0 local-cli/link/pods/addPodEntry.js
  88. +9 −0 local-cli/link/pods/findLineToAddPod.js
  89. +9 −0 local-cli/link/pods/findMarkedLinesInPodfile.js
  90. +9 −0 local-cli/link/pods/findPodTargetLine.js
  91. +9 −0 local-cli/link/pods/isInstalled.js
  92. +9 −0 local-cli/link/pods/readPodfile.js
  93. +9 −0 local-cli/link/pods/registerNativeModule.js
  94. +9 −0 local-cli/link/pods/removePodEntry.js
  95. +9 −0 local-cli/link/pods/savePodFile.js
  96. +9 −0 local-cli/link/pods/unregisterNativeModule.js
  97. +9 −0 local-cli/link/pollParams.js
  98. +9 −0 local-cli/link/promiseWaterfall.js
  99. +9 −0 local-cli/link/promisify.js
  100. +9 −0 local-cli/link/unlink.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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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');
@@ -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) =>
@@ -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');

@@ -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
@@ -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) {
@@ -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)`
@@ -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;',
@@ -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) {
@@ -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';

@@ -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) {
@@ -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) {
Oops, something went wrong.

0 comments on commit 4f883bd

Please sign in to comment.
You can’t perform that action at this time.