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.
Files changed (97) hide show
  1. package/.eslintrc.js +56 -56
  2. package/LICENSE +21 -21
  3. package/Migration.md +41 -41
  4. package/NuGet.config +11 -11
  5. package/README.md +1109 -1104
  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 -166
  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 -68
  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 -33
  78. package/windows/README.md +2 -2
  79. package/windows/ReactNativeBlobUtil/PropertySheet.props +15 -15
  80. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp +1836 -1836
  81. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.def +3 -3
  82. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.h +372 -372
  83. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj +139 -139
  84. package/windows/ReactNativeBlobUtil/ReactNativeBlobUtil.vcxproj.filters +43 -43
  85. package/windows/ReactNativeBlobUtil/ReactPackageProvider.cpp +20 -20
  86. package/windows/ReactNativeBlobUtil/ReactPackageProvider.h +24 -24
  87. package/windows/ReactNativeBlobUtil/ReactPackageProvider.idl +9 -9
  88. package/windows/ReactNativeBlobUtil/codegen/.clang-format +1 -1
  89. package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsDataTypes.g.h +42 -42
  90. package/windows/ReactNativeBlobUtil/codegen/NativeBlobUtilsSpec.g.h +353 -353
  91. package/windows/ReactNativeBlobUtil/packages.config +3 -3
  92. package/windows/ReactNativeBlobUtil/packages.lock.json +59 -59
  93. package/windows/ReactNativeBlobUtil/pch.cpp +1 -1
  94. package/windows/ReactNativeBlobUtil/pch.h +30 -30
  95. package/windows/ReactNativeBlobUtil/resource.h +5 -5
  96. package/windows/ReactNativeBlobUtil/targetver.h +8 -8
  97. package/windows/ReactNativeBlobUtil.sln +43 -43
@@ -1,353 +1,353 @@
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 "NativeBlobUtilsDataTypes.g.h" before this file to use the generated type definition
13
- #include <NativeModules.h>
14
- #include <tuple>
15
-
16
- namespace ReactNativeBlobUtilCodegen {
17
-
18
- inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(BlobUtilsSpec_Constants*) noexcept {
19
- winrt::Microsoft::ReactNative::FieldMap fieldMap {
20
- {L"CacheDir", &BlobUtilsSpec_Constants::CacheDir},
21
- {L"DocumentDir", &BlobUtilsSpec_Constants::DocumentDir},
22
- {L"DownloadDir", &BlobUtilsSpec_Constants::DownloadDir},
23
- {L"LibraryDir", &BlobUtilsSpec_Constants::LibraryDir},
24
- {L"MainBundleDir", &BlobUtilsSpec_Constants::MainBundleDir},
25
- {L"MovieDir", &BlobUtilsSpec_Constants::MovieDir},
26
- {L"MusicDir", &BlobUtilsSpec_Constants::MusicDir},
27
- {L"PictureDir", &BlobUtilsSpec_Constants::PictureDir},
28
- {L"ApplicationSupportDir", &BlobUtilsSpec_Constants::ApplicationSupportDir},
29
- {L"RingtoneDir", &BlobUtilsSpec_Constants::RingtoneDir},
30
- {L"SDCardDir", &BlobUtilsSpec_Constants::SDCardDir},
31
- {L"SDCardApplicationDir", &BlobUtilsSpec_Constants::SDCardApplicationDir},
32
- {L"DCIMDir", &BlobUtilsSpec_Constants::DCIMDir},
33
- {L"LegacyDCIMDir", &BlobUtilsSpec_Constants::LegacyDCIMDir},
34
- {L"LegacyPictureDir", &BlobUtilsSpec_Constants::LegacyPictureDir},
35
- {L"LegacyMusicDir", &BlobUtilsSpec_Constants::LegacyMusicDir},
36
- {L"LegacyDownloadDir", &BlobUtilsSpec_Constants::LegacyDownloadDir},
37
- {L"LegacyMovieDir", &BlobUtilsSpec_Constants::LegacyMovieDir},
38
- {L"LegacyRingtoneDir", &BlobUtilsSpec_Constants::LegacyRingtoneDir},
39
- {L"LegacySDCardDir", &BlobUtilsSpec_Constants::LegacySDCardDir},
40
- };
41
- return fieldMap;
42
- }
43
-
44
- struct BlobUtilsSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
45
- static constexpr auto constants = std::tuple{
46
- TypedConstant<BlobUtilsSpec_Constants>{0},
47
- };
48
- static constexpr auto methods = std::tuple{
49
- Method<void(::React::JSValue, std::string, std::string, std::string, ::React::JSValue, ::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{0, L"fetchBlobForm"},
50
- Method<void(::React::JSValue, std::string, std::string, std::string, ::React::JSValue, std::string, Callback<::React::JSValueArray>) noexcept>{1, L"fetchBlob"},
51
- Method<void(std::string, std::string, std::string, Promise<void>) noexcept>{2, L"createFile"},
52
- Method<void(std::string, ::React::JSValueArray, Promise<void>) noexcept>{3, L"createFileASCII"},
53
- Method<void(std::string, Promise<std::string>) noexcept>{4, L"pathForAppGroup"},
54
- SyncMethod<std::string(std::string) noexcept>{5, L"syncPathAppGroup"},
55
- Method<void(std::string, Callback<std::vector<bool>>) noexcept>{6, L"exists"},
56
- Method<void(std::string, std::string, std::string, bool, bool, Promise<double>) noexcept>{7, L"writeFile"},
57
- Method<void(std::string, ::React::JSValueArray, bool, Promise<double>) noexcept>{8, L"writeFileArray"},
58
- Method<void(std::string, std::string, bool, Callback<::React::JSValueArray>) noexcept>{9, L"writeStream"},
59
- Method<void(std::string, ::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{10, L"writeArrayChunk"},
60
- Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{11, L"writeChunk"},
61
- Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{12, L"closeStream"},
62
- Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{13, L"unlink"},
63
- Method<void(::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{14, L"removeSession"},
64
- Method<void(std::string, Promise<::React::JSValueArray>) noexcept>{15, L"ls"},
65
- Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{16, L"stat"},
66
- Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{17, L"lstat"},
67
- Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{18, L"cp"},
68
- Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{19, L"mv"},
69
- Method<void(std::string, Promise<bool>) noexcept>{20, L"mkdir"},
70
- Method<void(std::string, std::string, bool, Promise<::React::JSValueArray>) noexcept>{21, L"readFile"},
71
- Method<void(std::string, std::string, Promise<std::string>) noexcept>{22, L"hash"},
72
- Method<void(std::string, std::string, double, double, std::string) noexcept>{23, L"readStream"},
73
- Method<void(Callback<::React::JSValueArray>) noexcept>{24, L"getEnvironmentDirs"},
74
- Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{25, L"cancelRequest"},
75
- Method<void(std::string, double, double) noexcept>{26, L"enableProgressReport"},
76
- Method<void(std::string, double, double) noexcept>{27, L"enableUploadProgressReport"},
77
- Method<void(std::string, std::string, double, double, Promise<std::string>) noexcept>{28, L"slice"},
78
- Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{29, L"presentOptionsMenu"},
79
- Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{30, L"presentOpenInMenu"},
80
- Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{31, L"presentPreview"},
81
- Method<void(std::string, Promise<::React::JSValueArray>) noexcept>{32, L"excludeFromBackupKey"},
82
- Method<void(Callback<::React::JSValueArray>) noexcept>{33, L"df"},
83
- Method<void(Callback<std::string>) noexcept>{34, L"emitExpiredEvent"},
84
- Method<void(std::string, std::string, std::string, Promise<void>) noexcept>{35, L"actionViewIntent"},
85
- Method<void(::React::JSValue, Promise<void>) noexcept>{36, L"addCompleteDownload"},
86
- Method<void(std::string, std::string, Promise<std::string>) noexcept>{37, L"copyToInternal"},
87
- Method<void(::React::JSValue, std::string, std::string, Promise<std::string>) noexcept>{38, L"copyToMediaStore"},
88
- Method<void(::React::JSValue, std::string, Promise<std::string>) noexcept>{39, L"createMediaFile"},
89
- Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{40, L"getBlob"},
90
- Method<void(std::string, Promise<std::string>) noexcept>{41, L"getContentIntent"},
91
- Method<void(Promise<std::string>) noexcept>{42, L"getSDCardDir"},
92
- Method<void(Promise<std::string>) noexcept>{43, L"getSDCardApplicationDir"},
93
- Method<void(::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{44, L"scanFile"},
94
- Method<void(std::string, std::string, bool, Promise<std::string>) noexcept>{45, L"writeToMediaFile"},
95
- Method<void(std::string) noexcept>{46, L"addListener"},
96
- Method<void(double) noexcept>{47, L"removeListeners"},
97
- };
98
-
99
- template <class TModule>
100
- static constexpr void ValidateModule() noexcept {
101
- constexpr auto constantCheckResults = CheckConstants<TModule, BlobUtilsSpec>();
102
- constexpr auto methodCheckResults = CheckMethods<TModule, BlobUtilsSpec>();
103
-
104
- REACT_SHOW_CONSTANT_SPEC_ERRORS(
105
- 0,
106
- "BlobUtilsSpec_Constants",
107
- " REACT_GET_CONSTANTS(GetConstants) BlobUtilsSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
108
- " REACT_GET_CONSTANTS(GetConstants) static BlobUtilsSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
109
-
110
- REACT_SHOW_METHOD_SPEC_ERRORS(
111
- 0,
112
- "fetchBlobForm",
113
- " REACT_METHOD(fetchBlobForm) void fetchBlobForm(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, ::React::JSValueArray && form, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
114
- " REACT_METHOD(fetchBlobForm) static void fetchBlobForm(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, ::React::JSValueArray && form, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
115
- REACT_SHOW_METHOD_SPEC_ERRORS(
116
- 1,
117
- "fetchBlob",
118
- " REACT_METHOD(fetchBlob) void fetchBlob(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, std::string body, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
119
- " REACT_METHOD(fetchBlob) static void fetchBlob(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, std::string body, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
120
- REACT_SHOW_METHOD_SPEC_ERRORS(
121
- 2,
122
- "createFile",
123
- " REACT_METHOD(createFile) void createFile(std::string path, std::string data, std::string encoding, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
124
- " REACT_METHOD(createFile) static void createFile(std::string path, std::string data, std::string encoding, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
125
- REACT_SHOW_METHOD_SPEC_ERRORS(
126
- 3,
127
- "createFileASCII",
128
- " REACT_METHOD(createFileASCII) void createFileASCII(std::string path, ::React::JSValueArray && data, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
129
- " REACT_METHOD(createFileASCII) static void createFileASCII(std::string path, ::React::JSValueArray && data, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
130
- REACT_SHOW_METHOD_SPEC_ERRORS(
131
- 4,
132
- "pathForAppGroup",
133
- " REACT_METHOD(pathForAppGroup) void pathForAppGroup(std::string groupName, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
134
- " REACT_METHOD(pathForAppGroup) static void pathForAppGroup(std::string groupName, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
135
- REACT_SHOW_METHOD_SPEC_ERRORS(
136
- 5,
137
- "syncPathAppGroup",
138
- " REACT_SYNC_METHOD(syncPathAppGroup) std::string syncPathAppGroup(std::string groupName) noexcept { /* implementation */ }\n"
139
- " REACT_SYNC_METHOD(syncPathAppGroup) static std::string syncPathAppGroup(std::string groupName) noexcept { /* implementation */ }\n");
140
- REACT_SHOW_METHOD_SPEC_ERRORS(
141
- 6,
142
- "exists",
143
- " REACT_METHOD(exists) void exists(std::string path, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }\n"
144
- " REACT_METHOD(exists) static void exists(std::string path, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }\n");
145
- REACT_SHOW_METHOD_SPEC_ERRORS(
146
- 7,
147
- "writeFile",
148
- " REACT_METHOD(writeFile) void writeFile(std::string path, std::string encoding, std::string data, bool transformFile, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n"
149
- " REACT_METHOD(writeFile) static void writeFile(std::string path, std::string encoding, std::string data, bool transformFile, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n");
150
- REACT_SHOW_METHOD_SPEC_ERRORS(
151
- 8,
152
- "writeFileArray",
153
- " REACT_METHOD(writeFileArray) void writeFileArray(std::string path, ::React::JSValueArray && data, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n"
154
- " REACT_METHOD(writeFileArray) static void writeFileArray(std::string path, ::React::JSValueArray && data, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n");
155
- REACT_SHOW_METHOD_SPEC_ERRORS(
156
- 9,
157
- "writeStream",
158
- " REACT_METHOD(writeStream) void writeStream(std::string path, std::string withEncoding, bool appendData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
159
- " REACT_METHOD(writeStream) static void writeStream(std::string path, std::string withEncoding, bool appendData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
160
- REACT_SHOW_METHOD_SPEC_ERRORS(
161
- 10,
162
- "writeArrayChunk",
163
- " REACT_METHOD(writeArrayChunk) void writeArrayChunk(std::string streamId, ::React::JSValueArray && withArray, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
164
- " REACT_METHOD(writeArrayChunk) static void writeArrayChunk(std::string streamId, ::React::JSValueArray && withArray, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
165
- REACT_SHOW_METHOD_SPEC_ERRORS(
166
- 11,
167
- "writeChunk",
168
- " REACT_METHOD(writeChunk) void writeChunk(std::string streamId, std::string withData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
169
- " REACT_METHOD(writeChunk) static void writeChunk(std::string streamId, std::string withData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
170
- REACT_SHOW_METHOD_SPEC_ERRORS(
171
- 12,
172
- "closeStream",
173
- " REACT_METHOD(closeStream) void closeStream(std::string streamId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
174
- " REACT_METHOD(closeStream) static void closeStream(std::string streamId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
175
- REACT_SHOW_METHOD_SPEC_ERRORS(
176
- 13,
177
- "unlink",
178
- " REACT_METHOD(unlink) void unlink(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
179
- " REACT_METHOD(unlink) static void unlink(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
180
- REACT_SHOW_METHOD_SPEC_ERRORS(
181
- 14,
182
- "removeSession",
183
- " REACT_METHOD(removeSession) void removeSession(::React::JSValueArray && paths, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
184
- " REACT_METHOD(removeSession) static void removeSession(::React::JSValueArray && paths, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
185
- REACT_SHOW_METHOD_SPEC_ERRORS(
186
- 15,
187
- "ls",
188
- " REACT_METHOD(ls) void ls(std::string path, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
189
- " REACT_METHOD(ls) static void ls(std::string path, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
190
- REACT_SHOW_METHOD_SPEC_ERRORS(
191
- 16,
192
- "stat",
193
- " REACT_METHOD(stat) void stat(std::string target, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
194
- " REACT_METHOD(stat) static void stat(std::string target, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
195
- REACT_SHOW_METHOD_SPEC_ERRORS(
196
- 17,
197
- "lstat",
198
- " REACT_METHOD(lstat) void lstat(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
199
- " REACT_METHOD(lstat) static void lstat(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
200
- REACT_SHOW_METHOD_SPEC_ERRORS(
201
- 18,
202
- "cp",
203
- " REACT_METHOD(cp) void cp(std::string src, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
204
- " REACT_METHOD(cp) static void cp(std::string src, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
205
- REACT_SHOW_METHOD_SPEC_ERRORS(
206
- 19,
207
- "mv",
208
- " REACT_METHOD(mv) void mv(std::string path, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
209
- " REACT_METHOD(mv) static void mv(std::string path, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
210
- REACT_SHOW_METHOD_SPEC_ERRORS(
211
- 20,
212
- "mkdir",
213
- " REACT_METHOD(mkdir) void mkdir(std::string path, ::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
214
- " REACT_METHOD(mkdir) static void mkdir(std::string path, ::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
215
- REACT_SHOW_METHOD_SPEC_ERRORS(
216
- 21,
217
- "readFile",
218
- " REACT_METHOD(readFile) void readFile(std::string path, std::string encoding, bool transformFile, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
219
- " REACT_METHOD(readFile) static void readFile(std::string path, std::string encoding, bool transformFile, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
220
- REACT_SHOW_METHOD_SPEC_ERRORS(
221
- 22,
222
- "hash",
223
- " REACT_METHOD(hash) void hash(std::string path, std::string algorithm, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
224
- " REACT_METHOD(hash) static void hash(std::string path, std::string algorithm, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
225
- REACT_SHOW_METHOD_SPEC_ERRORS(
226
- 23,
227
- "readStream",
228
- " REACT_METHOD(readStream) void readStream(std::string path, std::string encoding, double bufferSize, double tick, std::string streamId) noexcept { /* implementation */ }\n"
229
- " REACT_METHOD(readStream) static void readStream(std::string path, std::string encoding, double bufferSize, double tick, std::string streamId) noexcept { /* implementation */ }\n");
230
- REACT_SHOW_METHOD_SPEC_ERRORS(
231
- 24,
232
- "getEnvironmentDirs",
233
- " REACT_METHOD(getEnvironmentDirs) void getEnvironmentDirs(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
234
- " REACT_METHOD(getEnvironmentDirs) static void getEnvironmentDirs(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
235
- REACT_SHOW_METHOD_SPEC_ERRORS(
236
- 25,
237
- "cancelRequest",
238
- " REACT_METHOD(cancelRequest) void cancelRequest(std::string taskId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
239
- " REACT_METHOD(cancelRequest) static void cancelRequest(std::string taskId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
240
- REACT_SHOW_METHOD_SPEC_ERRORS(
241
- 26,
242
- "enableProgressReport",
243
- " REACT_METHOD(enableProgressReport) void enableProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n"
244
- " REACT_METHOD(enableProgressReport) static void enableProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n");
245
- REACT_SHOW_METHOD_SPEC_ERRORS(
246
- 27,
247
- "enableUploadProgressReport",
248
- " REACT_METHOD(enableUploadProgressReport) void enableUploadProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n"
249
- " REACT_METHOD(enableUploadProgressReport) static void enableUploadProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n");
250
- REACT_SHOW_METHOD_SPEC_ERRORS(
251
- 28,
252
- "slice",
253
- " REACT_METHOD(slice) void slice(std::string src, std::string dest, double start, double end, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
254
- " REACT_METHOD(slice) static void slice(std::string src, std::string dest, double start, double end, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
255
- REACT_SHOW_METHOD_SPEC_ERRORS(
256
- 29,
257
- "presentOptionsMenu",
258
- " REACT_METHOD(presentOptionsMenu) void presentOptionsMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
259
- " REACT_METHOD(presentOptionsMenu) static void presentOptionsMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
260
- REACT_SHOW_METHOD_SPEC_ERRORS(
261
- 30,
262
- "presentOpenInMenu",
263
- " REACT_METHOD(presentOpenInMenu) void presentOpenInMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
264
- " REACT_METHOD(presentOpenInMenu) static void presentOpenInMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
265
- REACT_SHOW_METHOD_SPEC_ERRORS(
266
- 31,
267
- "presentPreview",
268
- " REACT_METHOD(presentPreview) void presentPreview(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
269
- " REACT_METHOD(presentPreview) static void presentPreview(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
270
- REACT_SHOW_METHOD_SPEC_ERRORS(
271
- 32,
272
- "excludeFromBackupKey",
273
- " REACT_METHOD(excludeFromBackupKey) void excludeFromBackupKey(std::string url, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
274
- " REACT_METHOD(excludeFromBackupKey) static void excludeFromBackupKey(std::string url, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
275
- REACT_SHOW_METHOD_SPEC_ERRORS(
276
- 33,
277
- "df",
278
- " REACT_METHOD(df) void df(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
279
- " REACT_METHOD(df) static void df(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
280
- REACT_SHOW_METHOD_SPEC_ERRORS(
281
- 34,
282
- "emitExpiredEvent",
283
- " REACT_METHOD(emitExpiredEvent) void emitExpiredEvent(std::function<void(std::string)> const & callback) noexcept { /* implementation */ }\n"
284
- " REACT_METHOD(emitExpiredEvent) static void emitExpiredEvent(std::function<void(std::string)> const & callback) noexcept { /* implementation */ }\n");
285
- REACT_SHOW_METHOD_SPEC_ERRORS(
286
- 35,
287
- "actionViewIntent",
288
- " REACT_METHOD(actionViewIntent) void actionViewIntent(std::string path, std::string mime, std::string chooserTitle, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
289
- " REACT_METHOD(actionViewIntent) static void actionViewIntent(std::string path, std::string mime, std::string chooserTitle, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
290
- REACT_SHOW_METHOD_SPEC_ERRORS(
291
- 36,
292
- "addCompleteDownload",
293
- " REACT_METHOD(addCompleteDownload) void addCompleteDownload(::React::JSValue && config, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
294
- " REACT_METHOD(addCompleteDownload) static void addCompleteDownload(::React::JSValue && config, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
295
- REACT_SHOW_METHOD_SPEC_ERRORS(
296
- 37,
297
- "copyToInternal",
298
- " REACT_METHOD(copyToInternal) void copyToInternal(std::string contentUri, std::string destpath, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
299
- " REACT_METHOD(copyToInternal) static void copyToInternal(std::string contentUri, std::string destpath, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
300
- REACT_SHOW_METHOD_SPEC_ERRORS(
301
- 38,
302
- "copyToMediaStore",
303
- " REACT_METHOD(copyToMediaStore) void copyToMediaStore(::React::JSValue && filedata, std::string mt, std::string path, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
304
- " REACT_METHOD(copyToMediaStore) static void copyToMediaStore(::React::JSValue && filedata, std::string mt, std::string path, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
305
- REACT_SHOW_METHOD_SPEC_ERRORS(
306
- 39,
307
- "createMediaFile",
308
- " REACT_METHOD(createMediaFile) void createMediaFile(::React::JSValue && filedata, std::string mt, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
309
- " REACT_METHOD(createMediaFile) static void createMediaFile(::React::JSValue && filedata, std::string mt, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
310
- REACT_SHOW_METHOD_SPEC_ERRORS(
311
- 40,
312
- "getBlob",
313
- " REACT_METHOD(getBlob) void getBlob(std::string contentUri, std::string encoding, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
314
- " REACT_METHOD(getBlob) static void getBlob(std::string contentUri, std::string encoding, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
315
- REACT_SHOW_METHOD_SPEC_ERRORS(
316
- 41,
317
- "getContentIntent",
318
- " REACT_METHOD(getContentIntent) void getContentIntent(std::string mime, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
319
- " REACT_METHOD(getContentIntent) static void getContentIntent(std::string mime, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
320
- REACT_SHOW_METHOD_SPEC_ERRORS(
321
- 42,
322
- "getSDCardDir",
323
- " REACT_METHOD(getSDCardDir) void getSDCardDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
324
- " REACT_METHOD(getSDCardDir) static void getSDCardDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
325
- REACT_SHOW_METHOD_SPEC_ERRORS(
326
- 43,
327
- "getSDCardApplicationDir",
328
- " REACT_METHOD(getSDCardApplicationDir) void getSDCardApplicationDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
329
- " REACT_METHOD(getSDCardApplicationDir) static void getSDCardApplicationDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
330
- REACT_SHOW_METHOD_SPEC_ERRORS(
331
- 44,
332
- "scanFile",
333
- " REACT_METHOD(scanFile) void scanFile(::React::JSValueArray && pairs, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
334
- " REACT_METHOD(scanFile) static void scanFile(::React::JSValueArray && pairs, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
335
- REACT_SHOW_METHOD_SPEC_ERRORS(
336
- 45,
337
- "writeToMediaFile",
338
- " REACT_METHOD(writeToMediaFile) void writeToMediaFile(std::string fileUri, std::string path, bool transformFile, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
339
- " REACT_METHOD(writeToMediaFile) static void writeToMediaFile(std::string fileUri, std::string path, bool transformFile, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
340
- REACT_SHOW_METHOD_SPEC_ERRORS(
341
- 46,
342
- "addListener",
343
- " REACT_METHOD(addListener) void addListener(std::string eventName) noexcept { /* implementation */ }\n"
344
- " REACT_METHOD(addListener) static void addListener(std::string eventName) noexcept { /* implementation */ }\n");
345
- REACT_SHOW_METHOD_SPEC_ERRORS(
346
- 47,
347
- "removeListeners",
348
- " REACT_METHOD(removeListeners) void removeListeners(double count) noexcept { /* implementation */ }\n"
349
- " REACT_METHOD(removeListeners) static void removeListeners(double count) noexcept { /* implementation */ }\n");
350
- }
351
- };
352
-
353
- } // 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 "NativeBlobUtilsDataTypes.g.h" before this file to use the generated type definition
13
+ #include <NativeModules.h>
14
+ #include <tuple>
15
+
16
+ namespace ReactNativeBlobUtilCodegen {
17
+
18
+ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(BlobUtilsSpec_Constants*) noexcept {
19
+ winrt::Microsoft::ReactNative::FieldMap fieldMap {
20
+ {L"CacheDir", &BlobUtilsSpec_Constants::CacheDir},
21
+ {L"DocumentDir", &BlobUtilsSpec_Constants::DocumentDir},
22
+ {L"DownloadDir", &BlobUtilsSpec_Constants::DownloadDir},
23
+ {L"LibraryDir", &BlobUtilsSpec_Constants::LibraryDir},
24
+ {L"MainBundleDir", &BlobUtilsSpec_Constants::MainBundleDir},
25
+ {L"MovieDir", &BlobUtilsSpec_Constants::MovieDir},
26
+ {L"MusicDir", &BlobUtilsSpec_Constants::MusicDir},
27
+ {L"PictureDir", &BlobUtilsSpec_Constants::PictureDir},
28
+ {L"ApplicationSupportDir", &BlobUtilsSpec_Constants::ApplicationSupportDir},
29
+ {L"RingtoneDir", &BlobUtilsSpec_Constants::RingtoneDir},
30
+ {L"SDCardDir", &BlobUtilsSpec_Constants::SDCardDir},
31
+ {L"SDCardApplicationDir", &BlobUtilsSpec_Constants::SDCardApplicationDir},
32
+ {L"DCIMDir", &BlobUtilsSpec_Constants::DCIMDir},
33
+ {L"LegacyDCIMDir", &BlobUtilsSpec_Constants::LegacyDCIMDir},
34
+ {L"LegacyPictureDir", &BlobUtilsSpec_Constants::LegacyPictureDir},
35
+ {L"LegacyMusicDir", &BlobUtilsSpec_Constants::LegacyMusicDir},
36
+ {L"LegacyDownloadDir", &BlobUtilsSpec_Constants::LegacyDownloadDir},
37
+ {L"LegacyMovieDir", &BlobUtilsSpec_Constants::LegacyMovieDir},
38
+ {L"LegacyRingtoneDir", &BlobUtilsSpec_Constants::LegacyRingtoneDir},
39
+ {L"LegacySDCardDir", &BlobUtilsSpec_Constants::LegacySDCardDir},
40
+ };
41
+ return fieldMap;
42
+ }
43
+
44
+ struct BlobUtilsSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
45
+ static constexpr auto constants = std::tuple{
46
+ TypedConstant<BlobUtilsSpec_Constants>{0},
47
+ };
48
+ static constexpr auto methods = std::tuple{
49
+ Method<void(::React::JSValue, std::string, std::string, std::string, ::React::JSValue, ::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{0, L"fetchBlobForm"},
50
+ Method<void(::React::JSValue, std::string, std::string, std::string, ::React::JSValue, std::string, Callback<::React::JSValueArray>) noexcept>{1, L"fetchBlob"},
51
+ Method<void(std::string, std::string, std::string, Promise<void>) noexcept>{2, L"createFile"},
52
+ Method<void(std::string, ::React::JSValueArray, Promise<void>) noexcept>{3, L"createFileASCII"},
53
+ Method<void(std::string, Promise<std::string>) noexcept>{4, L"pathForAppGroup"},
54
+ SyncMethod<std::string(std::string) noexcept>{5, L"syncPathAppGroup"},
55
+ Method<void(std::string, Callback<std::vector<bool>>) noexcept>{6, L"exists"},
56
+ Method<void(std::string, std::string, std::string, bool, bool, Promise<double>) noexcept>{7, L"writeFile"},
57
+ Method<void(std::string, ::React::JSValueArray, bool, Promise<double>) noexcept>{8, L"writeFileArray"},
58
+ Method<void(std::string, std::string, bool, Callback<::React::JSValueArray>) noexcept>{9, L"writeStream"},
59
+ Method<void(std::string, ::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{10, L"writeArrayChunk"},
60
+ Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{11, L"writeChunk"},
61
+ Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{12, L"closeStream"},
62
+ Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{13, L"unlink"},
63
+ Method<void(::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{14, L"removeSession"},
64
+ Method<void(std::string, Promise<::React::JSValueArray>) noexcept>{15, L"ls"},
65
+ Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{16, L"stat"},
66
+ Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{17, L"lstat"},
67
+ Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{18, L"cp"},
68
+ Method<void(std::string, std::string, Callback<::React::JSValueArray>) noexcept>{19, L"mv"},
69
+ Method<void(std::string, Promise<bool>) noexcept>{20, L"mkdir"},
70
+ Method<void(std::string, std::string, bool, Promise<::React::JSValueArray>) noexcept>{21, L"readFile"},
71
+ Method<void(std::string, std::string, Promise<std::string>) noexcept>{22, L"hash"},
72
+ Method<void(std::string, std::string, double, double, std::string) noexcept>{23, L"readStream"},
73
+ Method<void(Callback<::React::JSValueArray>) noexcept>{24, L"getEnvironmentDirs"},
74
+ Method<void(std::string, Callback<::React::JSValueArray>) noexcept>{25, L"cancelRequest"},
75
+ Method<void(std::string, double, double) noexcept>{26, L"enableProgressReport"},
76
+ Method<void(std::string, double, double) noexcept>{27, L"enableUploadProgressReport"},
77
+ Method<void(std::string, std::string, double, double, Promise<std::string>) noexcept>{28, L"slice"},
78
+ Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{29, L"presentOptionsMenu"},
79
+ Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{30, L"presentOpenInMenu"},
80
+ Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{31, L"presentPreview"},
81
+ Method<void(std::string, Promise<::React::JSValueArray>) noexcept>{32, L"excludeFromBackupKey"},
82
+ Method<void(Callback<::React::JSValueArray>) noexcept>{33, L"df"},
83
+ Method<void(Callback<std::string>) noexcept>{34, L"emitExpiredEvent"},
84
+ Method<void(std::string, std::string, std::string, Promise<void>) noexcept>{35, L"actionViewIntent"},
85
+ Method<void(::React::JSValue, Promise<void>) noexcept>{36, L"addCompleteDownload"},
86
+ Method<void(std::string, std::string, Promise<std::string>) noexcept>{37, L"copyToInternal"},
87
+ Method<void(::React::JSValue, std::string, std::string, Promise<std::string>) noexcept>{38, L"copyToMediaStore"},
88
+ Method<void(::React::JSValue, std::string, Promise<std::string>) noexcept>{39, L"createMediaFile"},
89
+ Method<void(std::string, std::string, Promise<::React::JSValueArray>) noexcept>{40, L"getBlob"},
90
+ Method<void(std::string, Promise<std::string>) noexcept>{41, L"getContentIntent"},
91
+ Method<void(Promise<std::string>) noexcept>{42, L"getSDCardDir"},
92
+ Method<void(Promise<std::string>) noexcept>{43, L"getSDCardApplicationDir"},
93
+ Method<void(::React::JSValueArray, Callback<::React::JSValueArray>) noexcept>{44, L"scanFile"},
94
+ Method<void(std::string, std::string, bool, Promise<std::string>) noexcept>{45, L"writeToMediaFile"},
95
+ Method<void(std::string) noexcept>{46, L"addListener"},
96
+ Method<void(double) noexcept>{47, L"removeListeners"},
97
+ };
98
+
99
+ template <class TModule>
100
+ static constexpr void ValidateModule() noexcept {
101
+ constexpr auto constantCheckResults = CheckConstants<TModule, BlobUtilsSpec>();
102
+ constexpr auto methodCheckResults = CheckMethods<TModule, BlobUtilsSpec>();
103
+
104
+ REACT_SHOW_CONSTANT_SPEC_ERRORS(
105
+ 0,
106
+ "BlobUtilsSpec_Constants",
107
+ " REACT_GET_CONSTANTS(GetConstants) BlobUtilsSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
108
+ " REACT_GET_CONSTANTS(GetConstants) static BlobUtilsSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
109
+
110
+ REACT_SHOW_METHOD_SPEC_ERRORS(
111
+ 0,
112
+ "fetchBlobForm",
113
+ " REACT_METHOD(fetchBlobForm) void fetchBlobForm(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, ::React::JSValueArray && form, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
114
+ " REACT_METHOD(fetchBlobForm) static void fetchBlobForm(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, ::React::JSValueArray && form, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
115
+ REACT_SHOW_METHOD_SPEC_ERRORS(
116
+ 1,
117
+ "fetchBlob",
118
+ " REACT_METHOD(fetchBlob) void fetchBlob(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, std::string body, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
119
+ " REACT_METHOD(fetchBlob) static void fetchBlob(::React::JSValue && options, std::string taskId, std::string method, std::string url, ::React::JSValue && headers, std::string body, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
120
+ REACT_SHOW_METHOD_SPEC_ERRORS(
121
+ 2,
122
+ "createFile",
123
+ " REACT_METHOD(createFile) void createFile(std::string path, std::string data, std::string encoding, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
124
+ " REACT_METHOD(createFile) static void createFile(std::string path, std::string data, std::string encoding, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
125
+ REACT_SHOW_METHOD_SPEC_ERRORS(
126
+ 3,
127
+ "createFileASCII",
128
+ " REACT_METHOD(createFileASCII) void createFileASCII(std::string path, ::React::JSValueArray && data, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
129
+ " REACT_METHOD(createFileASCII) static void createFileASCII(std::string path, ::React::JSValueArray && data, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
130
+ REACT_SHOW_METHOD_SPEC_ERRORS(
131
+ 4,
132
+ "pathForAppGroup",
133
+ " REACT_METHOD(pathForAppGroup) void pathForAppGroup(std::string groupName, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
134
+ " REACT_METHOD(pathForAppGroup) static void pathForAppGroup(std::string groupName, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
135
+ REACT_SHOW_METHOD_SPEC_ERRORS(
136
+ 5,
137
+ "syncPathAppGroup",
138
+ " REACT_SYNC_METHOD(syncPathAppGroup) std::string syncPathAppGroup(std::string groupName) noexcept { /* implementation */ }\n"
139
+ " REACT_SYNC_METHOD(syncPathAppGroup) static std::string syncPathAppGroup(std::string groupName) noexcept { /* implementation */ }\n");
140
+ REACT_SHOW_METHOD_SPEC_ERRORS(
141
+ 6,
142
+ "exists",
143
+ " REACT_METHOD(exists) void exists(std::string path, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }\n"
144
+ " REACT_METHOD(exists) static void exists(std::string path, std::function<void(std::vector<bool> const &)> const & callback) noexcept { /* implementation */ }\n");
145
+ REACT_SHOW_METHOD_SPEC_ERRORS(
146
+ 7,
147
+ "writeFile",
148
+ " REACT_METHOD(writeFile) void writeFile(std::string path, std::string encoding, std::string data, bool transformFile, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n"
149
+ " REACT_METHOD(writeFile) static void writeFile(std::string path, std::string encoding, std::string data, bool transformFile, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n");
150
+ REACT_SHOW_METHOD_SPEC_ERRORS(
151
+ 8,
152
+ "writeFileArray",
153
+ " REACT_METHOD(writeFileArray) void writeFileArray(std::string path, ::React::JSValueArray && data, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n"
154
+ " REACT_METHOD(writeFileArray) static void writeFileArray(std::string path, ::React::JSValueArray && data, bool append, ::React::ReactPromise<double> &&result) noexcept { /* implementation */ }\n");
155
+ REACT_SHOW_METHOD_SPEC_ERRORS(
156
+ 9,
157
+ "writeStream",
158
+ " REACT_METHOD(writeStream) void writeStream(std::string path, std::string withEncoding, bool appendData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
159
+ " REACT_METHOD(writeStream) static void writeStream(std::string path, std::string withEncoding, bool appendData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
160
+ REACT_SHOW_METHOD_SPEC_ERRORS(
161
+ 10,
162
+ "writeArrayChunk",
163
+ " REACT_METHOD(writeArrayChunk) void writeArrayChunk(std::string streamId, ::React::JSValueArray && withArray, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
164
+ " REACT_METHOD(writeArrayChunk) static void writeArrayChunk(std::string streamId, ::React::JSValueArray && withArray, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
165
+ REACT_SHOW_METHOD_SPEC_ERRORS(
166
+ 11,
167
+ "writeChunk",
168
+ " REACT_METHOD(writeChunk) void writeChunk(std::string streamId, std::string withData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
169
+ " REACT_METHOD(writeChunk) static void writeChunk(std::string streamId, std::string withData, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
170
+ REACT_SHOW_METHOD_SPEC_ERRORS(
171
+ 12,
172
+ "closeStream",
173
+ " REACT_METHOD(closeStream) void closeStream(std::string streamId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
174
+ " REACT_METHOD(closeStream) static void closeStream(std::string streamId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
175
+ REACT_SHOW_METHOD_SPEC_ERRORS(
176
+ 13,
177
+ "unlink",
178
+ " REACT_METHOD(unlink) void unlink(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
179
+ " REACT_METHOD(unlink) static void unlink(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
180
+ REACT_SHOW_METHOD_SPEC_ERRORS(
181
+ 14,
182
+ "removeSession",
183
+ " REACT_METHOD(removeSession) void removeSession(::React::JSValueArray && paths, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
184
+ " REACT_METHOD(removeSession) static void removeSession(::React::JSValueArray && paths, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
185
+ REACT_SHOW_METHOD_SPEC_ERRORS(
186
+ 15,
187
+ "ls",
188
+ " REACT_METHOD(ls) void ls(std::string path, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
189
+ " REACT_METHOD(ls) static void ls(std::string path, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
190
+ REACT_SHOW_METHOD_SPEC_ERRORS(
191
+ 16,
192
+ "stat",
193
+ " REACT_METHOD(stat) void stat(std::string target, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
194
+ " REACT_METHOD(stat) static void stat(std::string target, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
195
+ REACT_SHOW_METHOD_SPEC_ERRORS(
196
+ 17,
197
+ "lstat",
198
+ " REACT_METHOD(lstat) void lstat(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
199
+ " REACT_METHOD(lstat) static void lstat(std::string path, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
200
+ REACT_SHOW_METHOD_SPEC_ERRORS(
201
+ 18,
202
+ "cp",
203
+ " REACT_METHOD(cp) void cp(std::string src, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
204
+ " REACT_METHOD(cp) static void cp(std::string src, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
205
+ REACT_SHOW_METHOD_SPEC_ERRORS(
206
+ 19,
207
+ "mv",
208
+ " REACT_METHOD(mv) void mv(std::string path, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
209
+ " REACT_METHOD(mv) static void mv(std::string path, std::string dest, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
210
+ REACT_SHOW_METHOD_SPEC_ERRORS(
211
+ 20,
212
+ "mkdir",
213
+ " REACT_METHOD(mkdir) void mkdir(std::string path, ::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n"
214
+ " REACT_METHOD(mkdir) static void mkdir(std::string path, ::React::ReactPromise<bool> &&result) noexcept { /* implementation */ }\n");
215
+ REACT_SHOW_METHOD_SPEC_ERRORS(
216
+ 21,
217
+ "readFile",
218
+ " REACT_METHOD(readFile) void readFile(std::string path, std::string encoding, bool transformFile, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
219
+ " REACT_METHOD(readFile) static void readFile(std::string path, std::string encoding, bool transformFile, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
220
+ REACT_SHOW_METHOD_SPEC_ERRORS(
221
+ 22,
222
+ "hash",
223
+ " REACT_METHOD(hash) void hash(std::string path, std::string algorithm, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
224
+ " REACT_METHOD(hash) static void hash(std::string path, std::string algorithm, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
225
+ REACT_SHOW_METHOD_SPEC_ERRORS(
226
+ 23,
227
+ "readStream",
228
+ " REACT_METHOD(readStream) void readStream(std::string path, std::string encoding, double bufferSize, double tick, std::string streamId) noexcept { /* implementation */ }\n"
229
+ " REACT_METHOD(readStream) static void readStream(std::string path, std::string encoding, double bufferSize, double tick, std::string streamId) noexcept { /* implementation */ }\n");
230
+ REACT_SHOW_METHOD_SPEC_ERRORS(
231
+ 24,
232
+ "getEnvironmentDirs",
233
+ " REACT_METHOD(getEnvironmentDirs) void getEnvironmentDirs(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
234
+ " REACT_METHOD(getEnvironmentDirs) static void getEnvironmentDirs(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
235
+ REACT_SHOW_METHOD_SPEC_ERRORS(
236
+ 25,
237
+ "cancelRequest",
238
+ " REACT_METHOD(cancelRequest) void cancelRequest(std::string taskId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
239
+ " REACT_METHOD(cancelRequest) static void cancelRequest(std::string taskId, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
240
+ REACT_SHOW_METHOD_SPEC_ERRORS(
241
+ 26,
242
+ "enableProgressReport",
243
+ " REACT_METHOD(enableProgressReport) void enableProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n"
244
+ " REACT_METHOD(enableProgressReport) static void enableProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n");
245
+ REACT_SHOW_METHOD_SPEC_ERRORS(
246
+ 27,
247
+ "enableUploadProgressReport",
248
+ " REACT_METHOD(enableUploadProgressReport) void enableUploadProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n"
249
+ " REACT_METHOD(enableUploadProgressReport) static void enableUploadProgressReport(std::string taskId, double interval, double count) noexcept { /* implementation */ }\n");
250
+ REACT_SHOW_METHOD_SPEC_ERRORS(
251
+ 28,
252
+ "slice",
253
+ " REACT_METHOD(slice) void slice(std::string src, std::string dest, double start, double end, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
254
+ " REACT_METHOD(slice) static void slice(std::string src, std::string dest, double start, double end, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
255
+ REACT_SHOW_METHOD_SPEC_ERRORS(
256
+ 29,
257
+ "presentOptionsMenu",
258
+ " REACT_METHOD(presentOptionsMenu) void presentOptionsMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
259
+ " REACT_METHOD(presentOptionsMenu) static void presentOptionsMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
260
+ REACT_SHOW_METHOD_SPEC_ERRORS(
261
+ 30,
262
+ "presentOpenInMenu",
263
+ " REACT_METHOD(presentOpenInMenu) void presentOpenInMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
264
+ " REACT_METHOD(presentOpenInMenu) static void presentOpenInMenu(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
265
+ REACT_SHOW_METHOD_SPEC_ERRORS(
266
+ 31,
267
+ "presentPreview",
268
+ " REACT_METHOD(presentPreview) void presentPreview(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
269
+ " REACT_METHOD(presentPreview) static void presentPreview(std::string uri, std::string scheme, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
270
+ REACT_SHOW_METHOD_SPEC_ERRORS(
271
+ 32,
272
+ "excludeFromBackupKey",
273
+ " REACT_METHOD(excludeFromBackupKey) void excludeFromBackupKey(std::string url, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
274
+ " REACT_METHOD(excludeFromBackupKey) static void excludeFromBackupKey(std::string url, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
275
+ REACT_SHOW_METHOD_SPEC_ERRORS(
276
+ 33,
277
+ "df",
278
+ " REACT_METHOD(df) void df(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
279
+ " REACT_METHOD(df) static void df(std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
280
+ REACT_SHOW_METHOD_SPEC_ERRORS(
281
+ 34,
282
+ "emitExpiredEvent",
283
+ " REACT_METHOD(emitExpiredEvent) void emitExpiredEvent(std::function<void(std::string)> const & callback) noexcept { /* implementation */ }\n"
284
+ " REACT_METHOD(emitExpiredEvent) static void emitExpiredEvent(std::function<void(std::string)> const & callback) noexcept { /* implementation */ }\n");
285
+ REACT_SHOW_METHOD_SPEC_ERRORS(
286
+ 35,
287
+ "actionViewIntent",
288
+ " REACT_METHOD(actionViewIntent) void actionViewIntent(std::string path, std::string mime, std::string chooserTitle, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
289
+ " REACT_METHOD(actionViewIntent) static void actionViewIntent(std::string path, std::string mime, std::string chooserTitle, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
290
+ REACT_SHOW_METHOD_SPEC_ERRORS(
291
+ 36,
292
+ "addCompleteDownload",
293
+ " REACT_METHOD(addCompleteDownload) void addCompleteDownload(::React::JSValue && config, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
294
+ " REACT_METHOD(addCompleteDownload) static void addCompleteDownload(::React::JSValue && config, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
295
+ REACT_SHOW_METHOD_SPEC_ERRORS(
296
+ 37,
297
+ "copyToInternal",
298
+ " REACT_METHOD(copyToInternal) void copyToInternal(std::string contentUri, std::string destpath, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
299
+ " REACT_METHOD(copyToInternal) static void copyToInternal(std::string contentUri, std::string destpath, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
300
+ REACT_SHOW_METHOD_SPEC_ERRORS(
301
+ 38,
302
+ "copyToMediaStore",
303
+ " REACT_METHOD(copyToMediaStore) void copyToMediaStore(::React::JSValue && filedata, std::string mt, std::string path, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
304
+ " REACT_METHOD(copyToMediaStore) static void copyToMediaStore(::React::JSValue && filedata, std::string mt, std::string path, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
305
+ REACT_SHOW_METHOD_SPEC_ERRORS(
306
+ 39,
307
+ "createMediaFile",
308
+ " REACT_METHOD(createMediaFile) void createMediaFile(::React::JSValue && filedata, std::string mt, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
309
+ " REACT_METHOD(createMediaFile) static void createMediaFile(::React::JSValue && filedata, std::string mt, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
310
+ REACT_SHOW_METHOD_SPEC_ERRORS(
311
+ 40,
312
+ "getBlob",
313
+ " REACT_METHOD(getBlob) void getBlob(std::string contentUri, std::string encoding, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n"
314
+ " REACT_METHOD(getBlob) static void getBlob(std::string contentUri, std::string encoding, ::React::ReactPromise<::React::JSValueArray> &&result) noexcept { /* implementation */ }\n");
315
+ REACT_SHOW_METHOD_SPEC_ERRORS(
316
+ 41,
317
+ "getContentIntent",
318
+ " REACT_METHOD(getContentIntent) void getContentIntent(std::string mime, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
319
+ " REACT_METHOD(getContentIntent) static void getContentIntent(std::string mime, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
320
+ REACT_SHOW_METHOD_SPEC_ERRORS(
321
+ 42,
322
+ "getSDCardDir",
323
+ " REACT_METHOD(getSDCardDir) void getSDCardDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
324
+ " REACT_METHOD(getSDCardDir) static void getSDCardDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
325
+ REACT_SHOW_METHOD_SPEC_ERRORS(
326
+ 43,
327
+ "getSDCardApplicationDir",
328
+ " REACT_METHOD(getSDCardApplicationDir) void getSDCardApplicationDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
329
+ " REACT_METHOD(getSDCardApplicationDir) static void getSDCardApplicationDir(::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
330
+ REACT_SHOW_METHOD_SPEC_ERRORS(
331
+ 44,
332
+ "scanFile",
333
+ " REACT_METHOD(scanFile) void scanFile(::React::JSValueArray && pairs, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n"
334
+ " REACT_METHOD(scanFile) static void scanFile(::React::JSValueArray && pairs, std::function<void(::React::JSValueArray const &)> const & callback) noexcept { /* implementation */ }\n");
335
+ REACT_SHOW_METHOD_SPEC_ERRORS(
336
+ 45,
337
+ "writeToMediaFile",
338
+ " REACT_METHOD(writeToMediaFile) void writeToMediaFile(std::string fileUri, std::string path, bool transformFile, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n"
339
+ " REACT_METHOD(writeToMediaFile) static void writeToMediaFile(std::string fileUri, std::string path, bool transformFile, ::React::ReactPromise<std::string> &&result) noexcept { /* implementation */ }\n");
340
+ REACT_SHOW_METHOD_SPEC_ERRORS(
341
+ 46,
342
+ "addListener",
343
+ " REACT_METHOD(addListener) void addListener(std::string eventName) noexcept { /* implementation */ }\n"
344
+ " REACT_METHOD(addListener) static void addListener(std::string eventName) noexcept { /* implementation */ }\n");
345
+ REACT_SHOW_METHOD_SPEC_ERRORS(
346
+ 47,
347
+ "removeListeners",
348
+ " REACT_METHOD(removeListeners) void removeListeners(double count) noexcept { /* implementation */ }\n"
349
+ " REACT_METHOD(removeListeners) static void removeListeners(double count) noexcept { /* implementation */ }\n");
350
+ }
351
+ };
352
+
353
+ } // namespace ReactNativeBlobUtilCodegen