@react-native-clipboard/clipboard 1.15.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,111 +1,114 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- This project was created with react-native-windows 0.75.10 -->
2
3
  <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props')" />
4
- <PropertyGroup Label="Globals">
5
- <CppWinRTOptimized>true</CppWinRTOptimized>
6
- <CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
7
- <CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata>
8
- <MinimalCoreWin>true</MinimalCoreWin>
9
- <ProjectGuid>{99a938fa-9ff3-47a0-9256-195a06e7fdd1}</ProjectGuid>
10
- <ProjectName>Clipboard</ProjectName>
11
- <RootNamespace>NativeClipboard</RootNamespace>
12
- <DefaultLanguage>en-US</DefaultLanguage>
13
- <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
14
- <AppContainerApplication>true</AppContainerApplication>
15
- <ApplicationType>Windows Store</ApplicationType>
16
- <ApplicationTypeRevision>10.0</ApplicationTypeRevision>
17
- </PropertyGroup>
4
+ <Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
5
+ <Choose>
6
+ <When Condition="'$(UseFabric)'=='true'">
7
+ <PropertyGroup Label="Globals">
8
+ <CppWinRTOptimized>true</CppWinRTOptimized>
9
+ <MinimalCoreWin>true</MinimalCoreWin>
10
+ <ProjectGuid>{90BFF18B-474B-445D-9847-B065853288D8}</ProjectGuid>
11
+ <ProjectName>Clipboard</ProjectName>
12
+ <Keyword>Win32Proj</Keyword>
13
+ <RootNamespace>Clipboard</RootNamespace>
14
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
15
+ <DefaultLanguage>en-US</DefaultLanguage>
16
+ <MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
17
+ <AppxPackage>false</AppxPackage>
18
+ </PropertyGroup>
19
+ </When>
20
+ <Otherwise>
21
+ <PropertyGroup Label="Globals">
22
+ <CppWinRTOptimized>true</CppWinRTOptimized>
23
+ <MinimalCoreWin>true</MinimalCoreWin>
24
+ <ProjectGuid>{90BFF18B-474B-445D-9847-B065853288D8}</ProjectGuid>
25
+ <ProjectName>Clipboard</ProjectName>
26
+ <Keyword>Win32Proj</Keyword>
27
+ <RootNamespace>Clipboard</RootNamespace>
28
+ <DefaultLanguage>en-US</DefaultLanguage>
29
+ <MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
30
+ <AppContainerApplication>true</AppContainerApplication>
31
+ <ApplicationType>Windows Store</ApplicationType>
32
+ <ApplicationTypeRevision>10.0</ApplicationTypeRevision>
33
+ </PropertyGroup>
34
+ </Otherwise>
35
+ </Choose>
18
36
  <PropertyGroup Label="ReactNativeWindowsProps">
19
37
  <ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
38
+ <RunAutolinkCheck>false</RunAutolinkCheck>
20
39
  </PropertyGroup>
21
- <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props')" />
22
- <PropertyGroup Label="Fallback Windows SDK Versions">
23
- <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
24
- <WindowsTargetPlatformMinVersion Condition=" '$(WindowsTargetPlatformMinVersion)' == '' ">10.0.17763.0</WindowsTargetPlatformMinVersion>
25
- </PropertyGroup>
40
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" />
41
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\Generated\PackageVersion.g.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\Generated\PackageVersion.g.props')"/>
26
42
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27
43
  <ItemGroup Label="ProjectConfigurations">
28
- <ProjectConfiguration Include="Debug|ARM">
29
- <Configuration>Debug</Configuration>
30
- <Platform>ARM</Platform>
31
- </ProjectConfiguration>
32
- <ProjectConfiguration Include="Debug|ARM64">
33
- <Configuration>Debug</Configuration>
34
- <Platform>ARM64</Platform>
35
- </ProjectConfiguration>
36
44
  <ProjectConfiguration Include="Debug|Win32">
37
45
  <Configuration>Debug</Configuration>
38
46
  <Platform>Win32</Platform>
39
47
  </ProjectConfiguration>
48
+ <ProjectConfiguration Include="Release|Win32">
49
+ <Configuration>Release</Configuration>
50
+ <Platform>Win32</Platform>
51
+ </ProjectConfiguration>
40
52
  <ProjectConfiguration Include="Debug|x64">
41
53
  <Configuration>Debug</Configuration>
42
54
  <Platform>x64</Platform>
43
55
  </ProjectConfiguration>
44
- <ProjectConfiguration Include="Release|ARM">
56
+ <ProjectConfiguration Include="Release|x64">
45
57
  <Configuration>Release</Configuration>
46
- <Platform>ARM</Platform>
58
+ <Platform>x64</Platform>
47
59
  </ProjectConfiguration>
48
- <ProjectConfiguration Include="Release|ARM64">
49
- <Configuration>Release</Configuration>
60
+ <ProjectConfiguration Include="Debug|ARM64">
61
+ <Configuration>Debug</Configuration>
50
62
  <Platform>ARM64</Platform>
51
63
  </ProjectConfiguration>
52
- <ProjectConfiguration Include="Release|Win32">
53
- <Configuration>Release</Configuration>
54
- <Platform>Win32</Platform>
55
- </ProjectConfiguration>
56
- <ProjectConfiguration Include="Release|x64">
64
+ <ProjectConfiguration Include="Release|ARM64">
57
65
  <Configuration>Release</Configuration>
58
- <Platform>x64</Platform>
66
+ <Platform>ARM64</Platform>
59
67
  </ProjectConfiguration>
60
68
  </ItemGroup>
61
69
  <PropertyGroup Label="Configuration">
62
70
  <ConfigurationType>DynamicLibrary</ConfigurationType>
63
71
  <CharacterSet>Unicode</CharacterSet>
72
+ <PlatformToolset>v143</PlatformToolset>
64
73
  <GenerateManifest>false</GenerateManifest>
65
74
  </PropertyGroup>
66
75
  <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
67
76
  <UseDebugLibraries>true</UseDebugLibraries>
68
- <LinkIncremental>true</LinkIncremental>
69
77
  </PropertyGroup>
70
78
  <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
71
79
  <UseDebugLibraries>false</UseDebugLibraries>
72
80
  <WholeProgramOptimization>true</WholeProgramOptimization>
73
- <LinkIncremental>false</LinkIncremental>
74
81
  </PropertyGroup>
75
82
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
76
83
  <ImportGroup Label="ExtensionSettings">
77
84
  </ImportGroup>
78
- <ImportGroup Label="Shared">
79
- <Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems" Label="Shared" />
80
- </ImportGroup>
81
85
  <ImportGroup Label="PropertySheets">
82
86
  <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83
87
  </ImportGroup>
84
- <ImportGroup Label="PropertySheets">
85
- <Import Project="PropertySheet.props" />
88
+ <ImportGroup Label="ReactNativeWindowsPropertySheets" Condition="'$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))'">
89
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\external\Microsoft.ReactNative.Uwp.CppLib.props" Condition="'$(UseFabric)'!='true' And Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" />
90
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.props" Condition="'$(UseFabric)'=='true' And Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.props')" />
86
91
  </ImportGroup>
87
- <ImportGroup Label="ReactNativeWindowsPropertySheets">
88
- <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" />
92
+ <ImportGroup Label="ReactNativeWindowsPropertySheets" Condition="'$(ReactNativeWindowsCanary)'=='true' Or '$([MSBuild]::VersionGreaterThanOrEquals($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))'">
93
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" />
89
94
  </ImportGroup>
90
- <PropertyGroup Label="UserMacros" />
91
- <PropertyGroup />
92
95
  <ItemDefinitionGroup>
93
96
  <ClCompile>
94
97
  <PrecompiledHeader>Use</PrecompiledHeader>
95
98
  <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
96
99
  <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
97
100
  <WarningLevel>Level4</WarningLevel>
101
+ <SDLCheck>true</SDLCheck>
98
102
  <AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
99
- <!--Temporarily disable cppwinrt heap enforcement to work around xaml compiler generated std::shared_ptr use -->
100
- <AdditionalOptions Condition="'$(CppWinRTHeapEnforcement)'==''">/DWINRT_NO_MAKE_DETECTION %(AdditionalOptions)</AdditionalOptions>
101
- <DisableSpecificWarnings>
102
- </DisableSpecificWarnings>
103
- <PreprocessorDefinitions>_WINRT_DLL;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
103
+ <DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
104
+ <PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104
105
  <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
106
+ <LanguageStandard>stdcpp20</LanguageStandard>
105
107
  </ClCompile>
106
108
  <Link>
109
+ <AdditionalDependencies>shell32.lib;user32.lib;windowsapp.lib;%(AdditionalDependenices)</AdditionalDependencies>
107
110
  <SubSystem>Console</SubSystem>
108
- <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
111
+ <GenerateWindowsMetadata>true</GenerateWindowsMetadata>
109
112
  <ModuleDefinitionFile>Clipboard.def</ModuleDefinitionFile>
110
113
  </Link>
111
114
  </ItemDefinitionGroup>
@@ -118,15 +121,21 @@
118
121
  <ClCompile>
119
122
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
120
123
  </ClCompile>
121
- <Link>
122
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
123
- <OptimizeReferences>true</OptimizeReferences>
124
- </Link>
125
124
  </ItemDefinitionGroup>
125
+ <ItemDefinitionGroup>
126
+ <ClCompile>
127
+ <PreprocessorDefinitions Condition="'$(UseFabric)'=='true'">USE_FABRIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
128
+ </ClCompile>
129
+ </ItemDefinitionGroup>
130
+ <PropertyGroup Label="UserMacros" />
126
131
  <ItemGroup>
127
132
  <ClInclude Include="Clipboard.h" />
133
+ <ClInclude Include="ReactPackageProvider.h">
134
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
135
+ </ClInclude>
136
+ <ClInclude Include="resource.h" />
128
137
  <ClInclude Include="pch.h" />
129
- <ClInclude Include="ReactPackageProvider.h" />
138
+ <ClInclude Include="targetver.h" />
130
139
  <ClInclude Include="Unicode.h" />
131
140
  <ClInclude Include="Utilities.h" />
132
141
  </ItemGroup>
@@ -135,49 +144,36 @@
135
144
  <ClCompile Include="pch.cpp">
136
145
  <PrecompiledHeader>Create</PrecompiledHeader>
137
146
  </ClCompile>
147
+ <ClCompile Include="ReactPackageProvider.cpp">
148
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
149
+ </ClCompile>
138
150
  <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
139
- <ClCompile Include="ReactPackageProvider.cpp" />
140
- <ClCompile Include="Unicode.cpp" />
141
151
  </ItemGroup>
142
152
  <ItemGroup>
143
- <None Include="Clipboard.def" />
144
- </ItemGroup>
145
- <ItemGroup>
146
- <None Include="packages.config" />
147
- <None Include="PropertySheet.props" />
148
- <Text Include="readme.txt">
149
- <DeploymentContent>false</DeploymentContent>
150
- </Text>
151
- </ItemGroup>
152
- <ItemGroup>
153
- <ProjectReference Include="$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj">
154
- <Project>{f7d32bd0-2749-483e-9a0d-1635ef7e3136}</Project>
155
- <Private>false</Private>
156
- </ProjectReference>
153
+ <Midl Include="ReactPackageProvider.idl" />
157
154
  </ItemGroup>
158
155
  <ItemGroup>
159
- <Midl Include="ReactPackageProvider.idl" />
156
+ <ResourceCompile Include="Clipboard.rc" />
160
157
  </ItemGroup>
161
158
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
162
- <ImportGroup Label="ReactNativeWindowsTargets">
163
- <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
159
+ <ImportGroup Label="ReactNativeWindowsTargets" Condition="'$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))'">
160
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="'$(UseFabric)'!='true' And Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
161
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.targets" Condition="'$(UseFabric)'=='true' And Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.targets')" />
162
+ </ImportGroup>
163
+ <ImportGroup Label="ReactNativeWindowsTargets" Condition="'$(ReactNativeWindowsCanary)'=='true' Or '$([MSBuild]::VersionGreaterThanOrEquals($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))'">
164
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" />
164
165
  </ImportGroup>
166
+ <ItemGroup>
167
+ </ItemGroup>
165
168
  <Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
166
169
  <PropertyGroup>
167
170
  <ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
168
171
  </PropertyGroup>
169
- <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
170
- <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
171
- </Target>
172
- <ImportGroup Label="ExtensionTargets">
173
- <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets')" />
174
- </ImportGroup>
175
- <Target Name="Deploy"/>
176
- <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
177
- <PropertyGroup>
178
- <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
179
- </PropertyGroup>
180
- <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props'))" />
181
- <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets'))" />
172
+ <Error Condition="'$(UseFabric)'!='true' And !Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props') And ('$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
173
+ <Error Condition="'$(UseFabric)'!='true' And !Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets') And ('$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
174
+ <Error Condition="'$(UseFabric)'=='true' And !Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.props') And ('$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.props'))" />
175
+ <Error Condition="'$(UseFabric)'=='true' And !Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.targets') And ('$(ReactNativeWindowsCanary)'!='true' And '$([MSBuild]::VersionLessThan($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Composition.CppLib.targets'))" />
176
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props') And ('$(ReactNativeWindowsCanary)'=='true' Or '$([MSBuild]::VersionGreaterThanOrEquals($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props'))" />
177
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets') And ('$(ReactNativeWindowsCanary)'=='true' Or '$([MSBuild]::VersionGreaterThanOrEquals($(ReactNativeWindowsMajor).$(ReactNativeWindowsMinor).$(ReactNativeWindowsPatch), 0.76.0))')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets'))" />
182
178
  </Target>
183
- </Project>
179
+ </Project>
@@ -1,39 +1,44 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
3
  <ItemGroup>
4
- <Filter Include="Resources">
5
- <UniqueIdentifier>accd3aa8-1ba0-4223-9bbe-0c431709210b</UniqueIdentifier>
6
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms</Extensions>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
7
  </Filter>
8
- <Filter Include="Generated Files">
9
- <UniqueIdentifier>{926ab91d-31b4-48c3-b9a4-e681349f27f0}</UniqueIdentifier>
8
+ <Filter Include="Header Files">
9
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10
+ <Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
11
+ </Filter>
12
+ <Filter Include="Resource Files">
13
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
10
15
  </Filter>
11
16
  </ItemGroup>
12
17
  <ItemGroup>
13
- <ClCompile Include="pch.cpp" />
14
- <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
15
- <ClCompile Include="Clipboard.cpp" />
16
- <ClCompile Include="ReactPackageProvider.cpp" />
17
- <ClCompile Include="Unicode.cpp" />
18
- </ItemGroup>
19
- <ItemGroup>
20
- <ClInclude Include="pch.h" />
21
- <ClInclude Include="Clipboard.h" />
22
- <ClInclude Include="ReactPackageProvider.h" />
23
- <ClInclude Include="Unicode.h" />
24
- <ClInclude Include="Utilities.h" />
25
- </ItemGroup>
26
- <ItemGroup>
27
- <None Include="Clipboard.def" />
28
- <None Include="packages.config" />
29
- </ItemGroup>
30
- <ItemGroup>
31
- <None Include="PropertySheet.props" />
18
+ <ClInclude Include="targetver.h">
19
+ <Filter>Header Files</Filter>
20
+ </ClInclude>
21
+ <ClInclude Include="resource.h">
22
+ <Filter>Header Files</Filter>
23
+ </ClInclude>
24
+ <ClInclude Include="Clipboard.h">
25
+ <Filter>Header Files</Filter>
26
+ </ClInclude>
27
+ <ClInclude Include="pch.h">
28
+ <Filter>Header Files</Filter>
29
+ </ClInclude>
32
30
  </ItemGroup>
33
31
  <ItemGroup>
34
- <Text Include="readme.txt" />
32
+ <ClCompile Include="Clipboard.cpp">
33
+ <Filter>Source Files</Filter>
34
+ </ClCompile>
35
+ <ClCompile Include="pch.cpp">
36
+ <Filter>Source Files</Filter>
37
+ </ClCompile>
35
38
  </ItemGroup>
36
39
  <ItemGroup>
37
- <Midl Include="ReactPackageProvider.idl" />
40
+ <ResourceCompile Include="Clipboard.rc">
41
+ <Filter>Resource Files</Filter>
42
+ </ResourceCompile>
38
43
  </ItemGroup>
39
44
  </Project>
@@ -1,17 +1,24 @@
1
1
  #include "pch.h"
2
+
2
3
  #include "ReactPackageProvider.h"
4
+ #if __has_include("ReactPackageProvider.g.cpp")
3
5
  #include "ReactPackageProvider.g.cpp"
6
+ #endif
4
7
 
5
- #include <ModuleRegistration.h>
6
-
7
- // NOTE: You must include the headers of your native modules here in
8
- // order for the AddAttributedModules call below to find them.
9
8
  #include "Clipboard.h"
10
9
 
11
- namespace winrt::NativeClipboard::implementation
10
+ using namespace winrt::Microsoft::ReactNative;
11
+
12
+ namespace winrt::Clipboard::implementation
12
13
  {
13
- void ReactPackageProvider::CreatePackage(IReactPackageBuilder const& packageBuilder) noexcept
14
- {
15
- AddAttributedModules(packageBuilder);
16
- }
17
- }
14
+
15
+ void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept
16
+ {
17
+ #ifdef USE_FABRIC
18
+ AddAttributedModules(packageBuilder, true);
19
+ #else
20
+ AddAttributedModules(packageBuilder);
21
+ #endif
22
+ }
23
+
24
+ } // namespace winrt::Clipboard::implementation
@@ -4,17 +4,21 @@
4
4
 
5
5
  using namespace winrt::Microsoft::ReactNative;
6
6
 
7
- namespace winrt::NativeClipboard::implementation
7
+ namespace winrt::Clipboard::implementation
8
8
  {
9
- struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
10
- {
11
- ReactPackageProvider() = default;
12
9
 
13
- void CreatePackage(IReactPackageBuilder const& packageBuilder) noexcept;
14
- };
15
- }
10
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
11
+ {
12
+ ReactPackageProvider() = default;
13
+
14
+ void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
15
+ };
16
+
17
+ } // namespace winrt::Clipboard::implementation
16
18
 
17
- namespace winrt::NativeClipboard::factory_implementation
19
+ namespace winrt::Clipboard::factory_implementation
18
20
  {
19
- struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
20
- }
21
+
22
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
23
+
24
+ } // namespace winrt::Clipboard::factory_implementation
@@ -1,10 +1,9 @@
1
-
2
- namespace NativeClipboard
1
+ namespace Clipboard
3
2
  {
4
- [webhosthidden]
5
- [default_interface]
6
- runtimeclass ReactPackageProvider : Microsoft.ReactNative.IReactPackageProvider
7
- {
8
- ReactPackageProvider();
9
- };
10
- }
3
+ [webhosthidden]
4
+ [default_interface]
5
+ runtimeclass ReactPackageProvider : Microsoft.ReactNative.IReactPackageProvider
6
+ {
7
+ ReactPackageProvider();
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ DisableFormat: true
2
+ SortIncludes: false
@@ -0,0 +1,130 @@
1
+
2
+ /*
3
+ * This file is auto-generated from a NativeModule spec file in js.
4
+ *
5
+ * This is a C++ Spec class that should be used with MakeTurboModuleProvider to register native modules
6
+ * in a way that also verifies at compile time that the native module matches the interface required
7
+ * by the TurboModule JS spec.
8
+ */
9
+ #pragma once
10
+
11
+
12
+ #include <NativeModules.h>
13
+ #include <tuple>
14
+
15
+ namespace ClipboardCodegen {
16
+
17
+ struct ClipboardModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
18
+ static constexpr auto methods = std::tuple{
19
+ Method<void(Promise<std::string>) noexcept>{0, L"getString"},
20
+ Method<void(Promise<std::vector<std::string>>) noexcept>{1, L"getStrings"},
21
+ Method<void(Promise<std::string>) noexcept>{2, L"getImagePNG"},
22
+ Method<void(Promise<std::string>) noexcept>{3, L"getImageJPG"},
23
+ Method<void(std::string, Promise<void>) noexcept>{4, L"setImage"},
24
+ Method<void(Promise<std::string>) noexcept>{5, L"getImage"},
25
+ Method<void(std::string) noexcept>{6, L"setString"},
26
+ Method<void(std::vector<std::string>) noexcept>{7, L"setStrings"},
27
+ Method<void(Promise<bool>) noexcept>{8, L"hasString"},
28
+ Method<void(Promise<bool>) noexcept>{9, L"hasImage"},
29
+ Method<void(Promise<bool>) noexcept>{10, L"hasURL"},
30
+ Method<void(Promise<bool>) noexcept>{11, L"hasNumber"},
31
+ Method<void(Promise<bool>) noexcept>{12, L"hasWebURL"},
32
+ Method<void() noexcept>{13, L"setListener"},
33
+ Method<void() noexcept>{14, L"removeListener"},
34
+ Method<void(std::string) noexcept>{15, L"addListener"},
35
+ Method<void(int) noexcept>{16, L"removeListeners"},
36
+ };
37
+
38
+ template <class TModule>
39
+ static constexpr void ValidateModule() noexcept {
40
+ constexpr auto methodCheckResults = CheckMethods<TModule, ClipboardModuleSpec>();
41
+
42
+ REACT_SHOW_METHOD_SPEC_ERRORS(
43
+ 0,
44
+ "getString",
45
+ " REACT_METHOD(getString) void getString(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
46
+ " REACT_METHOD(getString) static void getString(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
47
+ REACT_SHOW_METHOD_SPEC_ERRORS(
48
+ 1,
49
+ "getStrings",
50
+ " REACT_METHOD(getStrings) void getStrings(::React::ReactPromise<std::vector<std::string>> &&result) noexcept { /* implementation */ }\n"
51
+ " REACT_METHOD(getStrings) static void getStrings(::React::ReactPromise<std::vector<std::string>> &&result) noexcept { /* implementation */ }\n");
52
+ REACT_SHOW_METHOD_SPEC_ERRORS(
53
+ 2,
54
+ "getImagePNG",
55
+ " REACT_METHOD(getImagePNG) void getImagePNG(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
56
+ " REACT_METHOD(getImagePNG) static void getImagePNG(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
57
+ REACT_SHOW_METHOD_SPEC_ERRORS(
58
+ 3,
59
+ "getImageJPG",
60
+ " REACT_METHOD(getImageJPG) void getImageJPG(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
61
+ " REACT_METHOD(getImageJPG) static void getImageJPG(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
62
+ REACT_SHOW_METHOD_SPEC_ERRORS(
63
+ 4,
64
+ "setImage",
65
+ " REACT_METHOD(setImage) void setImage(std::string content, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
66
+ " REACT_METHOD(setImage) static void setImage(std::string content, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
67
+ REACT_SHOW_METHOD_SPEC_ERRORS(
68
+ 5,
69
+ "getImage",
70
+ " REACT_METHOD(getImage) void getImage(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
71
+ " REACT_METHOD(getImage) static void getImage(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
72
+ REACT_SHOW_METHOD_SPEC_ERRORS(
73
+ 6,
74
+ "setString",
75
+ " REACT_METHOD(setString) void setString(std::string content) noexcept { /* implementation */ }\n"
76
+ " REACT_METHOD(setString) static void setString(std::string content) noexcept { /* implementation */ }\n");
77
+ REACT_SHOW_METHOD_SPEC_ERRORS(
78
+ 7,
79
+ "setStrings",
80
+ " REACT_METHOD(setStrings) void setStrings(std::vector<std::string> const & content) noexcept { /* implementation */ }\n"
81
+ " REACT_METHOD(setStrings) static void setStrings(std::vector<std::string> const & content) noexcept { /* implementation */ }\n");
82
+ REACT_SHOW_METHOD_SPEC_ERRORS(
83
+ 8,
84
+ "hasString",
85
+ " REACT_METHOD(hasString) void hasString(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
86
+ " REACT_METHOD(hasString) static void hasString(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
87
+ REACT_SHOW_METHOD_SPEC_ERRORS(
88
+ 9,
89
+ "hasImage",
90
+ " REACT_METHOD(hasImage) void hasImage(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
91
+ " REACT_METHOD(hasImage) static void hasImage(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
92
+ REACT_SHOW_METHOD_SPEC_ERRORS(
93
+ 10,
94
+ "hasURL",
95
+ " REACT_METHOD(hasURL) void hasURL(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
96
+ " REACT_METHOD(hasURL) static void hasURL(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
97
+ REACT_SHOW_METHOD_SPEC_ERRORS(
98
+ 11,
99
+ "hasNumber",
100
+ " REACT_METHOD(hasNumber) void hasNumber(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
101
+ " REACT_METHOD(hasNumber) static void hasNumber(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
102
+ REACT_SHOW_METHOD_SPEC_ERRORS(
103
+ 12,
104
+ "hasWebURL",
105
+ " REACT_METHOD(hasWebURL) void hasWebURL(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
106
+ " REACT_METHOD(hasWebURL) static void hasWebURL(::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
107
+ REACT_SHOW_METHOD_SPEC_ERRORS(
108
+ 13,
109
+ "setListener",
110
+ " REACT_METHOD(setListener) void setListener() noexcept { /* implementation */ }\n"
111
+ " REACT_METHOD(setListener) static void setListener() noexcept { /* implementation */ }\n");
112
+ REACT_SHOW_METHOD_SPEC_ERRORS(
113
+ 14,
114
+ "removeListener",
115
+ " REACT_METHOD(removeListener) void removeListener() noexcept { /* implementation */ }\n"
116
+ " REACT_METHOD(removeListener) static void removeListener() noexcept { /* implementation */ }\n");
117
+ REACT_SHOW_METHOD_SPEC_ERRORS(
118
+ 15,
119
+ "addListener",
120
+ " REACT_METHOD(addListener) void addListener(std::string eventName) noexcept { /* implementation */ }\n"
121
+ " REACT_METHOD(addListener) static void addListener(std::string eventName) noexcept { /* implementation */ }\n");
122
+ REACT_SHOW_METHOD_SPEC_ERRORS(
123
+ 16,
124
+ "removeListeners",
125
+ " REACT_METHOD(removeListeners) void removeListeners(int count) noexcept { /* implementation */ }\n"
126
+ " REACT_METHOD(removeListeners) static void removeListeners(int count) noexcept { /* implementation */ }\n");
127
+ }
128
+ };
129
+
130
+ } // namespace ClipboardCodegen
@@ -1 +1 @@
1
- #include "pch.h"
1
+ #include "pch.h"
@@ -1,4 +1,30 @@
1
- #pragma once
1
+ // pch.h : include file for standard system include files,
2
+ // or project specific include files that are used frequently, but
3
+ // are changed infrequently
4
+ //
5
+
6
+ #pragma once
7
+
8
+ #include "targetver.h"
9
+
10
+ #define NOMINMAX 1
11
+ #define WIN32_LEAN_AND_MEAN 1
12
+ #define WINRT_LEAN_AND_MEAN 1
13
+
14
+ // Windows Header Files
15
+ #include <windows.h>
16
+ #undef GetCurrentTime
2
17
  #include <unknwn.h>
3
- #include <winrt/Windows.Foundation.h>
4
- #include <winrt/Windows.Foundation.Collections.h>
18
+
19
+ // WinRT Header Files
20
+ #include <winrt/base.h>
21
+ #include <CppWinRTIncludes.h>
22
+ #include <winrt/Microsoft.ReactNative.h>
23
+
24
+ // C RunTime Header Files
25
+ #include <malloc.h>
26
+ #include <memory.h>
27
+ #include <stdlib.h>
28
+ #include <tchar.h>
29
+
30
+ // Reference additional headers your project requires here
@@ -0,0 +1,5 @@
1
+ //
2
+ // Microsoft Visual C++ generated include file.
3
+ // Used by Clipboard.rc
4
+
5
+ #pragma once
@@ -0,0 +1,8 @@
1
+ #pragma once
2
+
3
+ // Including SDKDDKVer.h defines the highest available Windows platform.
4
+
5
+ // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
6
+ // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
7
+
8
+ #include <SDKDDKVer.h>