Skip to content

Commit 5230aae

Browse files
test with rnpermissions vcxproj patched
1 parent 3153eee commit 5230aae

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed

.github/workflows/pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ jobs:
182182
run: npm install
183183
working-directory: ./Package
184184

185+
186+
- name: RNPermissions Patch test
187+
run: copy /Y RNPermissions.vcxproj .\Apps\BRNPlayground\node_modules\react-native-permissions\windows\RNPermissions\RNPermissions.vcxproj
188+
working-directory: ./
189+
190+
191+
185192
- name: NPM Generate Windows Project
186193
run: npx install-windows-test-app
187194
working-directory: ./Apps/BRNPlayground

RNPermissions.vcxproj

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" />
4+
<PropertyGroup Label="Globals">
5+
<CppWinRTOptimized>true</CppWinRTOptimized>
6+
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
7+
<MinimalCoreWin>true</MinimalCoreWin>
8+
<ProjectGuid>{99677b9d-a27b-4239-930e-c36c8d339c54}</ProjectGuid>
9+
<ProjectName>RNPermissions</ProjectName>
10+
<RootNamespace>RNPermissions</RootNamespace>
11+
<DefaultLanguage>en-US</DefaultLanguage>
12+
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
13+
<AppContainerApplication>true</AppContainerApplication>
14+
<ApplicationType>Windows Store</ApplicationType>
15+
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
16+
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0</WindowsTargetPlatformVersion>
17+
<WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion>
18+
</PropertyGroup>
19+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
20+
<PropertyGroup Label="ReactNativeWindowsProps">
21+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
22+
</PropertyGroup>
23+
<ItemGroup Label="ProjectConfigurations">
24+
<ProjectConfiguration Include="Debug|ARM">
25+
<Configuration>Debug</Configuration>
26+
<Platform>ARM</Platform>
27+
</ProjectConfiguration>
28+
<ProjectConfiguration Include="Debug|ARM64">
29+
<Configuration>Debug</Configuration>
30+
<Platform>ARM64</Platform>
31+
</ProjectConfiguration>
32+
<ProjectConfiguration Include="Debug|Win32">
33+
<Configuration>Debug</Configuration>
34+
<Platform>Win32</Platform>
35+
</ProjectConfiguration>
36+
<ProjectConfiguration Include="Debug|x64">
37+
<Configuration>Debug</Configuration>
38+
<Platform>x64</Platform>
39+
</ProjectConfiguration>
40+
<ProjectConfiguration Include="Release|ARM">
41+
<Configuration>Release</Configuration>
42+
<Platform>ARM</Platform>
43+
</ProjectConfiguration>
44+
<ProjectConfiguration Include="Release|ARM64">
45+
<Configuration>Release</Configuration>
46+
<Platform>ARM64</Platform>
47+
</ProjectConfiguration>
48+
<ProjectConfiguration Include="Release|Win32">
49+
<Configuration>Release</Configuration>
50+
<Platform>Win32</Platform>
51+
</ProjectConfiguration>
52+
<ProjectConfiguration Include="Release|x64">
53+
<Configuration>Release</Configuration>
54+
<Platform>x64</Platform>
55+
</ProjectConfiguration>
56+
</ItemGroup>
57+
<PropertyGroup Label="Configuration">
58+
<ConfigurationType>DynamicLibrary</ConfigurationType>
59+
<CharacterSet>Unicode</CharacterSet>
60+
<GenerateManifest>false</GenerateManifest>
61+
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
63+
<UseDebugLibraries>true</UseDebugLibraries>
64+
<LinkIncremental>true</LinkIncremental>
65+
</PropertyGroup>
66+
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
67+
<UseDebugLibraries>false</UseDebugLibraries>
68+
<WholeProgramOptimization>true</WholeProgramOptimization>
69+
<LinkIncremental>false</LinkIncremental>
70+
</PropertyGroup>
71+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
72+
<ImportGroup Label="ExtensionSettings">
73+
</ImportGroup>
74+
<ImportGroup Label="PropertySheets">
75+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
76+
</ImportGroup>
77+
<ImportGroup Label="PropertySheets">
78+
<Import Project="PropertySheet.props" />
79+
</ImportGroup>
80+
<ImportGroup Label="ReactNativeWindowsPropertySheets">
81+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" />
82+
</ImportGroup>
83+
<PropertyGroup Label="UserMacros" />
84+
<PropertyGroup />
85+
<ItemDefinitionGroup>
86+
<ClCompile>
87+
<PrecompiledHeader>Use</PrecompiledHeader>
88+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
89+
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
90+
<WarningLevel>Level4</WarningLevel>
91+
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
92+
<!--Temporarily disable cppwinrt heap enforcement to work around xaml compiler generated std::shared_ptr use -->
93+
<AdditionalOptions Condition="'$(CppWinRTHeapEnforcement)'==''">/DWINRT_NO_MAKE_DETECTION %(AdditionalOptions)</AdditionalOptions>
94+
<DisableSpecificWarnings>28204</DisableSpecificWarnings>
95+
<PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
96+
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
97+
</ClCompile>
98+
<Link>
99+
<SubSystem>Console</SubSystem>
100+
<GenerateWindowsMetadata>true</GenerateWindowsMetadata>
101+
<ModuleDefinitionFile>RNPermissions.def</ModuleDefinitionFile>
102+
</Link>
103+
</ItemDefinitionGroup>
104+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
105+
<ClCompile>
106+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
108+
</ClCompile>
109+
</ItemDefinitionGroup>
110+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
111+
<ClCompile>
112+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
113+
</ClCompile>
114+
</ItemDefinitionGroup>
115+
<ItemGroup>
116+
<ClInclude Include="pch.h" />
117+
<ClInclude Include="ReactPackageProvider.h">
118+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
119+
</ClInclude>
120+
<ClInclude Include="RNPermissions.h" />
121+
</ItemGroup>
122+
<ItemGroup>
123+
<ClCompile Include="pch.cpp">
124+
<PrecompiledHeader>Create</PrecompiledHeader>
125+
</ClCompile>
126+
<ClCompile Include="ReactPackageProvider.cpp">
127+
<DependentUpon>ReactPackageProvider.idl</DependentUpon>
128+
</ClCompile>
129+
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
130+
<ClCompile Include="RNPermissions.cpp" />
131+
</ItemGroup>
132+
<ItemGroup>
133+
<Midl Include="ReactPackageProvider.idl" />
134+
</ItemGroup>
135+
<ItemGroup>
136+
<None Include="packages.config" />
137+
<None Include="RNPermissions.def" />
138+
</ItemGroup>
139+
<ItemGroup>
140+
<None Include="PropertySheet.props" />
141+
</ItemGroup>
142+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
143+
<ImportGroup Label="ReactNativeWindowsTargets">
144+
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
145+
</ImportGroup>
146+
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
147+
<PropertyGroup>
148+
<ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
149+
</PropertyGroup>
150+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
151+
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
152+
</Target>
153+
<ImportGroup Label="ExtensionTargets">
154+
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" />
155+
</ImportGroup>
156+
</Project>

0 commit comments

Comments
 (0)