From a8072655d93cfba7ac12bffc2717ee3db16d74a2 Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Sun, 7 Nov 2021 11:13:22 -0800 Subject: [PATCH 01/10] add copyright headers --- jswinrt/js/WinRTTurboModule.js | 3 +++ jswinrt/jswinrt/CommandReader.cpp | 3 +++ jswinrt/jswinrt/CommandReader.h | 3 +++ jswinrt/jswinrt/MetadataHelpers.cpp | 3 +++ jswinrt/jswinrt/MetadataHelpers.h | 3 +++ jswinrt/jswinrt/MetadataTypes.cpp | 3 +++ jswinrt/jswinrt/MetadataTypes.h | 3 +++ jswinrt/jswinrt/Parser.h | 3 +++ jswinrt/jswinrt/Settings.cpp | 3 +++ jswinrt/jswinrt/Settings.h | 3 +++ jswinrt/jswinrt/TextWriter.cpp | 3 +++ jswinrt/jswinrt/TextWriter.h | 3 +++ jswinrt/jswinrt/TypeFilter.cpp | 3 +++ jswinrt/jswinrt/TypeFilter.h | 3 +++ jswinrt/jswinrt/TypescriptWriter.h | 3 +++ jswinrt/jswinrt/Writer.cpp | 3 +++ jswinrt/jswinrt/Writer.h | 3 +++ jswinrt/jswinrt/main.cpp | 3 +++ jswinrt/jswinrt/pch.cpp | 3 +++ jswinrt/jswinrt/pch.h | 3 +++ jswinrt/jswinrt/react/ReactFileGenerator.cpp | 4 +++- jswinrt/jswinrt/react/strings/base.cpp | 2 ++ jswinrt/jswinrt/react/strings/base.h | 3 +++ jswinrt/jswinrt/sha1.h | 3 +++ jswinrt/module/WinRTTurboModule.cpp | 3 +++ jswinrt/module/WinRTTurboModule.h | 3 +++ jswinrt/module/dllmain.cpp | 3 +++ jswinrt/strings/main.cpp | 2 ++ samples/RNWinRTTestApp/.eslintrc.js | 3 +++ samples/RNWinRTTestApp/.prettierrc.js | 3 +++ samples/RNWinRTTestApp/App.tsx | 3 +++ samples/RNWinRTTestApp/WinRTTurboModule.js | 3 +++ samples/RNWinRTTestApp/__tests__/App-test.tsx | 3 +++ samples/RNWinRTTestApp/babel.config.js | 3 +++ samples/RNWinRTTestApp/index.js | 3 +++ samples/RNWinRTTestApp/metro.config.js | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl | 3 +++ .../windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp | 3 +++ .../windows/RNWinRTTestApp/AutolinkedNativeModules.g.h | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl | 3 +++ .../windows/RNWinRTTestApp/ReactPackageProvider.cpp | 3 +++ .../windows/RNWinRTTestApp/ReactPackageProvider.h | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp | 3 +++ samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h | 3 +++ samples/RNWinRTTestApp/windows/TypeTest.d.ts | 3 +++ .../windows/WinRTTurboModule/ReactPackageProvider.h | 3 +++ .../windows/WinRTTurboModule/ReactPackageprovider.cpp | 3 +++ .../windows/WinRTTurboModule/WinRTTurboModule.idl | 3 +++ samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp | 3 +++ samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h | 3 +++ samples/RNWinRTTestApp/windows/test.ts | 2 ++ samples/RNWinRTTestApp/winrt-uwp.d.ts | 3 +++ scripts/mdExts.js | 3 +++ sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp | 3 +++ sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h | 3 +++ sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl | 3 +++ sdk/react/windows/WinRTTurboModule/pch.cpp | 3 +++ sdk/react/windows/WinRTTurboModule/pch.h | 3 +++ tests/RnWinRTTests/.eslintrc.js | 3 +++ tests/RnWinRTTests/.prettierrc.js | 3 +++ tests/RnWinRTTests/App.js | 3 +++ tests/RnWinRTTests/ArrayTests.js | 3 +++ tests/RnWinRTTests/AsyncTests.js | 3 +++ tests/RnWinRTTests/BasicFunctionTests.js | 3 +++ tests/RnWinRTTests/CollectionsTests.js | 3 +++ tests/RnWinRTTests/DelegateAndEventTests.js | 3 +++ tests/RnWinRTTests/InheritanceTests.js | 3 +++ tests/RnWinRTTests/PropertiesTests.js | 3 +++ tests/RnWinRTTests/Scenario.js | 3 +++ tests/RnWinRTTests/Styles.js | 3 +++ tests/RnWinRTTests/TestCommon.js | 3 +++ tests/RnWinRTTests/WinRTTurboModule.js | 2 ++ tests/RnWinRTTests/__tests__/App-test.tsx | 3 +++ tests/RnWinRTTests/babel.config.js | 3 +++ tests/RnWinRTTests/index.js | 3 +++ tests/RnWinRTTests/metro.config.js | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/App.cpp | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/App.h | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/App.idl | 3 +++ .../windows/RnWinRTTests/AutolinkedNativeModules.g.cpp | 3 +++ .../windows/RnWinRTTests/AutolinkedNativeModules.g.h | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/MainPage.idl | 3 +++ .../windows/RnWinRTTests/ReactPackageProvider.cpp | 3 +++ .../RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.h | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp | 3 +++ tests/RnWinRTTests/windows/RnWinRTTests/pch.h | 3 +++ tests/RnWinRTTests/windows/TestComponent/HierarchyBase.cpp | 3 +++ tests/RnWinRTTests/windows/TestComponent/HierarchyBase.h | 3 +++ tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.cpp | 3 +++ tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.h | 3 +++ tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.cpp | 3 +++ tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.h | 3 +++ tests/RnWinRTTests/windows/TestComponent/Test.cpp | 3 +++ tests/RnWinRTTests/windows/TestComponent/Test.h | 3 +++ tests/RnWinRTTests/windows/TestComponent/TestComponent.idl | 2 ++ tests/RnWinRTTests/windows/TestComponent/pch.cpp | 3 +++ tests/RnWinRTTests/windows/TestComponent/pch.h | 3 +++ .../windows/WinRTTurboModule/ReactPackageProvider.cpp | 3 +++ .../windows/WinRTTurboModule/ReactPackageProvider.h | 3 +++ .../windows/WinRTTurboModule/WinRTTurboModule.idl | 3 +++ tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp | 3 +++ tests/RnWinRTTests/windows/WinRTTurboModule/pch.h | 3 +++ tests/TestArtifacts/TestComponent.d.ts | 3 +++ tests/TestArtifacts/Windows.Foundation.Collections.d.ts | 3 +++ tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts | 3 +++ tests/TestArtifacts/Windows.Foundation.Metadata.d.ts | 3 +++ tests/TestArtifacts/Windows.Foundation.Numerics.d.ts | 3 +++ tests/TestArtifacts/Windows.Foundation.d.ts | 3 +++ tests/TestArtifacts/Windows.Web.Http.d.ts | 3 +++ tests/TestArtifacts/Windows.Web.d.ts | 3 +++ tests/TestArtifacts/Windows.d.ts | 3 +++ 117 files changed, 346 insertions(+), 1 deletion(-) diff --git a/jswinrt/js/WinRTTurboModule.js b/jswinrt/js/WinRTTurboModule.js index 7a32c20..ac3dddb 100644 --- a/jswinrt/js/WinRTTurboModule.js +++ b/jswinrt/js/WinRTTurboModule.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; const module = TurboModuleRegistry.get('WinRTTurboModule'); if (module) { diff --git a/jswinrt/jswinrt/CommandReader.cpp b/jswinrt/jswinrt/CommandReader.cpp index 1ecae3f..b77a331 100644 --- a/jswinrt/jswinrt/CommandReader.cpp +++ b/jswinrt/jswinrt/CommandReader.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "CommandReader.h" diff --git a/jswinrt/jswinrt/CommandReader.h b/jswinrt/jswinrt/CommandReader.h index 7ca59ae..f8fe70e 100644 --- a/jswinrt/jswinrt/CommandReader.h +++ b/jswinrt/jswinrt/CommandReader.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once struct Option diff --git a/jswinrt/jswinrt/MetadataHelpers.cpp b/jswinrt/jswinrt/MetadataHelpers.cpp index df97041..d5a9f01 100644 --- a/jswinrt/jswinrt/MetadataHelpers.cpp +++ b/jswinrt/jswinrt/MetadataHelpers.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MetadataHelpers.h" diff --git a/jswinrt/jswinrt/MetadataHelpers.h b/jswinrt/jswinrt/MetadataHelpers.h index 122ef30..0a0d266 100644 --- a/jswinrt/jswinrt/MetadataHelpers.h +++ b/jswinrt/jswinrt/MetadataHelpers.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "Settings.h" diff --git a/jswinrt/jswinrt/MetadataTypes.cpp b/jswinrt/jswinrt/MetadataTypes.cpp index d77a4b6..fba62f8 100644 --- a/jswinrt/jswinrt/MetadataTypes.cpp +++ b/jswinrt/jswinrt/MetadataTypes.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MetadataTypes.h" diff --git a/jswinrt/jswinrt/MetadataTypes.h b/jswinrt/jswinrt/MetadataTypes.h index 24a54e1..ccdd1d6 100644 --- a/jswinrt/jswinrt/MetadataTypes.h +++ b/jswinrt/jswinrt/MetadataTypes.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/jswinrt/jswinrt/Parser.h b/jswinrt/jswinrt/Parser.h index 9d82fc6..db79337 100644 --- a/jswinrt/jswinrt/Parser.h +++ b/jswinrt/jswinrt/Parser.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // This file has been copied from cswinrt: https://github.com/microsoft/CsWinRT/blob/master/src/cswinrt/helpers.h and // modified. diff --git a/jswinrt/jswinrt/Settings.cpp b/jswinrt/jswinrt/Settings.cpp index abbee76..cfb2678 100644 --- a/jswinrt/jswinrt/Settings.cpp +++ b/jswinrt/jswinrt/Settings.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MetadataHelpers.h" diff --git a/jswinrt/jswinrt/Settings.h b/jswinrt/jswinrt/Settings.h index 77708c5..eec054f 100644 --- a/jswinrt/jswinrt/Settings.h +++ b/jswinrt/jswinrt/Settings.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "CommandReader.h" #include "TypeFilter.h" diff --git a/jswinrt/jswinrt/TextWriter.cpp b/jswinrt/jswinrt/TextWriter.cpp index 4452e3d..4206c47 100644 --- a/jswinrt/jswinrt/TextWriter.cpp +++ b/jswinrt/jswinrt/TextWriter.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "TextWriter.h" diff --git a/jswinrt/jswinrt/TextWriter.h b/jswinrt/jswinrt/TextWriter.h index aa4cf6d..52b539a 100644 --- a/jswinrt/jswinrt/TextWriter.h +++ b/jswinrt/jswinrt/TextWriter.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once class TextWriter diff --git a/jswinrt/jswinrt/TypeFilter.cpp b/jswinrt/jswinrt/TypeFilter.cpp index 6174486..2389525 100644 --- a/jswinrt/jswinrt/TypeFilter.cpp +++ b/jswinrt/jswinrt/TypeFilter.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MetadataHelpers.h" diff --git a/jswinrt/jswinrt/TypeFilter.h b/jswinrt/jswinrt/TypeFilter.h index a1d5eee..f2c5372 100644 --- a/jswinrt/jswinrt/TypeFilter.h +++ b/jswinrt/jswinrt/TypeFilter.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once // winmd::reader::filter has a rather unfortunate design that if no include filters are specified and only includes, diff --git a/jswinrt/jswinrt/TypescriptWriter.h b/jswinrt/jswinrt/TypescriptWriter.h index dd3ab04..bb7beb8 100644 --- a/jswinrt/jswinrt/TypescriptWriter.h +++ b/jswinrt/jswinrt/TypescriptWriter.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "MetadataHelpers.h" #include "Parser.h" diff --git a/jswinrt/jswinrt/Writer.cpp b/jswinrt/jswinrt/Writer.cpp index 8690ea6..b554c84 100644 --- a/jswinrt/jswinrt/Writer.cpp +++ b/jswinrt/jswinrt/Writer.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/jswinrt/jswinrt/Writer.h b/jswinrt/jswinrt/Writer.h index 7e36fd9..3d94096 100644 --- a/jswinrt/jswinrt/Writer.h +++ b/jswinrt/jswinrt/Writer.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/jswinrt/jswinrt/main.cpp b/jswinrt/jswinrt/main.cpp index c478fbd..889ae70 100644 --- a/jswinrt/jswinrt/main.cpp +++ b/jswinrt/jswinrt/main.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "CommandReader.h" diff --git a/jswinrt/jswinrt/pch.cpp b/jswinrt/jswinrt/pch.cpp index 1d9f38c..adf54a6 100644 --- a/jswinrt/jswinrt/pch.cpp +++ b/jswinrt/jswinrt/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/jswinrt/jswinrt/pch.h b/jswinrt/jswinrt/pch.h index b7b520a..ba69a40 100644 --- a/jswinrt/jswinrt/pch.h +++ b/jswinrt/jswinrt/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #pragma warning(disable : 4100) // unreferenced local variable #pragma warning(disable : 4505) // unreferenced local function has been removed diff --git a/jswinrt/jswinrt/react/ReactFileGenerator.cpp b/jswinrt/jswinrt/react/ReactFileGenerator.cpp index d3577e4..4c340c6 100644 --- a/jswinrt/jswinrt/react/ReactFileGenerator.cpp +++ b/jswinrt/jswinrt/react/ReactFileGenerator.cpp @@ -1,5 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. -#include +/#include #include "../MetadataHelpers.h" #include "../Writer.h" diff --git a/jswinrt/jswinrt/react/strings/base.cpp b/jswinrt/jswinrt/react/strings/base.cpp index f0822c5..30a084c 100644 --- a/jswinrt/jswinrt/react/strings/base.cpp +++ b/jswinrt/jswinrt/react/strings/base.cpp @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. #include "base.h" diff --git a/jswinrt/jswinrt/react/strings/base.h b/jswinrt/jswinrt/react/strings/base.h index 588ebe7..c3b7f2b 100644 --- a/jswinrt/jswinrt/react/strings/base.h +++ b/jswinrt/jswinrt/react/strings/base.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #ifndef NOMINMAX diff --git a/jswinrt/jswinrt/sha1.h b/jswinrt/jswinrt/sha1.h index 32d5bb7..8b4641c 100644 --- a/jswinrt/jswinrt/sha1.h +++ b/jswinrt/jswinrt/sha1.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/jswinrt/module/WinRTTurboModule.cpp b/jswinrt/module/WinRTTurboModule.cpp index 27294cf..ec67bc3 100644 --- a/jswinrt/module/WinRTTurboModule.cpp +++ b/jswinrt/module/WinRTTurboModule.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "WinRTTurboModule.h" diff --git a/jswinrt/module/WinRTTurboModule.h b/jswinrt/module/WinRTTurboModule.h index 5892776..d3011f0 100644 --- a/jswinrt/module/WinRTTurboModule.h +++ b/jswinrt/module/WinRTTurboModule.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/jswinrt/module/dllmain.cpp b/jswinrt/module/dllmain.cpp index 79c7089..ca7cfd5 100644 --- a/jswinrt/module/dllmain.cpp +++ b/jswinrt/module/dllmain.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" STDAPI_(BOOL) DllMain(_In_ HINSTANCE instance, DWORD reason, _In_opt_ void* /*reserved*/) diff --git a/jswinrt/strings/main.cpp b/jswinrt/strings/main.cpp index 7334d9f..75ba797 100644 --- a/jswinrt/strings/main.cpp +++ b/jswinrt/strings/main.cpp @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. #define _CRT_SECURE_NO_WARNINGS // fopen is not insecure... diff --git a/samples/RNWinRTTestApp/.eslintrc.js b/samples/RNWinRTTestApp/.eslintrc.js index 0639244..4881158 100644 --- a/samples/RNWinRTTestApp/.eslintrc.js +++ b/samples/RNWinRTTestApp/.eslintrc.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { root: true, extends: '@react-native-community', diff --git a/samples/RNWinRTTestApp/.prettierrc.js b/samples/RNWinRTTestApp/.prettierrc.js index 892f427..556e658 100644 --- a/samples/RNWinRTTestApp/.prettierrc.js +++ b/samples/RNWinRTTestApp/.prettierrc.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { bracketSpacing: false, jsxBracketSameLine: true, diff --git a/samples/RNWinRTTestApp/App.tsx b/samples/RNWinRTTestApp/App.tsx index 73e7932..58ea57e 100644 --- a/samples/RNWinRTTestApp/App.tsx +++ b/samples/RNWinRTTestApp/App.tsx @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import React from "react"; import { Image, diff --git a/samples/RNWinRTTestApp/WinRTTurboModule.js b/samples/RNWinRTTestApp/WinRTTurboModule.js index 5ed2cd8..ce3c3c1 100644 --- a/samples/RNWinRTTestApp/WinRTTurboModule.js +++ b/samples/RNWinRTTestApp/WinRTTurboModule.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; const module = TurboModuleRegistry.get('WinRTTurboModule'); if (module) { diff --git a/samples/RNWinRTTestApp/__tests__/App-test.tsx b/samples/RNWinRTTestApp/__tests__/App-test.tsx index 4011149..2b4384e 100644 --- a/samples/RNWinRTTestApp/__tests__/App-test.tsx +++ b/samples/RNWinRTTestApp/__tests__/App-test.tsx @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/samples/RNWinRTTestApp/babel.config.js b/samples/RNWinRTTestApp/babel.config.js index e440d05..3bb40bb 100644 --- a/samples/RNWinRTTestApp/babel.config.js +++ b/samples/RNWinRTTestApp/babel.config.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { presets: ['module:metro-react-native-babel-preset'], }; diff --git a/samples/RNWinRTTestApp/index.js b/samples/RNWinRTTestApp/index.js index 5bdc77c..641ea6d 100644 --- a/samples/RNWinRTTestApp/index.js +++ b/samples/RNWinRTTestApp/index.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/samples/RNWinRTTestApp/metro.config.js b/samples/RNWinRTTestApp/metro.config.js index 0a9d8f1..7acde2b 100644 --- a/samples/RNWinRTTestApp/metro.config.js +++ b/samples/RNWinRTTestApp/metro.config.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * Metro configuration for React Native * https://github.com/facebook/react-native diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp index cd68976..d1c0623 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "App.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h index 0bceef1..1791069 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "App.xaml.g.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl index 6d311b3..a5a8f23 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace RNWinRTTestApp { } diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp index 13e9d0b..dc3b34b 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows" // clang-format off #include "pch.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h index bd1ceb2..ccb1935 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows" #pragma once diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp index d6ee3f9..2fc6a0d 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MainPage.h" #if __has_include("MainPage.g.cpp") diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h index cbd46e8..f779e8e 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "MainPage.g.h" #include diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl index 71e6ef0..f7366d2 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace RNWinRTTestApp { [default_interface] diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.cpp index 054fd03..1f65b10 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "ReactPackageProvider.h" #include "NativeModules.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.h index ef7c3bb..b38367f 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/ReactPackageProvider.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "winrt/Microsoft.ReactNative.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp index e0d2ef1..ee3c174 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h index 30ca2dd..dbb06d2 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #define NOMINMAX diff --git a/samples/RNWinRTTestApp/windows/TypeTest.d.ts b/samples/RNWinRTTestApp/windows/TypeTest.d.ts index 8d54cca..9f25a19 100644 --- a/samples/RNWinRTTestApp/windows/TypeTest.d.ts +++ b/samples/RNWinRTTestApp/windows/TypeTest.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + declare namespace Wind { class Test { hello(): void; diff --git a/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageProvider.h b/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageProvider.h index b7cf43a..d0a8126 100644 --- a/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageProvider.h +++ b/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageProvider.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageprovider.cpp b/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageprovider.cpp index 375a213..d10b66e 100644 --- a/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageprovider.cpp +++ b/samples/RNWinRTTestApp/windows/WinRTTurboModule/ReactPackageprovider.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "ReactPackageProvider.h" #include diff --git a/samples/RNWinRTTestApp/windows/WinRTTurboModule/WinRTTurboModule.idl b/samples/RNWinRTTestApp/windows/WinRTTurboModule/WinRTTurboModule.idl index cf34fd4..4fa9af1 100644 --- a/samples/RNWinRTTestApp/windows/WinRTTurboModule/WinRTTurboModule.idl +++ b/samples/RNWinRTTestApp/windows/WinRTTurboModule/WinRTTurboModule.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace WinRTTurboModule { [webhosthidden] diff --git a/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp b/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp index 9e6b2e0..a19ee70 100644 --- a/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp +++ b/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h b/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h index c7fa935..ec630b6 100644 --- a/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h +++ b/samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/samples/RNWinRTTestApp/windows/test.ts b/samples/RNWinRTTestApp/windows/test.ts index 3341cd0..e2ae36f 100644 --- a/samples/RNWinRTTestApp/windows/test.ts +++ b/samples/RNWinRTTestApp/windows/test.ts @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. export default class Test { diff --git a/samples/RNWinRTTestApp/winrt-uwp.d.ts b/samples/RNWinRTTestApp/winrt-uwp.d.ts index 9aac165..3d3ca5e 100644 --- a/samples/RNWinRTTestApp/winrt-uwp.d.ts +++ b/samples/RNWinRTTestApp/winrt-uwp.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // This is a clone of the package, with a fix for IPromiseWithOperation declaration. // Type definitions for Universal Windows Platform diff --git a/scripts/mdExts.js b/scripts/mdExts.js index 0f9f974..6b1dee3 100644 --- a/scripts/mdExts.js +++ b/scripts/mdExts.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + "use strict"; function initializeScript() diff --git a/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp b/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp index 29e3a39..938c458 100644 --- a/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp +++ b/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "ReactPackageProvider.h" diff --git a/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h b/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h index 10021aa..c213d88 100644 --- a/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h +++ b/sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl b/sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl index cd4c6a7..23a3707 100644 --- a/sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl +++ b/sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace WinRTTurboModule { [webhosthidden] diff --git a/sdk/react/windows/WinRTTurboModule/pch.cpp b/sdk/react/windows/WinRTTurboModule/pch.cpp index bcb5590..5bf6851 100644 --- a/sdk/react/windows/WinRTTurboModule/pch.cpp +++ b/sdk/react/windows/WinRTTurboModule/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/sdk/react/windows/WinRTTurboModule/pch.h b/sdk/react/windows/WinRTTurboModule/pch.h index f9bcce0..4879749 100644 --- a/sdk/react/windows/WinRTTurboModule/pch.h +++ b/sdk/react/windows/WinRTTurboModule/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/tests/RnWinRTTests/.eslintrc.js b/tests/RnWinRTTests/.eslintrc.js index 40c6dcd..db7c619 100644 --- a/tests/RnWinRTTests/.eslintrc.js +++ b/tests/RnWinRTTests/.eslintrc.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { root: true, extends: '@react-native-community', diff --git a/tests/RnWinRTTests/.prettierrc.js b/tests/RnWinRTTests/.prettierrc.js index 5c4de1a..a5b01ba 100644 --- a/tests/RnWinRTTests/.prettierrc.js +++ b/tests/RnWinRTTests/.prettierrc.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { bracketSpacing: false, jsxBracketSameLine: true, diff --git a/tests/RnWinRTTests/App.js b/tests/RnWinRTTests/App.js index 9afdec4..2d28299 100644 --- a/tests/RnWinRTTests/App.js +++ b/tests/RnWinRTTests/App.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/ArrayTests.js b/tests/RnWinRTTests/ArrayTests.js index c3b7161..bdafdb5 100644 --- a/tests/RnWinRTTests/ArrayTests.js +++ b/tests/RnWinRTTests/ArrayTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/AsyncTests.js b/tests/RnWinRTTests/AsyncTests.js index 51eb424..df7ca7e 100644 --- a/tests/RnWinRTTests/AsyncTests.js +++ b/tests/RnWinRTTests/AsyncTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/BasicFunctionTests.js b/tests/RnWinRTTests/BasicFunctionTests.js index a251f74..5cba13b 100644 --- a/tests/RnWinRTTests/BasicFunctionTests.js +++ b/tests/RnWinRTTests/BasicFunctionTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/CollectionsTests.js b/tests/RnWinRTTests/CollectionsTests.js index fbc9106..5ed9dcb 100644 --- a/tests/RnWinRTTests/CollectionsTests.js +++ b/tests/RnWinRTTests/CollectionsTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/DelegateAndEventTests.js b/tests/RnWinRTTests/DelegateAndEventTests.js index 09e58a4..799d194 100644 --- a/tests/RnWinRTTests/DelegateAndEventTests.js +++ b/tests/RnWinRTTests/DelegateAndEventTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/InheritanceTests.js b/tests/RnWinRTTests/InheritanceTests.js index 7f9ee42..98d7fd8 100644 --- a/tests/RnWinRTTests/InheritanceTests.js +++ b/tests/RnWinRTTests/InheritanceTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/PropertiesTests.js b/tests/RnWinRTTests/PropertiesTests.js index 0b37f5e..0968355 100644 --- a/tests/RnWinRTTests/PropertiesTests.js +++ b/tests/RnWinRTTests/PropertiesTests.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/Scenario.js b/tests/RnWinRTTests/Scenario.js index 41eafcd..5816898 100644 --- a/tests/RnWinRTTests/Scenario.js +++ b/tests/RnWinRTTests/Scenario.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/Styles.js b/tests/RnWinRTTests/Styles.js index 94e3dd0..7918a2d 100644 --- a/tests/RnWinRTTests/Styles.js +++ b/tests/RnWinRTTests/Styles.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/TestCommon.js b/tests/RnWinRTTests/TestCommon.js index 4e83301..8798b3b 100644 --- a/tests/RnWinRTTests/TestCommon.js +++ b/tests/RnWinRTTests/TestCommon.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/WinRTTurboModule.js b/tests/RnWinRTTests/WinRTTurboModule.js index e3c9a67..08bc8ff 100644 --- a/tests/RnWinRTTests/WinRTTurboModule.js +++ b/tests/RnWinRTTests/WinRTTurboModule.js @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry'; diff --git a/tests/RnWinRTTests/__tests__/App-test.tsx b/tests/RnWinRTTests/__tests__/App-test.tsx index 1784766..f14a383 100644 --- a/tests/RnWinRTTests/__tests__/App-test.tsx +++ b/tests/RnWinRTTests/__tests__/App-test.tsx @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/babel.config.js b/tests/RnWinRTTests/babel.config.js index f842b77..d16a8ca 100644 --- a/tests/RnWinRTTests/babel.config.js +++ b/tests/RnWinRTTests/babel.config.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + module.exports = { presets: ['module:metro-react-native-babel-preset'], }; diff --git a/tests/RnWinRTTests/index.js b/tests/RnWinRTTests/index.js index cbbaff3..32591c1 100644 --- a/tests/RnWinRTTests/index.js +++ b/tests/RnWinRTTests/index.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * @format */ diff --git a/tests/RnWinRTTests/metro.config.js b/tests/RnWinRTTests/metro.config.js index 5cae991..c8fe080 100644 --- a/tests/RnWinRTTests/metro.config.js +++ b/tests/RnWinRTTests/metro.config.js @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * Metro configuration for React Native * https://github.com/facebook/react-native diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/App.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/App.cpp index 87d1326..1851ac0 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/App.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/App.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "App.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/App.h b/tests/RnWinRTTests/windows/RnWinRTTests/App.h index b8ec434..e9e7e52 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/App.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/App.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "App.xaml.g.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/App.idl b/tests/RnWinRTTests/windows/RnWinRTTests/App.idl index 0d3fc1f..ed21f97 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/App.idl +++ b/tests/RnWinRTTests/windows/RnWinRTTests/App.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace RnWinRTTests { } diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp index 7ab2110..b18eca5 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows" // clang-format off #include "pch.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h index 31cd594..b18b305 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + // AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows" #pragma once diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp index db5078c..013d486 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "MainPage.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h index 3bbdfdb..542b7b0 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "MainPage.g.h" #include diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.idl b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.idl index bd1abfa..1d7fb3f 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.idl +++ b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace RnWinRTTests { [default_interface] diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.cpp index 540be9c..c352697 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "NativeModules.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.h b/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.h index 09e81c3..b6ad73f 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/ReactPackageProvider.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "winrt/Microsoft.ReactNative.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp index bcb5590..5bf6851 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/pch.h b/tests/RnWinRTTests/windows/RnWinRTTests/pch.h index 4d4a378..1c83c15 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/pch.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #define NOMINMAX diff --git a/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.cpp b/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.cpp index 359631f..89aed4a 100644 --- a/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "HierarchyBase.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.h b/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.h index 9afb9c5..3151b0e 100644 --- a/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.h +++ b/tests/RnWinRTTests/windows/TestComponent/HierarchyBase.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "HierarchyBase.g.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.cpp b/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.cpp index eed9d2e..dea9996 100644 --- a/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "HierarchyDerived.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.h b/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.h index bedce38..a31116a 100644 --- a/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.h +++ b/tests/RnWinRTTests/windows/TestComponent/HierarchyDerived.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "HierarchyBase.h" #include "HierarchyDerived.g.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.cpp b/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.cpp index 446d388..5bc4406 100644 --- a/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "StaticOnlyTest.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.h b/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.h index eaec151..f9b4299 100644 --- a/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.h +++ b/tests/RnWinRTTests/windows/TestComponent/StaticOnlyTest.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "StaticOnlyTest.g.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/Test.cpp b/tests/RnWinRTTests/windows/TestComponent/Test.cpp index 4646d41..2aa1d11 100644 --- a/tests/RnWinRTTests/windows/TestComponent/Test.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/Test.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include diff --git a/tests/RnWinRTTests/windows/TestComponent/Test.h b/tests/RnWinRTTests/windows/TestComponent/Test.h index f24a602..9527c03 100644 --- a/tests/RnWinRTTests/windows/TestComponent/Test.h +++ b/tests/RnWinRTTests/windows/TestComponent/Test.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include "Test.g.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/TestComponent.idl b/tests/RnWinRTTests/windows/TestComponent/TestComponent.idl index b78dee8..65f6817 100644 --- a/tests/RnWinRTTests/windows/TestComponent/TestComponent.idl +++ b/tests/RnWinRTTests/windows/TestComponent/TestComponent.idl @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. // NOTE: The majority of this is derived from https://github.com/microsoft/TestWinRT. The implementation has diverged, // however because (1) these tests were added in the early phases of development, and (2) the TestWinRT project does not diff --git a/tests/RnWinRTTests/windows/TestComponent/pch.cpp b/tests/RnWinRTTests/windows/TestComponent/pch.cpp index bcb5590..5bf6851 100644 --- a/tests/RnWinRTTests/windows/TestComponent/pch.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/tests/RnWinRTTests/windows/TestComponent/pch.h b/tests/RnWinRTTests/windows/TestComponent/pch.h index a4fa3ef..332c401 100644 --- a/tests/RnWinRTTests/windows/TestComponent/pch.h +++ b/tests/RnWinRTTests/windows/TestComponent/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.cpp b/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.cpp index 29e3a39..938c458 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.cpp +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.cpp @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" #include "ReactPackageProvider.h" diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.h b/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.h index 10021aa..c213d88 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.h +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/ReactPackageProvider.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/WinRTTurboModule.idl b/tests/RnWinRTTests/windows/WinRTTurboModule/WinRTTurboModule.idl index cd4c6a7..23a3707 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/WinRTTurboModule.idl +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/WinRTTurboModule.idl @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + namespace WinRTTurboModule { [webhosthidden] diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp index bcb5590..5bf6851 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp @@ -1 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #include "pch.h" diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h index f9bcce0..4879749 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #pragma once #include diff --git a/tests/TestArtifacts/TestComponent.d.ts b/tests/TestArtifacts/TestComponent.d.ts index 0346fae..ff66e07 100644 --- a/tests/TestArtifacts/TestComponent.d.ts +++ b/tests/TestArtifacts/TestComponent.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace TestComponent { diff --git a/tests/TestArtifacts/Windows.Foundation.Collections.d.ts b/tests/TestArtifacts/Windows.Foundation.Collections.d.ts index f32f780..b4bebf8 100644 --- a/tests/TestArtifacts/Windows.Foundation.Collections.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Collections.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Foundation.Collections { diff --git a/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts b/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts index e4ee4dc..1e29036 100644 --- a/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Foundation.Diagnostics { diff --git a/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts b/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts index 0b88f62..607745e 100644 --- a/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Foundation.Metadata { diff --git a/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts b/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts index abd3047..da11898 100644 --- a/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Foundation.Numerics { diff --git a/tests/TestArtifacts/Windows.Foundation.d.ts b/tests/TestArtifacts/Windows.Foundation.d.ts index 5a1a9eb..8847593 100644 --- a/tests/TestArtifacts/Windows.Foundation.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Foundation { diff --git a/tests/TestArtifacts/Windows.Web.Http.d.ts b/tests/TestArtifacts/Windows.Web.Http.d.ts index 8f0ae89..0c66588 100644 --- a/tests/TestArtifacts/Windows.Web.Http.d.ts +++ b/tests/TestArtifacts/Windows.Web.Http.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Web.Http { diff --git a/tests/TestArtifacts/Windows.Web.d.ts b/tests/TestArtifacts/Windows.Web.d.ts index c208825..e9e4d0a 100644 --- a/tests/TestArtifacts/Windows.Web.d.ts +++ b/tests/TestArtifacts/Windows.Web.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows.Web { diff --git a/tests/TestArtifacts/Windows.d.ts b/tests/TestArtifacts/Windows.d.ts index 3689afd..4e4d3e7 100644 --- a/tests/TestArtifacts/Windows.d.ts +++ b/tests/TestArtifacts/Windows.d.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //tslint:disable declare namespace Windows { From 1effe54feef8b63ea6650a388fe59cbf69cdf1af Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Tue, 9 Nov 2021 14:50:00 -0800 Subject: [PATCH 02/10] remove from generated files --- tests/TestArtifacts/Windows.Foundation.Collections.d.ts | 3 --- tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts | 3 --- tests/TestArtifacts/Windows.Foundation.Metadata.d.ts | 3 --- tests/TestArtifacts/Windows.Foundation.Numerics.d.ts | 3 --- tests/TestArtifacts/Windows.Foundation.d.ts | 3 --- tests/TestArtifacts/Windows.Web.Http.d.ts | 3 --- tests/TestArtifacts/Windows.Web.d.ts | 3 --- tests/TestArtifacts/Windows.d.ts | 3 --- 8 files changed, 24 deletions(-) diff --git a/tests/TestArtifacts/Windows.Foundation.Collections.d.ts b/tests/TestArtifacts/Windows.Foundation.Collections.d.ts index b4bebf8..f32f780 100644 --- a/tests/TestArtifacts/Windows.Foundation.Collections.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Collections.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Foundation.Collections { diff --git a/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts b/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts index 1e29036..e4ee4dc 100644 --- a/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Diagnostics.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Foundation.Diagnostics { diff --git a/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts b/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts index 607745e..0b88f62 100644 --- a/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Metadata.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Foundation.Metadata { diff --git a/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts b/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts index da11898..abd3047 100644 --- a/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.Numerics.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Foundation.Numerics { diff --git a/tests/TestArtifacts/Windows.Foundation.d.ts b/tests/TestArtifacts/Windows.Foundation.d.ts index 8847593..5a1a9eb 100644 --- a/tests/TestArtifacts/Windows.Foundation.d.ts +++ b/tests/TestArtifacts/Windows.Foundation.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Foundation { diff --git a/tests/TestArtifacts/Windows.Web.Http.d.ts b/tests/TestArtifacts/Windows.Web.Http.d.ts index 0c66588..8f0ae89 100644 --- a/tests/TestArtifacts/Windows.Web.Http.d.ts +++ b/tests/TestArtifacts/Windows.Web.Http.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Web.Http { diff --git a/tests/TestArtifacts/Windows.Web.d.ts b/tests/TestArtifacts/Windows.Web.d.ts index e9e4d0a..c208825 100644 --- a/tests/TestArtifacts/Windows.Web.d.ts +++ b/tests/TestArtifacts/Windows.Web.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows.Web { diff --git a/tests/TestArtifacts/Windows.d.ts b/tests/TestArtifacts/Windows.d.ts index 4e4d3e7..3689afd 100644 --- a/tests/TestArtifacts/Windows.d.ts +++ b/tests/TestArtifacts/Windows.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace Windows { From 22ce3c093b4de0df414ced060ca110778821dc3c Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Tue, 9 Nov 2021 15:02:40 -0800 Subject: [PATCH 03/10] missed a file --- tests/TestArtifacts/TestComponent.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/TestArtifacts/TestComponent.d.ts b/tests/TestArtifacts/TestComponent.d.ts index ff66e07..0346fae 100644 --- a/tests/TestArtifacts/TestComponent.d.ts +++ b/tests/TestArtifacts/TestComponent.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - //tslint:disable declare namespace TestComponent { From 1c2f85951748ec57d1f5363a6b12b124edaaf5a8 Mon Sep 17 00:00:00 2001 From: angelazhangmsft Date: Wed, 10 Nov 2021 08:44:55 -0800 Subject: [PATCH 04/10] typo --- jswinrt/jswinrt/react/ReactFileGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jswinrt/jswinrt/react/ReactFileGenerator.cpp b/jswinrt/jswinrt/react/ReactFileGenerator.cpp index 4c340c6..e76b081 100644 --- a/jswinrt/jswinrt/react/ReactFileGenerator.cpp +++ b/jswinrt/jswinrt/react/ReactFileGenerator.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/#include +#include #include "../MetadataHelpers.h" #include "../Writer.h" From 1c250552385b6be4b3c27af67fb179ccef8be5a7 Mon Sep 17 00:00:00 2001 From: angelazhangmsft Date: Wed, 10 Nov 2021 09:23:41 -0800 Subject: [PATCH 05/10] weird character got added --- tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp index 5bf6851..adf54a6 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.cpp @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" From 87345d1dfbb56753c9b7306ed43cce7ba555a72b Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Wed, 10 Nov 2021 10:28:47 -0800 Subject: [PATCH 06/10] character didn't get fixed --- tests/RnWinRTTests/windows/TestComponent/pch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RnWinRTTests/windows/TestComponent/pch.cpp b/tests/RnWinRTTests/windows/TestComponent/pch.cpp index 5bf6851..adf54a6 100644 --- a/tests/RnWinRTTests/windows/TestComponent/pch.cpp +++ b/tests/RnWinRTTests/windows/TestComponent/pch.cpp @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" From 6bf2a7a09d0983b720eb05dbfb1e092eb487c53b Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Wed, 10 Nov 2021 14:24:39 -0800 Subject: [PATCH 07/10] pipeline failure --- tests/RnWinRTTests/windows/TestComponent/pch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RnWinRTTests/windows/TestComponent/pch.h b/tests/RnWinRTTests/windows/TestComponent/pch.h index 332c401..fc6ce8a 100644 --- a/tests/RnWinRTTests/windows/TestComponent/pch.h +++ b/tests/RnWinRTTests/windows/TestComponent/pch.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #include From 826539b817bfe66cea5dfd68a496f4099d086a99 Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Wed, 10 Nov 2021 15:57:52 -0800 Subject: [PATCH 08/10] edits --- jswinrt/jswinrt/Writer.cpp | 1 - .../windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp | 3 --- .../windows/RNWinRTTestApp/AutolinkedNativeModules.g.h | 3 --- samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp | 2 +- samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h | 2 +- samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp | 2 +- samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h | 2 +- samples/RNWinRTTestApp/winrt-uwp.d.ts | 3 --- sdk/react/windows/WinRTTurboModule/pch.h | 2 +- tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp | 2 +- tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h | 2 +- tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp | 2 +- tests/RnWinRTTests/windows/RnWinRTTests/pch.h | 2 +- tests/RnWinRTTests/windows/WinRTTurboModule/pch.h | 2 +- 14 files changed, 10 insertions(+), 20 deletions(-) diff --git a/jswinrt/jswinrt/Writer.cpp b/jswinrt/jswinrt/Writer.cpp index b554c84..c283900 100644 --- a/jswinrt/jswinrt/Writer.cpp +++ b/jswinrt/jswinrt/Writer.cpp @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - #include "pch.h" #include "Writer.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp index dc3b34b..13e9d0b 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.cpp @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - // AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows" // clang-format off #include "pch.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h index ccb1935..bd1ceb2 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/AutolinkedNativeModules.g.h @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - // AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows" #pragma once diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp index 2fc6a0d..f1b7130 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" #include "MainPage.h" #if __has_include("MainPage.g.cpp") #include "MainPage.g.cpp" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h index f779e8e..6ad7f74 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #include "MainPage.g.h" #include diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp index ee3c174..a19ee70 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" diff --git a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h index dbb06d2..ae0e137 100644 --- a/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h +++ b/samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #define NOMINMAX diff --git a/samples/RNWinRTTestApp/winrt-uwp.d.ts b/samples/RNWinRTTestApp/winrt-uwp.d.ts index 3d3ca5e..9aac165 100644 --- a/samples/RNWinRTTestApp/winrt-uwp.d.ts +++ b/samples/RNWinRTTestApp/winrt-uwp.d.ts @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - // This is a clone of the package, with a fix for IPromiseWithOperation declaration. // Type definitions for Universal Windows Platform diff --git a/sdk/react/windows/WinRTTurboModule/pch.h b/sdk/react/windows/WinRTTurboModule/pch.h index 4879749..0220c5a 100644 --- a/sdk/react/windows/WinRTTurboModule/pch.h +++ b/sdk/react/windows/WinRTTurboModule/pch.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #include diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp index 013d486..bd550d2 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" #include "MainPage.h" #if __has_include("MainPage.g.cpp") diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h index 542b7b0..6cc5e1d 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/MainPage.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #include "MainPage.g.h" #include diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp index 5bf6851..adf54a6 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/pch.cpp @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#include "pch.h" +#include "pch.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/pch.h b/tests/RnWinRTTests/windows/RnWinRTTests/pch.h index 1c83c15..b94fc50 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/pch.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/pch.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #define NOMINMAX diff --git a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h index 4879749..0220c5a 100644 --- a/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h +++ b/tests/RnWinRTTests/windows/WinRTTurboModule/pch.h @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#pragma once +#pragma once #include From e2d7c7ebeec51acd4cf78256e7e1de6302581ce5 Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Fri, 12 Nov 2021 15:50:37 -0800 Subject: [PATCH 09/10] try removing from non handauthored files --- tests/RnWinRTTests/.eslintrc.js | 3 --- tests/RnWinRTTests/.prettierrc.js | 3 --- tests/RnWinRTTests/babel.config.js | 3 --- tests/RnWinRTTests/metro.config.js | 3 --- 4 files changed, 12 deletions(-) diff --git a/tests/RnWinRTTests/.eslintrc.js b/tests/RnWinRTTests/.eslintrc.js index db7c619..40c6dcd 100644 --- a/tests/RnWinRTTests/.eslintrc.js +++ b/tests/RnWinRTTests/.eslintrc.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { root: true, extends: '@react-native-community', diff --git a/tests/RnWinRTTests/.prettierrc.js b/tests/RnWinRTTests/.prettierrc.js index a5b01ba..5c4de1a 100644 --- a/tests/RnWinRTTests/.prettierrc.js +++ b/tests/RnWinRTTests/.prettierrc.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { bracketSpacing: false, jsxBracketSameLine: true, diff --git a/tests/RnWinRTTests/babel.config.js b/tests/RnWinRTTests/babel.config.js index d16a8ca..f842b77 100644 --- a/tests/RnWinRTTests/babel.config.js +++ b/tests/RnWinRTTests/babel.config.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { presets: ['module:metro-react-native-babel-preset'], }; diff --git a/tests/RnWinRTTests/metro.config.js b/tests/RnWinRTTests/metro.config.js index c8fe080..5cae991 100644 --- a/tests/RnWinRTTests/metro.config.js +++ b/tests/RnWinRTTests/metro.config.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - /** * Metro configuration for React Native * https://github.com/facebook/react-native From 270534ce67d463126cc2ebdf9a1000c0c5c49ebf Mon Sep 17 00:00:00 2001 From: Angela Zhang Date: Fri, 12 Nov 2021 17:09:34 -0800 Subject: [PATCH 10/10] remove from generated files --- samples/RNWinRTTestApp/.eslintrc.js | 3 --- samples/RNWinRTTestApp/.prettierrc.js | 3 --- samples/RNWinRTTestApp/babel.config.js | 3 --- samples/RNWinRTTestApp/metro.config.js | 3 --- .../windows/RnWinRTTests/AutolinkedNativeModules.g.cpp | 3 --- .../windows/RnWinRTTests/AutolinkedNativeModules.g.h | 3 --- 6 files changed, 18 deletions(-) diff --git a/samples/RNWinRTTestApp/.eslintrc.js b/samples/RNWinRTTestApp/.eslintrc.js index 4881158..0639244 100644 --- a/samples/RNWinRTTestApp/.eslintrc.js +++ b/samples/RNWinRTTestApp/.eslintrc.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { root: true, extends: '@react-native-community', diff --git a/samples/RNWinRTTestApp/.prettierrc.js b/samples/RNWinRTTestApp/.prettierrc.js index 556e658..892f427 100644 --- a/samples/RNWinRTTestApp/.prettierrc.js +++ b/samples/RNWinRTTestApp/.prettierrc.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { bracketSpacing: false, jsxBracketSameLine: true, diff --git a/samples/RNWinRTTestApp/babel.config.js b/samples/RNWinRTTestApp/babel.config.js index 3bb40bb..e440d05 100644 --- a/samples/RNWinRTTestApp/babel.config.js +++ b/samples/RNWinRTTestApp/babel.config.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - module.exports = { presets: ['module:metro-react-native-babel-preset'], }; diff --git a/samples/RNWinRTTestApp/metro.config.js b/samples/RNWinRTTestApp/metro.config.js index 7acde2b..0a9d8f1 100644 --- a/samples/RNWinRTTestApp/metro.config.js +++ b/samples/RNWinRTTestApp/metro.config.js @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - /** * Metro configuration for React Native * https://github.com/facebook/react-native diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp index b18eca5..7ab2110 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp +++ b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.cpp @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - // AutolinkedNativeModules.g.cpp contents generated by "react-native autolink-windows" // clang-format off #include "pch.h" diff --git a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h index b18b305..31cd594 100644 --- a/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h +++ b/tests/RnWinRTTests/windows/RnWinRTTests/AutolinkedNativeModules.g.h @@ -1,6 +1,3 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - // AutolinkedNativeModules.g.h contents generated by "react-native autolink-windows" #pragma once