react-native-blob-util 0.21.2 → 0.22.0

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 (98) hide show
  1. package/.eslintrc.js +56 -56
  2. package/LICENSE +21 -21
  3. package/Migration.md +41 -41
  4. package/NuGet.config +11 -0
  5. package/README.md +1104 -1095
  6. package/android/gradle.properties +1 -1
  7. package/android/src/main/AndroidManifest.xml +37 -37
  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/ReactNativeBlobUtilFileTransformer.java +9 -9
  11. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilImpl.java +431 -431
  12. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilProgressConfig.java +39 -39
  13. package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java +1014 -1014
  14. package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilDefaultResp.java +98 -98
  15. package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilFileResp.java +166 -157
  16. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileDescription.java +19 -19
  17. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileProvider.java +4 -4
  18. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java +70 -70
  19. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/PathResolver.java +223 -223
  20. package/android/src/main/java/com/ReactNativeBlobUtil/Utils/Tls12SocketFactory.java +68 -68
  21. package/android/src/main/res/values/strings.xml +3 -3
  22. package/android/src/main/res/xml/provider_paths.xml +12 -12
  23. package/android.js +58 -58
  24. package/class/ReactNativeBlobUtilCanceledFetchError.js +9 -9
  25. package/class/ReactNativeBlobUtilFile.js +5 -5
  26. package/class/ReactNativeBlobUtilReadStream.js +84 -84
  27. package/class/ReactNativeBlobUtilSession.js +68 -68
  28. package/class/ReactNativeBlobUtilWriteStream.js +50 -50
  29. package/class/StatefulPromise.js +7 -7
  30. package/codegenSpecs/NativeBlobUtils.js +86 -86
  31. package/components/Fetch.onPress.js +10 -10
  32. package/components/Fetch.when.js +15 -15
  33. package/fetch.js +350 -350
  34. package/fs.js +480 -480
  35. package/index.js +64 -64
  36. package/index.js.flow +192 -192
  37. package/index.web.js +1 -1
  38. package/ios/PrivacyInfo.xcprivacy +28 -28
  39. package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.h +55 -55
  40. package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm +992 -992
  41. package/ios/ReactNativeBlobUtil.xcodeproj/project.pbxproj +405 -405
  42. package/ios/ReactNativeBlobUtilConst.h +58 -58
  43. package/ios/ReactNativeBlobUtilConst.mm +47 -47
  44. package/ios/ReactNativeBlobUtilFS.h +108 -108
  45. package/ios/ReactNativeBlobUtilFS.mm +1064 -1064
  46. package/ios/ReactNativeBlobUtilFileTransformer.h +23 -23
  47. package/ios/ReactNativeBlobUtilFileTransformer.mm +20 -20
  48. package/ios/ReactNativeBlobUtilNetwork.h +49 -49
  49. package/ios/ReactNativeBlobUtilNetwork.mm +159 -159
  50. package/ios/ReactNativeBlobUtilProgress.h +32 -32
  51. package/ios/ReactNativeBlobUtilProgress.mm +57 -57
  52. package/ios/ReactNativeBlobUtilReqBuilder.h +37 -37
  53. package/ios/ReactNativeBlobUtilReqBuilder.mm +292 -292
  54. package/ios/ReactNativeBlobUtilRequest.h +48 -48
  55. package/ios/ReactNativeBlobUtilRequest.mm +584 -584
  56. package/ios.js +61 -61
  57. package/json-stream.js +42 -42
  58. package/lib/oboe-browser.js +2703 -2703
  59. package/mediacollection.js +36 -36
  60. package/package.json +68 -55
  61. package/polyfill/Blob.js +362 -362
  62. package/polyfill/Event.js +11 -11
  63. package/polyfill/EventTarget.js +78 -78
  64. package/polyfill/Fetch.js +219 -219
  65. package/polyfill/File.js +27 -27
  66. package/polyfill/FileReader.js +91 -91
  67. package/polyfill/ProgressEvent.js +32 -32
  68. package/polyfill/XMLHttpRequest.js +466 -466
  69. package/polyfill/XMLHttpRequestEventTarget.js +126 -126
  70. package/polyfill/index.js +11 -11
  71. package/react-native-blob-util.podspec +48 -48
  72. package/types.js +69 -69
  73. package/utils/log.js +40 -40
  74. package/utils/unicode.js +7 -7
  75. package/utils/uri.js +33 -33
  76. package/utils/uuid.js +4 -4
  77. package/windows/ExperimentalFeatures.props +33 -0
  78. package/windows/README.md +2 -2
  79. package/windows/ReactNativeBlobUtil/PropertySheet.props +15 -15
  80. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp +1837 -1701
  81. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.def +3 -3
  82. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h +373 -379
  83. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.rc +0 -0
  84. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj +140 -181
  85. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj.filters +43 -31
  86. package/windows/ReactNativeBlobUtil/ReactPackageProvider.cpp +20 -15
  87. package/windows/ReactNativeBlobUtil/ReactPackageProvider.h +24 -20
  88. package/windows/ReactNativeBlobUtil/ReactPackageProvider.idl +9 -9
  89. package/windows/ReactNativeBlobUtil/codegen/.clang-format +2 -0
  90. package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsDataTypes.g.h +42 -0
  91. package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsSpec.g.h +353 -0
  92. package/windows/ReactNativeBlobUtil/packages.config +3 -3
  93. package/windows/ReactNativeBlobUtil/packages.lock.json +60 -0
  94. package/windows/ReactNativeBlobUtil/pch.cpp +1 -1
  95. package/windows/ReactNativeBlobUtil/pch.h +30 -4
  96. package/windows/ReactNativeBlobUtil/resource.h +5 -0
  97. package/windows/ReactNativeBlobUtil/targetver.h +8 -0
  98. package/windows/ReactNativeBlobUtil.sln +43 -0
@@ -1,181 +1,140 @@
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
+ <!-- This project was created with react-native-windows 0.76.13 -->
3
+ <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4
+ <Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
5
+ <PropertyGroup Label="Globals">
6
+ <CppWinRTOptimized>true</CppWinRTOptimized>
7
+ <MinimalCoreWin>true</MinimalCoreWin>
8
+ <ProjectGuid>{CDDE3311-EFD2-462D-8551-93637A7FAE92}</ProjectGuid>
9
+ <ProjectName>ReactNativeBlobUtil</ProjectName>
10
+ <Keyword>Win32Proj</Keyword>
11
+ <RootNamespace>ReactNativeBlobUtil</RootNamespace>
12
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
13
+ <DefaultLanguage>en-US</DefaultLanguage>
14
+ <MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
15
+ <AppxPackage>false</AppxPackage>
16
+ </PropertyGroup>
17
+ <PropertyGroup Label="ReactNativeWindowsProps">
18
+ <ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
19
+ <RunAutolinkCheck>false</RunAutolinkCheck>
20
+ </PropertyGroup>
21
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.WindowsSdk.Default.props" />
22
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
23
+ <ItemGroup Label="ProjectConfigurations">
24
+ <ProjectConfiguration Include="Debug|Win32">
25
+ <Configuration>Debug</Configuration>
26
+ <Platform>Win32</Platform>
27
+ </ProjectConfiguration>
28
+ <ProjectConfiguration Include="Release|Win32">
29
+ <Configuration>Release</Configuration>
30
+ <Platform>Win32</Platform>
31
+ </ProjectConfiguration>
32
+ <ProjectConfiguration Include="Debug|x64">
33
+ <Configuration>Debug</Configuration>
34
+ <Platform>x64</Platform>
35
+ </ProjectConfiguration>
36
+ <ProjectConfiguration Include="Release|x64">
37
+ <Configuration>Release</Configuration>
38
+ <Platform>x64</Platform>
39
+ </ProjectConfiguration>
40
+ <ProjectConfiguration Include="Debug|ARM64">
41
+ <Configuration>Debug</Configuration>
42
+ <Platform>ARM64</Platform>
43
+ </ProjectConfiguration>
44
+ <ProjectConfiguration Include="Release|ARM64">
45
+ <Configuration>Release</Configuration>
46
+ <Platform>ARM64</Platform>
47
+ </ProjectConfiguration>
48
+ </ItemGroup>
49
+ <PropertyGroup Label="Configuration">
50
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
51
+ <CharacterSet>Unicode</CharacterSet>
52
+ <PlatformToolset>v143</PlatformToolset>
53
+ <GenerateManifest>false</GenerateManifest>
54
+ </PropertyGroup>
55
+ <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
56
+ <UseDebugLibraries>true</UseDebugLibraries>
57
+ </PropertyGroup>
58
+ <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
59
+ <UseDebugLibraries>false</UseDebugLibraries>
60
+ <WholeProgramOptimization>true</WholeProgramOptimization>
61
+ </PropertyGroup>
62
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
63
+ <ImportGroup Label="ExtensionSettings">
64
+ </ImportGroup>
65
+ <ImportGroup Label="PropertySheets">
66
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67
+ </ImportGroup>
68
+ <ImportGroup Label="ReactNativeWindowsPropertySheets">
69
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" />
70
+ </ImportGroup>
71
+ <ItemDefinitionGroup>
72
+ <ClCompile>
73
+ <PrecompiledHeader>Use</PrecompiledHeader>
74
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
75
+ <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
76
+ <WarningLevel>Level4</WarningLevel>
77
+ <SDLCheck>true</SDLCheck>
78
+ <AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
79
+ <DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
80
+ <PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
81
+ <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
82
+ <LanguageStandard>stdcpp20</LanguageStandard>
83
+ </ClCompile>
84
+ <Link>
85
+ <AdditionalDependencies>shell32.lib;user32.lib;windowsapp.lib;%(AdditionalDependenices)</AdditionalDependencies>
86
+ <SubSystem>Console</SubSystem>
87
+ <GenerateWindowsMetadata>true</GenerateWindowsMetadata>
88
+ <ModuleDefinitionFile>ReactNativeBlobUtil.def</ModuleDefinitionFile>
89
+ </Link>
90
+ </ItemDefinitionGroup>
91
+ <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
92
+ <ClCompile>
93
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
94
+ </ClCompile>
95
+ </ItemDefinitionGroup>
96
+ <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
97
+ <ClCompile>
98
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
99
+ </ClCompile>
100
+ </ItemDefinitionGroup>
101
+ <PropertyGroup Label="UserMacros" />
102
+ <ItemGroup>
103
+ <ClInclude Include="ReactNativeBlobUtil.h" />
104
+ <ClInclude Include="ReactPackageProvider.h">
105
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
106
+ </ClInclude>
107
+ <ClInclude Include="resource.h" />
108
+ <ClInclude Include="pch.h" />
109
+ <ClInclude Include="targetver.h" />
110
+ </ItemGroup>
111
+ <ItemGroup>
112
+ <ClCompile Include="ReactNativeBlobUtil.cpp" />
113
+ <ClCompile Include="pch.cpp">
114
+ <PrecompiledHeader>Create</PrecompiledHeader>
115
+ </ClCompile>
116
+ <ClCompile Include="ReactPackageProvider.cpp">
117
+ <DependentUpon>ReactPackageProvider.idl</DependentUpon>
118
+ </ClCompile>
119
+ <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
120
+ </ItemGroup>
121
+ <ItemGroup>
122
+ <Midl Include="ReactPackageProvider.idl" />
123
+ </ItemGroup>
124
+ <ItemGroup>
125
+ <ResourceCompile Include="ReactNativeBlobUtil.rc" />
126
+ </ItemGroup>
127
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
128
+ <ImportGroup Label="ReactNativeWindowsTargets">
129
+ <Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" />
130
+ </ImportGroup>
131
+ <ItemGroup>
132
+ </ItemGroup>
133
+ <Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">
134
+ <PropertyGroup>
135
+ <ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
136
+ </PropertyGroup>
137
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.props'))" />
138
+ <Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.CppLib.targets'))" />
139
+ </Target>
140
+ </Project>
@@ -1,32 +1,44 @@
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="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
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
+ </Filter>
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>
15
+ </Filter>
16
+ </ItemGroup>
17
+ <ItemGroup>
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="ReactNativeBlobUtil.h">
25
+ <Filter>Header Files</Filter>
26
+ </ClInclude>
27
+ <ClInclude Include="pch.h">
28
+ <Filter>Header Files</Filter>
29
+ </ClInclude>
30
+ </ItemGroup>
31
+ <ItemGroup>
32
+ <ClCompile Include="ReactNativeBlobUtil.cpp">
33
+ <Filter>Source Files</Filter>
34
+ </ClCompile>
35
+ <ClCompile Include="pch.cpp">
36
+ <Filter>Source Files</Filter>
37
+ </ClCompile>
38
+ </ItemGroup>
39
+ <ItemGroup>
40
+ <ResourceCompile Include="ReactNativeBlobUtil.rc">
41
+ <Filter>Resource Files</Filter>
42
+ </ResourceCompile>
43
+ </ItemGroup>
32
44
  </Project>
@@ -1,15 +1,20 @@
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
+
3
+ #include "ReactPackageProvider.h"
4
+ #if __has_include("ReactPackageProvider.g.cpp")
5
+ #include "ReactPackageProvider.g.cpp"
6
+ #endif
7
+
8
+ #include "ReactNativeBlobUtil.h"
9
+
10
+ using namespace winrt::Microsoft::ReactNative;
11
+
12
+ namespace winrt::ReactNativeBlobUtil::implementation
13
+ {
14
+
15
+ void ReactPackageProvider::CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept
16
+ {
17
+ AddAttributedModules(packageBuilder, true);
18
+ }
19
+
20
+ } // namespace winrt::ReactNativeBlobUtil::implementation
@@ -1,20 +1,24 @@
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
+
3
+ #include "ReactPackageProvider.g.h"
4
+
5
+ using namespace winrt::Microsoft::ReactNative;
6
+
7
+ namespace winrt::ReactNativeBlobUtil::implementation
8
+ {
9
+
10
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider>
11
+ {
12
+ ReactPackageProvider() = default;
13
+
14
+ void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept;
15
+ };
16
+
17
+ } // namespace winrt::ReactNativeBlobUtil::implementation
18
+
19
+ namespace winrt::ReactNativeBlobUtil::factory_implementation
20
+ {
21
+
22
+ struct ReactPackageProvider : ReactPackageProviderT<ReactPackageProvider, implementation::ReactPackageProvider> {};
23
+
24
+ } // 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 : Microsoft.ReactNative.IReactPackageProvider
6
+ {
7
+ ReactPackageProvider();
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ DisableFormat: true
2
+ SortIncludes: false
@@ -0,0 +1,42 @@
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
+ // clang-format off
11
+
12
+ #include <string>
13
+ #include <optional>
14
+ #include <functional>
15
+ #include <vector>
16
+
17
+ namespace ReactNativeBlobUtilCodegen {
18
+
19
+ struct BlobUtilsSpec_Constants {
20
+ std::string CacheDir;
21
+ std::string DocumentDir;
22
+ std::string DownloadDir;
23
+ std::string LibraryDir;
24
+ std::string MainBundleDir;
25
+ std::string MovieDir;
26
+ std::string MusicDir;
27
+ std::string PictureDir;
28
+ std::string ApplicationSupportDir;
29
+ std::string RingtoneDir;
30
+ std::string SDCardDir;
31
+ std::string SDCardApplicationDir;
32
+ std::string DCIMDir;
33
+ std::string LegacyDCIMDir;
34
+ std::string LegacyPictureDir;
35
+ std::string LegacyMusicDir;
36
+ std::string LegacyDownloadDir;
37
+ std::string LegacyMovieDir;
38
+ std::string LegacyRingtoneDir;
39
+ std::string LegacySDCardDir;
40
+ };
41
+
42
+ } // namespace ReactNativeBlobUtilCodegen