react-native-blob-util 0.22.0 → 0.22.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.
- package/.eslintrc.js +56 -56
- package/LICENSE +21 -21
- package/Migration.md +41 -41
- package/NuGet.config +11 -11
- package/README.md +1109 -1104
- package/android/gradle.properties +1 -1
- package/android/src/main/AndroidManifest.xml +37 -37
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilConfig.java +57 -57
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilConst.java +20 -20
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFileTransformer.java +9 -9
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilImpl.java +431 -431
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilProgressConfig.java +39 -39
- package/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilReq.java +1014 -1014
- package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilDefaultResp.java +98 -98
- package/android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilFileResp.java +166 -166
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileDescription.java +19 -19
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/FileProvider.java +4 -4
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java +70 -70
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/PathResolver.java +223 -223
- package/android/src/main/java/com/ReactNativeBlobUtil/Utils/Tls12SocketFactory.java +68 -68
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/xml/provider_paths.xml +12 -12
- package/android.js +58 -58
- package/class/ReactNativeBlobUtilCanceledFetchError.js +9 -9
- package/class/ReactNativeBlobUtilFile.js +5 -5
- package/class/ReactNativeBlobUtilReadStream.js +84 -84
- package/class/ReactNativeBlobUtilSession.js +68 -68
- package/class/ReactNativeBlobUtilWriteStream.js +50 -50
- package/class/StatefulPromise.js +7 -7
- package/codegenSpecs/NativeBlobUtils.js +86 -86
- package/components/Fetch.onPress.js +10 -10
- package/components/Fetch.when.js +15 -15
- package/fetch.js +350 -350
- package/fs.js +480 -480
- package/index.js +64 -64
- package/index.js.flow +192 -192
- package/index.web.js +1 -1
- package/ios/PrivacyInfo.xcprivacy +28 -28
- package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.h +55 -55
- package/ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm +992 -992
- package/ios/ReactNativeBlobUtil.xcodeproj/project.pbxproj +405 -405
- package/ios/ReactNativeBlobUtilConst.h +58 -58
- package/ios/ReactNativeBlobUtilConst.mm +47 -47
- package/ios/ReactNativeBlobUtilFS.h +108 -108
- package/ios/ReactNativeBlobUtilFS.mm +1064 -1064
- package/ios/ReactNativeBlobUtilFileTransformer.h +23 -23
- package/ios/ReactNativeBlobUtilFileTransformer.mm +20 -20
- package/ios/ReactNativeBlobUtilNetwork.h +49 -49
- package/ios/ReactNativeBlobUtilNetwork.mm +159 -159
- package/ios/ReactNativeBlobUtilProgress.h +32 -32
- package/ios/ReactNativeBlobUtilProgress.mm +57 -57
- package/ios/ReactNativeBlobUtilReqBuilder.h +37 -37
- package/ios/ReactNativeBlobUtilReqBuilder.mm +292 -292
- package/ios/ReactNativeBlobUtilRequest.h +48 -48
- package/ios/ReactNativeBlobUtilRequest.mm +584 -584
- package/ios.js +61 -61
- package/json-stream.js +42 -42
- package/lib/oboe-browser.js +2703 -2703
- package/mediacollection.js +36 -36
- package/package.json +68 -68
- package/polyfill/Blob.js +362 -362
- package/polyfill/Event.js +11 -11
- package/polyfill/EventTarget.js +78 -78
- package/polyfill/Fetch.js +219 -219
- package/polyfill/File.js +27 -27
- package/polyfill/FileReader.js +91 -91
- package/polyfill/ProgressEvent.js +32 -32
- package/polyfill/XMLHttpRequest.js +466 -466
- package/polyfill/XMLHttpRequestEventTarget.js +126 -126
- package/polyfill/index.js +11 -11
- package/react-native-blob-util.podspec +48 -48
- package/types.js +69 -69
- package/utils/log.js +40 -40
- package/utils/unicode.js +7 -7
- package/utils/uri.js +33 -33
- package/utils/uuid.js +4 -4
- package/windows/ExperimentalFeatures.props +33 -33
- package/windows/README.md +2 -2
- package/windows/ReactNativeBlobUtil/PropertySheet.props +15 -15
- package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp +1836 -1836
- package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.def +3 -3
- package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h +372 -372
- package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj +139 -139
- package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj.filters +43 -43
- package/windows/ReactNativeBlobUtil/ReactPackageProvider.cpp +20 -20
- package/windows/ReactNativeBlobUtil/ReactPackageProvider.h +24 -24
- package/windows/ReactNativeBlobUtil/ReactPackageProvider.idl +9 -9
- package/windows/ReactNativeBlobUtil/codegen/.clang-format +1 -1
- package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsDataTypes.g.h +42 -42
- package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsSpec.g.h +353 -353
- package/windows/ReactNativeBlobUtil/packages.config +3 -3
- package/windows/ReactNativeBlobUtil/packages.lock.json +59 -59
- package/windows/ReactNativeBlobUtil/pch.cpp +1 -1
- package/windows/ReactNativeBlobUtil/pch.h +30 -30
- package/windows/ReactNativeBlobUtil/resource.h +5 -5
- package/windows/ReactNativeBlobUtil/targetver.h +8 -8
- package/windows/ReactNativeBlobUtil.sln +43 -43
|
@@ -1,140 +1,140 @@
|
|
|
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>
|
|
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
140
|
</Project>
|
|
@@ -1,44 +1,44 @@
|
|
|
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>
|
|
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>
|
|
44
44
|
</Project>
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
+
#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,24 +1,24 @@
|
|
|
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
|
+
#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 : Microsoft.ReactNative.IReactPackageProvider
|
|
6
|
-
{
|
|
7
|
-
ReactPackageProvider();
|
|
8
|
-
};
|
|
9
|
-
}
|
|
1
|
+
namespace ReactNativeBlobUtil
|
|
2
|
+
{
|
|
3
|
+
[webhosthidden]
|
|
4
|
+
[default_interface]
|
|
5
|
+
runtimeclass ReactPackageProvider : Microsoft.ReactNative.IReactPackageProvider
|
|
6
|
+
{
|
|
7
|
+
ReactPackageProvider();
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
DisableFormat: true
|
|
1
|
+
DisableFormat: true
|
|
2
2
|
SortIncludes: false
|
|
@@ -1,42 +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
|
|
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
|