Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jswinrt/js/WinRTTurboModule.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/CommandReader.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "CommandReader.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/CommandReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

struct Option
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/MetadataHelpers.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "MetadataHelpers.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/MetadataHelpers.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include "Settings.h"

Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/MetadataTypes.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "MetadataTypes.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/MetadataTypes.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <unordered_map>
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/Parser.h
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/Settings.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "MetadataHelpers.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/Settings.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include "CommandReader.h"
#include "TypeFilter.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/TextWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "TextWriter.h"
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/TextWriter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

class TextWriter
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/TypeFilter.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "MetadataHelpers.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/TypeFilter.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/TypescriptWriter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include "MetadataHelpers.h"
#include "Parser.h"
Expand Down
2 changes: 2 additions & 0 deletions jswinrt/jswinrt/Writer.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/Writer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <filesystem>
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "CommandReader.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/pch.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/pch.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions jswinrt/jswinrt/react/ReactFileGenerator.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include <pch.h>

Expand Down
2 changes: 2 additions & 0 deletions jswinrt/jswinrt/react/strings/base.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "base.h"

Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/react/strings/base.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#ifndef NOMINMAX
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/jswinrt/sha1.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <algorithm>
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/module/WinRTTurboModule.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "WinRTTurboModule.h"
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/module/WinRTTurboModule.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <ReactCommon/TurboModule.h>
Expand Down
3 changes: 3 additions & 0 deletions jswinrt/module/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -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*/)
Expand Down
2 changes: 2 additions & 0 deletions jswinrt/strings/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#define _CRT_SECURE_NO_WARNINGS // fopen is not insecure...

Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import React from "react";
import {
Image,
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/WinRTTurboModule.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/__tests__/App-test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* @format
*/
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* @format
*/
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "App.h"
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include "App.xaml.g.h"
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/RNWinRTTestApp/App.idl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace RNWinRTTestApp
{
}
5 changes: 4 additions & 1 deletion samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "pch.h"
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
#include "MainPage.h"
#if __has_include("MainPage.g.cpp")
#include "MainPage.g.cpp"
Expand Down
5 changes: 4 additions & 1 deletion samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#pragma once
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include "MainPage.g.h"
#include <winrt/Microsoft.ReactNative.h>

Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/RNWinRTTestApp/MainPage.idl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace RNWinRTTestApp
{
[default_interface]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
#include "ReactPackageProvider.h"
#include "NativeModules.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include "winrt/Microsoft.ReactNative.h"
Expand Down
5 changes: 4 additions & 1 deletion samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#include "pch.h"
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
5 changes: 4 additions & 1 deletion samples/RNWinRTTestApp/windows/RNWinRTTestApp/pch.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#pragma once
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#define NOMINMAX

Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/TypeTest.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

declare namespace Wind {
class Test {
hello(): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include <ReactPackageProvider.g.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
#include "ReactPackageProvider.h"
#include <ReactPackageProvider.g.cpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace WinRTTurboModule
{
[webhosthidden]
Expand Down
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
3 changes: 3 additions & 0 deletions samples/RNWinRTTestApp/windows/WinRTTurboModule/pch.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <rnwinrt\base.h>
Expand Down
2 changes: 2 additions & 0 deletions samples/RNWinRTTestApp/windows/test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export default class Test {

Expand Down
3 changes: 3 additions & 0 deletions scripts/mdExts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

"use strict";

function initializeScript()
Expand Down
3 changes: 3 additions & 0 deletions sdk/react/windows/WinRTTurboModule/ReactPackageProvider.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"

#include "ReactPackageProvider.h"
Expand Down
3 changes: 3 additions & 0 deletions sdk/react/windows/WinRTTurboModule/ReactPackageProvider.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
#include <ReactPackageProvider.g.h>

Expand Down
3 changes: 3 additions & 0 deletions sdk/react/windows/WinRTTurboModule/WinRTTurboModule.idl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace WinRTTurboModule
{
[webhosthidden]
Expand Down
3 changes: 3 additions & 0 deletions sdk/react/windows/WinRTTurboModule/pch.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pch.h"
5 changes: 4 additions & 1 deletion sdk/react/windows/WinRTTurboModule/pch.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#pragma once
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once

#include <rnwinrt/base.h>

Expand Down
3 changes: 3 additions & 0 deletions tests/RnWinRTTests/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* @format
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/RnWinRTTests/ArrayTests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* @format
*/
Expand Down
Loading