react-native-blob-util 0.19.1 → 0.19.2

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.
Files changed (91) hide show
  1. package/.eslintrc.js +56 -56
  2. package/LICENSE +21 -21
  3. package/Migration.md +41 -41
  4. package/README.md +1071 -1071
  5. package/android/gradle.properties +1 -1
  6. package/android/proguard-rules.pro +17 -17
  7. package/android/src/main/AndroidManifest.xml +39 -40
  8. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilConfig.java +57 -57
  9. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilConst.java +20 -20
  10. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFS.java +2 -2
  11. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFileTransformer.java +9 -9
  12. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilImpl.java +431 -431
  13. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilProgressConfig.java +39 -39
  14. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java +972 -968
  15. package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilDefaultResp.java +98 -98
  16. package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilFileResp.java +157 -157
  17. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileDescription.java +19 -19
  18. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileProvider.java +4 -4
  19. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java +70 -70
  20. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/PathResolver.java +223 -223
  21. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/Tls12SocketFactory.java +68 -68
  22. package/android/src/main/res/values/strings.xml +3 -3
  23. package/android/src/main/res/xml/provider_paths.xml +12 -12
  24. package/android/src/newarch/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java +1 -1
  25. package/android.js +58 -58
  26. package/class/ReactNativeBlobUtilCanceledFetchError.js +9 -9
  27. package/class/ReactNativeBlobUtilFile.js +5 -5
  28. package/class/ReactNativeBlobUtilReadStream.js +84 -84
  29. package/class/ReactNativeBlobUtilSession.js +68 -68
  30. package/class/ReactNativeBlobUtilWriteStream.js +50 -50
  31. package/class/StatefulPromise.js +7 -7
  32. package/codegenSpecs/NativeBlobUtils.js +86 -82
  33. package/components/Fetch.onPress.js +10 -10
  34. package/components/Fetch.when.js +15 -15
  35. package/fetch.js +344 -344
  36. package/fs.js +480 -480
  37. package/index.d.ts +871 -871
  38. package/index.js +64 -64
  39. package/index.js.flow +191 -191
  40. package/index.web.js +1 -1
  41. package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.h +55 -55
  42. package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm +993 -993
  43. package/ios/ReactNativeBlobUtil.xcodeproj/project.pbxproj +403 -403
  44. package/ios/ReactNativeBlobUtilConst.h +58 -58
  45. package/ios/ReactNativeBlobUtilConst.mm +47 -47
  46. package/ios/ReactNativeBlobUtilFS.h +108 -108
  47. package/ios/ReactNativeBlobUtilFS.mm +977 -977
  48. package/ios/ReactNativeBlobUtilFileTransformer.h +23 -23
  49. package/ios/ReactNativeBlobUtilFileTransformer.mm +20 -20
  50. package/ios/ReactNativeBlobUtilNetwork.h +49 -49
  51. package/ios/ReactNativeBlobUtilNetwork.mm +159 -159
  52. package/ios/ReactNativeBlobUtilProgress.h +32 -32
  53. package/ios/ReactNativeBlobUtilProgress.mm +57 -57
  54. package/ios/ReactNativeBlobUtilReqBuilder.h +37 -37
  55. package/ios/ReactNativeBlobUtilReqBuilder.mm +292 -292
  56. package/ios/ReactNativeBlobUtilRequest.h +48 -48
  57. package/ios/ReactNativeBlobUtilRequest.mm +535 -535
  58. package/ios.js +61 -61
  59. package/json-stream.js +42 -42
  60. package/lib/oboe-browser.js +2703 -2703
  61. package/mediacollection.js +36 -36
  62. package/package.json +55 -55
  63. package/polyfill/Blob.js +362 -362
  64. package/polyfill/Event.js +11 -11
  65. package/polyfill/EventTarget.js +78 -78
  66. package/polyfill/Fetch.js +219 -219
  67. package/polyfill/File.js +27 -27
  68. package/polyfill/FileReader.js +91 -91
  69. package/polyfill/ProgressEvent.js +32 -32
  70. package/polyfill/XMLHttpRequest.js +466 -466
  71. package/polyfill/XMLHttpRequestEventTarget.js +126 -126
  72. package/polyfill/index.js +11 -11
  73. package/react-native-blob-util.podspec +45 -45
  74. package/types.js +69 -69
  75. package/utils/log.js +40 -40
  76. package/utils/unicode.js +7 -7
  77. package/utils/uri.js +33 -33
  78. package/utils/uuid.js +4 -4
  79. package/windows/README.md +2 -2
  80. package/windows/ReactNativeBlobUtil/PropertySheet.props +15 -15
  81. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp +1701 -1693
  82. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.def +3 -3
  83. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h +379 -366
  84. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj +181 -181
  85. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj.filters +31 -31
  86. package/windows/ReactNativeBlobUtil/ReactPackageProvider.cpp +15 -15
  87. package/windows/ReactNativeBlobUtil/ReactPackageProvider.h +20 -20
  88. package/windows/ReactNativeBlobUtil/ReactPackageProvider.idl +9 -9
  89. package/windows/ReactNativeBlobUtil/packages.config +3 -3
  90. package/windows/ReactNativeBlobUtil/pch.cpp +1 -1
  91. package/windows/ReactNativeBlobUtil/pch.h +3 -3
@@ -1,181 +1,181 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\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>{cdde3311-efd2-462d-8551-93637a7fae92}</ProjectGuid>
10
- <ProjectName>ReactNativeBlobUtil</ProjectName>
11
- <RootNamespace>ReactNativeBlobUtil</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
- <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
18
- <WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>
19
- </PropertyGroup>
20
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21
- <PropertyGroup Label="ReactNativeWindowsProps">
22
- <ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
23
- </PropertyGroup>
24
- <ItemGroup Label="ProjectConfigurations">
25
- <ProjectConfiguration Include="Debug|ARM">
26
- <Configuration>Debug</Configuration>
27
- <Platform>ARM</Platform>
28
- </ProjectConfiguration>
29
- <ProjectConfiguration Include="Debug|ARM64">
30
- <Configuration>Debug</Configuration>
31
- <Platform>ARM64</Platform>
32
- </ProjectConfiguration>
33
- <ProjectConfiguration Include="Debug|Win32">
34
- <Configuration>Debug</Configuration>
35
- <Platform>Win32</Platform>
36
- </ProjectConfiguration>
37
- <ProjectConfiguration Include="Debug|x64">
38
- <Configuration>Debug</Configuration>
39
- <Platform>x64</Platform>
40
- </ProjectConfiguration>
41
- <ProjectConfiguration Include="Release|ARM">
42
- <Configuration>Release</Configuration>
43
- <Platform>ARM</Platform>
44
- </ProjectConfiguration>
45
- <ProjectConfiguration Include="Release|ARM64">
46
- <Configuration>Release</Configuration>
47
- <Platform>ARM64</Platform>
48
- </ProjectConfiguration>
49
- <ProjectConfiguration Include="Release|Win32">
50
- <Configuration>Release</Configuration>
51
- <Platform>Win32</Platform>
52
- </ProjectConfiguration>
53
- <ProjectConfiguration Include="Release|x64">
54
- <Configuration>Release</Configuration>
55
- <Platform>x64</Platform>
56
- </ProjectConfiguration>
57
- </ItemGroup>
58
- <PropertyGroup Label="Configuration">
59
- <ConfigurationType>DynamicLibrary</ConfigurationType>
60
- <PlatformToolset>v140</PlatformToolset>
61
- <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
62
- <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
63
- <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v142</PlatformToolset>
64
- <CharacterSet>Unicode</CharacterSet>
65
- <GenerateManifest>false</GenerateManifest>
66
- </PropertyGroup>
67
- <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
68
- <UseDebugLibraries>true</UseDebugLibraries>
69
- <LinkIncremental>true</LinkIncremental>
70
- </PropertyGroup>
71
- <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
72
- <UseDebugLibraries>false</UseDebugLibraries>
73
- <WholeProgramOptimization>true</WholeProgramOptimization>
74
- <LinkIncremental>false</LinkIncremental>
75
- </PropertyGroup>
76
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
77
- <ImportGroup Label="ExtensionSettings">
78
- </ImportGroup>
79
- <ImportGroup Label="Shared">
80
- </ImportGroup>
81
- <ImportGroup Label="PropertySheets">
82
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83
- </ImportGroup>
84
- <ImportGroup Label="PropertySheets">
85
- <Import Project="PropertySheet.props" />
86
- </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')" />
89
- </ImportGroup>
90
- <PropertyGroup Label="UserMacros" />
91
- <PropertyGroup />
92
- <ItemDefinitionGroup>
93
- <ClCompile>
94
- <PrecompiledHeader>Use</PrecompiledHeader>
95
- <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
96
- <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
97
- <WarningLevel>Level4</WarningLevel>
98
- <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>
104
- <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
105
- </ClCompile>
106
- <Link>
107
- <SubSystem>Console</SubSystem>
108
- <GenerateWindowsMetadata>true</GenerateWindowsMetadata>
109
- <ModuleDefinitionFile>ReactNativeBlobUtil.def</ModuleDefinitionFile>
110
- </Link>
111
- </ItemDefinitionGroup>
112
- <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
113
- <ClCompile>
114
- <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
115
- <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
116
- </ClCompile>
117
- </ItemDefinitionGroup>
118
- <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
119
- <ClCompile>
120
- <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
121
- </ClCompile>
122
- <Link>
123
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
124
- <OptimizeReferences>true</OptimizeReferences>
125
- </Link>
126
- </ItemDefinitionGroup>
127
- <ItemGroup>
128
- <ClInclude Include="pch.h" />
129
- <ClInclude Include="ReactPackageProvider.h">
130
- <DependentUpon>ReactPackageProvider.idl</DependentUpon>
131
- </ClInclude>
132
- <ClInclude Include="ReactNativeBlobUtil.h" />
133
- </ItemGroup>
134
- <ItemGroup>
135
- <ClCompile Include="pch.cpp">
136
- <PrecompiledHeader>Create</PrecompiledHeader>
137
- </ClCompile>
138
- <ClCompile Include="ReactPackageProvider.cpp">
139
- <DependentUpon>ReactPackageProvider.idl</DependentUpon>
140
- </ClCompile>
141
- <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
142
- <ClCompile Include="ReactNativeBlobUtil.cpp" />
143
- </ItemGroup>
144
- <ItemGroup>
145
- <Midl Include="ReactPackageProvider.idl" />
146
- </ItemGroup>
147
- <ItemGroup>
148
- <None Include="packages.config" />
149
- <None Include="ReactNativeBlobUtil.def" />
150
- </ItemGroup>
151
- <ItemGroup>
152
- <None Include="PropertySheet.props" />
153
- </ItemGroup>
154
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
155
- <ImportGroup Label="ReactNativeWindowsTargets">
156
- <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
157
- </ImportGroup>
158
- <Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
159
- <PropertyGroup>
160
- <ErrorText>This project references targets in your node_modules\react-native-windows folder that are missing. The missing file is {0}.</ErrorText>
161
- </PropertyGroup>
162
- <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
163
- <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
164
- </Target>
165
- <ImportGroup Label="ExtensionTargets">
166
- <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" />
167
- </ImportGroup>
168
- <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
169
- <PropertyGroup>
170
- <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>
171
- </PropertyGroup>
172
- <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props'))" />
173
- <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets'))" />
174
- </Target>
175
- <ItemGroup>
176
- <ProjectReference Update="$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj">
177
- <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
178
- <LinkLibraryDependencies>true</LinkLibraryDependencies>
179
- </ProjectReference>
180
- </ItemGroup>
181
- </Project>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\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>{cdde3311-efd2-462d-8551-93637a7fae92}</ProjectGuid>
10
+ <ProjectName>ReactNativeBlobUtil</ProjectName>
11
+ <RootNamespace>ReactNativeBlobUtil</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
+ <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
18
+ <WindowsTargetPlatformMinVersion>10.0.17134.0</WindowsTargetPlatformMinVersion>
19
+ </PropertyGroup>
20
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21
+ <PropertyGroup Label="ReactNativeWindowsProps">
22
+ <ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
23
+ </PropertyGroup>
24
+ <ItemGroup Label="ProjectConfigurations">
25
+ <ProjectConfiguration Include="Debug|ARM">
26
+ <Configuration>Debug</Configuration>
27
+ <Platform>ARM</Platform>
28
+ </ProjectConfiguration>
29
+ <ProjectConfiguration Include="Debug|ARM64">
30
+ <Configuration>Debug</Configuration>
31
+ <Platform>ARM64</Platform>
32
+ </ProjectConfiguration>
33
+ <ProjectConfiguration Include="Debug|Win32">
34
+ <Configuration>Debug</Configuration>
35
+ <Platform>Win32</Platform>
36
+ </ProjectConfiguration>
37
+ <ProjectConfiguration Include="Debug|x64">
38
+ <Configuration>Debug</Configuration>
39
+ <Platform>x64</Platform>
40
+ </ProjectConfiguration>
41
+ <ProjectConfiguration Include="Release|ARM">
42
+ <Configuration>Release</Configuration>
43
+ <Platform>ARM</Platform>
44
+ </ProjectConfiguration>
45
+ <ProjectConfiguration Include="Release|ARM64">
46
+ <Configuration>Release</Configuration>
47
+ <Platform>ARM64</Platform>
48
+ </ProjectConfiguration>
49
+ <ProjectConfiguration Include="Release|Win32">
50
+ <Configuration>Release</Configuration>
51
+ <Platform>Win32</Platform>
52
+ </ProjectConfiguration>
53
+ <ProjectConfiguration Include="Release|x64">
54
+ <Configuration>Release</Configuration>
55
+ <Platform>x64</Platform>
56
+ </ProjectConfiguration>
57
+ </ItemGroup>
58
+ <PropertyGroup Label="Configuration">
59
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
60
+ <PlatformToolset>v140</PlatformToolset>
61
+ <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
62
+ <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
63
+ <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v142</PlatformToolset>
64
+ <CharacterSet>Unicode</CharacterSet>
65
+ <GenerateManifest>false</GenerateManifest>
66
+ </PropertyGroup>
67
+ <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
68
+ <UseDebugLibraries>true</UseDebugLibraries>
69
+ <LinkIncremental>true</LinkIncremental>
70
+ </PropertyGroup>
71
+ <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
72
+ <UseDebugLibraries>false</UseDebugLibraries>
73
+ <WholeProgramOptimization>true</WholeProgramOptimization>
74
+ <LinkIncremental>false</LinkIncremental>
75
+ </PropertyGroup>
76
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
77
+ <ImportGroup Label="ExtensionSettings">
78
+ </ImportGroup>
79
+ <ImportGroup Label="Shared">
80
+ </ImportGroup>
81
+ <ImportGroup Label="PropertySheets">
82
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83
+ </ImportGroup>
84
+ <ImportGroup Label="PropertySheets">
85
+ <Import Project="PropertySheet.props" />
86
+ </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')" />
89
+ </ImportGroup>
90
+ <PropertyGroup Label="UserMacros" />
91
+ <PropertyGroup />
92
+ <ItemDefinitionGroup>
93
+ <ClCompile>
94
+ <PrecompiledHeader>Use</PrecompiledHeader>
95
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
96
+ <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
97
+ <WarningLevel>Level4</WarningLevel>
98
+ <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>
104
+ <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
105
+ </ClCompile>
106
+ <Link>
107
+ <SubSystem>Console</SubSystem>
108
+ <GenerateWindowsMetadata>true</GenerateWindowsMetadata>
109
+ <ModuleDefinitionFile>ReactNativeBlobUtil.def</ModuleDefinitionFile>
110
+ </Link>
111
+ </ItemDefinitionGroup>
112
+ <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
113
+ <ClCompile>
114
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
115
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
116
+ </ClCompile>
117
+ </ItemDefinitionGroup>
118
+ <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
119
+ <ClCompile>
120
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
121
+ </ClCompile>
122
+ <Link>
123
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
124
+ <OptimizeReferences>true</OptimizeReferences>
125
+ </Link>
126
+ </ItemDefinitionGroup>
127
+ <ItemGroup>
128
+ <ClInclude Include="pch.h" />
129
+ <ClInclude Include="ReactPackageProvider.h">
130
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
131
+ </ClInclude>
132
+ <ClInclude Include="ReactNativeBlobUtil.h" />
133
+ </ItemGroup>
134
+ <ItemGroup>
135
+ <ClCompile Include="pch.cpp">
136
+ <PrecompiledHeader>Create</PrecompiledHeader>
137
+ </ClCompile>
138
+ <ClCompile Include="ReactPackageProvider.cpp">
139
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
140
+ </ClCompile>
141
+ <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
142
+ <ClCompile Include="ReactNativeBlobUtil.cpp" />
143
+ </ItemGroup>
144
+ <ItemGroup>
145
+ <Midl Include="ReactPackageProvider.idl" />
146
+ </ItemGroup>
147
+ <ItemGroup>
148
+ <None Include="packages.config" />
149
+ <None Include="ReactNativeBlobUtil.def" />
150
+ </ItemGroup>
151
+ <ItemGroup>
152
+ <None Include="PropertySheet.props" />
153
+ </ItemGroup>
154
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
155
+ <ImportGroup Label="ReactNativeWindowsTargets">
156
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
157
+ </ImportGroup>
158
+ <Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
159
+ <PropertyGroup>
160
+ <ErrorText>This project references targets in your node_modules\react-native-windows folder that are missing. The missing file is {0}.</ErrorText>
161
+ </PropertyGroup>
162
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
163
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
164
+ </Target>
165
+ <ImportGroup Label="ExtensionTargets">
166
+ <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" />
167
+ </ImportGroup>
168
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
169
+ <PropertyGroup>
170
+ <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>
171
+ </PropertyGroup>
172
+ <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.props'))" />
173
+ <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.200615.7\build\native\Microsoft.Windows.CppWinRT.targets'))" />
174
+ </Target>
175
+ <ItemGroup>
176
+ <ProjectReference Update="$(ReactNativeWindowsDir)\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj">
177
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
178
+ <LinkLibraryDependencies>true</LinkLibraryDependencies>
179
+ </ProjectReference>
180
+ </ItemGroup>
181
+ </Project>
@@ -1,32 +1,32 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
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>
7
- </Filter>
8
- <Filter Include="Generated Files">
9
- <UniqueIdentifier>{926ab91d-31b4-48c3-b9a4-e681349f27f0}</UniqueIdentifier>
10
- </Filter>
11
- </ItemGroup>
12
- <ItemGroup>
13
- <ClCompile Include="pch.cpp" />
14
- <ClCompile Include="ReactPackageProvider.cpp" />
15
- <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
16
- <ClCompile Include="ReactNativeBlobUtil.cpp" />
17
- </ItemGroup>
18
- <ItemGroup>
19
- <ClInclude Include="pch.h" />
20
- <ClInclude Include="ReactNativeBlobUtil.h" />
21
- </ItemGroup>
22
- <ItemGroup>
23
- <Midl Include="ReactPackageProvider.idl" />
24
- </ItemGroup>
25
- <ItemGroup>
26
- <None Include="ReactNativeBlobUtil.def" />
27
- <None Include="packages.config" />
28
- </ItemGroup>
29
- <ItemGroup>
30
- <None Include="PropertySheet.props" />
31
- </ItemGroup>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
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>
7
+ </Filter>
8
+ <Filter Include="Generated Files">
9
+ <UniqueIdentifier>{926ab91d-31b4-48c3-b9a4-e681349f27f0}</UniqueIdentifier>
10
+ </Filter>
11
+ </ItemGroup>
12
+ <ItemGroup>
13
+ <ClCompile Include="pch.cpp" />
14
+ <ClCompile Include="ReactPackageProvider.cpp" />
15
+ <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
16
+ <ClCompile Include="ReactNativeBlobUtil.cpp" />
17
+ </ItemGroup>
18
+ <ItemGroup>
19
+ <ClInclude Include="pch.h" />
20
+ <ClInclude Include="ReactNativeBlobUtil.h" />
21
+ </ItemGroup>
22
+ <ItemGroup>
23
+ <Midl Include="ReactPackageProvider.idl" />
24
+ </ItemGroup>
25
+ <ItemGroup>
26
+ <None Include="ReactNativeBlobUtil.def" />
27
+ <None Include="packages.config" />
28
+ </ItemGroup>
29
+ <ItemGroup>
30
+ <None Include="PropertySheet.props" />
31
+ </ItemGroup>
32
32
  </Project>
@@ -1,15 +1,15 @@
1
- #include "pch.h"
2
- #include "ReactPackageProvider.h"
3
- #include "ReactPackageProvider.g.cpp"
4
-
5
- #include "ReactNativeBlobUtil.h"
6
-
7
- using namespace winrt::Microsoft::ReactNative;
8
-
9
- namespace winrt::ReactNativeBlobUtil::implementation {
10
-
11
- void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept {
12
- AddAttributedModules(packageBuilder);
13
- }
14
-
15
- } // namespace winrt::ReactNativeBlobUtil::implementation
1
+ #include "pch.h"
2
+ #include "ReactPackageProvider.h"
3
+ #include "ReactPackageProvider.g.cpp"
4
+
5
+ #include "ReactNativeBlobUtil.h"
6
+
7
+ using namespace winrt::Microsoft::ReactNative;
8
+
9
+ namespace winrt::ReactNativeBlobUtil::implementation {
10
+
11
+ void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept {
12
+ AddAttributedModules(packageBuilder);
13
+ }
14
+
15
+ } // namespace winrt::ReactNativeBlobUtil::implementation
@@ -1,20 +1,20 @@
1
- #pragma once
2
- #include "ReactPackageProvider.g.h"
3
-
4
- using namespace winrt::Microsoft::ReactNative;
5
-
6
- namespace winrt::ReactNativeBlobUtil::implementation {
7
-
8
- struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider> {
9
- ReactPackageProvider() = default;
10
-
11
- void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
12
- };
13
-
14
- } // namespace winrt::ReactNativeBlobUtil::implementation
15
-
16
- namespace winrt::ReactNativeBlobUtil::factory_implementation {
17
-
18
- struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
19
-
20
- } // namespace winrt::ReactNativeBlobUtil::factory_implementation
1
+ #pragma once
2
+ #include "ReactPackageProvider.g.h"
3
+
4
+ using namespace winrt::Microsoft::ReactNative;
5
+
6
+ namespace winrt::ReactNativeBlobUtil::implementation {
7
+
8
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider> {
9
+ ReactPackageProvider() = default;
10
+
11
+ void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
12
+ };
13
+
14
+ } // namespace winrt::ReactNativeBlobUtil::implementation
15
+
16
+ namespace winrt::ReactNativeBlobUtil::factory_implementation {
17
+
18
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
19
+
20
+ } // namespace winrt::ReactNativeBlobUtil::factory_implementation
@@ -1,9 +1,9 @@
1
- namespace ReactNativeBlobUtil
2
- {
3
- [webhosthidden]
4
- [default_interface]
5
- runtimeclass ReactPackageProvider
6
- : Microsoft.ReactNative.IReactPackageProvider {
7
- ReactPackageProvider();
8
- };
9
- } // namespace ReactNativeBlobUtil
1
+ namespace ReactNativeBlobUtil
2
+ {
3
+ [webhosthidden]
4
+ [default_interface]
5
+ runtimeclass ReactPackageProvider
6
+ : Microsoft.ReactNative.IReactPackageProvider {
7
+ ReactPackageProvider();
8
+ };
9
+ } // namespace ReactNativeBlobUtil
@@ -1,4 +1,4 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <packages>
3
- <package id="Microsoft.Windows.CppWinRT" version="2.0.200615.7" targetFramework="native" />
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <packages>
3
+ <package id="Microsoft.Windows.CppWinRT" version="2.0.200615.7" targetFramework="native" />
4
4
  </packages>
@@ -1 +1 @@
1
- #include "pch.h"
1
+ #include "pch.h"
@@ -1,4 +1,4 @@
1
- #pragma once
2
- #include <winrt/Windows.Foundation.h>
3
- #include <winrt/Windows.Foundation.Collections.h>
1
+ #pragma once
2
+ #include <winrt/Windows.Foundation.h>
3
+ #include <winrt/Windows.Foundation.Collections.h>
4
4
  #include <windows.h>