react-native-fs-turbo 0.4.2 → 0.5.1
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/LICENSE +0 -0
- package/README.md +18 -15
- package/RNFSTurbo.podspec +0 -0
- package/android/CMakeLists.txt +0 -0
- package/android/build.gradle +0 -0
- package/android/gradle.properties +0 -0
- package/android/src/main/AndroidManifest.xml +0 -0
- package/android/src/main/AndroidManifestNew.xml +0 -0
- package/android/src/main/codegen/RNFSTurboSpec.java +0 -0
- package/android/src/main/cpp/JNIOnLoad.cpp +0 -0
- package/android/src/main/cpp/RNFSTurboLogger.cpp +0 -0
- package/android/src/main/cpp/RNFSTurboModule.cpp +0 -0
- package/android/src/main/cpp/RNFSTurboModule.h +0 -0
- package/android/src/main/cpp/RNFSTurboPlatformHelper.cpp +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/JNIOnLoad.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboDownloadParams.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboDownloadResult.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboDownloader.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboIORejectionException.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboModule.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboPackage.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboPlatformHelper.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboUploadParams.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboUploadResult.java +0 -0
- package/android/src/main/java/com/cmpayc/rnfsturbo/RNFSTurboUploader.java +0 -0
- package/cpp/RNFSTurboHostObject.cpp +103 -35
- package/cpp/RNFSTurboHostObject.h +0 -0
- package/cpp/RNFSTurboInstall.cpp +0 -0
- package/cpp/RNFSTurboInstall.h +0 -0
- package/cpp/RNFSTurboLogger.h +0 -0
- package/cpp/RNFSTurboPlatformHelper.h +0 -0
- package/cpp/algorithms/Krypt/AES.cpp +0 -0
- package/cpp/algorithms/Krypt/AES.hpp +0 -0
- package/cpp/algorithms/Krypt/aes-config.hpp +0 -0
- package/cpp/algorithms/Krypt/blockcipher.hpp +0 -0
- package/cpp/algorithms/Krypt/bytearray.cpp +0 -0
- package/cpp/algorithms/Krypt/bytearray.hpp +0 -0
- package/cpp/algorithms/Krypt/functions.cpp +0 -0
- package/cpp/algorithms/Krypt/functions.hpp +0 -0
- package/cpp/algorithms/Krypt/mode.cpp +0 -0
- package/cpp/algorithms/Krypt/mode.hpp +0 -0
- package/cpp/algorithms/Krypt/padding.cpp +0 -0
- package/cpp/algorithms/Krypt/padding.hpp +0 -0
- package/cpp/algorithms/Krypt/types.hpp +0 -0
- package/cpp/algorithms/base64.cpp +0 -0
- package/cpp/algorithms/base64.h +0 -0
- package/cpp/algorithms/md5.cpp +0 -0
- package/cpp/algorithms/md5.h +0 -0
- package/cpp/algorithms/sha1.cpp +0 -0
- package/cpp/algorithms/sha1.h +0 -0
- package/cpp/algorithms/sha224.cpp +0 -0
- package/cpp/algorithms/sha224.h +0 -0
- package/cpp/algorithms/sha256.cpp +0 -0
- package/cpp/algorithms/sha256.h +0 -0
- package/cpp/algorithms/sha384.cpp +0 -0
- package/cpp/algorithms/sha384.h +0 -0
- package/cpp/algorithms/sha512.cpp +0 -0
- package/cpp/algorithms/sha512.h +0 -0
- package/cpp/encryption/encryption-utils.cpp +0 -0
- package/cpp/encryption/encryption-utils.h +0 -0
- package/cpp/filesystem/filesystem-utils.cpp +68 -23
- package/cpp/filesystem/filesystem-utils.h +48 -2
- package/ios/PrivacyInfo.xcprivacy +0 -0
- package/ios/RNFSTurboDownloader.h +0 -0
- package/ios/RNFSTurboDownloader.mm +0 -0
- package/ios/RNFSTurboLogger.mm +0 -0
- package/ios/RNFSTurboModule.h +0 -0
- package/ios/RNFSTurboModule.mm +0 -0
- package/ios/RNFSTurboPlatformHelper.mm +0 -0
- package/ios/RNFSTurboUploader.h +0 -0
- package/ios/RNFSTurboUploader.mm +0 -0
- package/lib/commonjs/ModuleNotFoundError.js +0 -0
- package/lib/commonjs/ModuleNotFoundError.js.map +0 -0
- package/lib/commonjs/NativeRNFSTurboModule.js +0 -0
- package/lib/commonjs/NativeRNFSTurboModule.js.map +0 -0
- package/lib/commonjs/RNFSTurbo.js +0 -0
- package/lib/commonjs/RNFSTurbo.js.map +0 -0
- package/lib/commonjs/Types.js +0 -0
- package/lib/commonjs/Types.js.map +0 -0
- package/lib/commonjs/createRNFSTurbo.js +0 -0
- package/lib/commonjs/createRNFSTurbo.js.map +0 -0
- package/lib/commonjs/globals.d.js +0 -0
- package/lib/commonjs/globals.d.js.map +0 -0
- package/lib/commonjs/index.js +0 -0
- package/lib/commonjs/index.js.map +0 -0
- package/lib/commonjs/package.json +0 -0
- package/lib/module/ModuleNotFoundError.js +0 -0
- package/lib/module/ModuleNotFoundError.js.map +0 -0
- package/lib/module/NativeRNFSTurboModule.js +0 -0
- package/lib/module/NativeRNFSTurboModule.js.map +0 -0
- package/lib/module/RNFSTurbo.js +0 -0
- package/lib/module/RNFSTurbo.js.map +0 -0
- package/lib/module/Types.js +0 -0
- package/lib/module/Types.js.map +0 -0
- package/lib/module/createRNFSTurbo.js +0 -0
- package/lib/module/createRNFSTurbo.js.map +0 -0
- package/lib/module/globals.d.js +0 -0
- package/lib/module/globals.d.js.map +0 -0
- package/lib/module/index.js +0 -0
- package/lib/module/index.js.map +0 -0
- package/lib/module/package.json +0 -0
- package/lib/typescript/ModuleNotFoundError.d.ts +0 -0
- package/lib/typescript/ModuleNotFoundError.d.ts.map +0 -0
- package/lib/typescript/NativeRNFSTurboModule.d.ts +0 -0
- package/lib/typescript/NativeRNFSTurboModule.d.ts.map +0 -0
- package/lib/typescript/RNFSTurbo.d.ts +0 -0
- package/lib/typescript/RNFSTurbo.d.ts.map +0 -0
- package/lib/typescript/Types.d.ts +3 -3
- package/lib/typescript/Types.d.ts.map +1 -1
- package/lib/typescript/createRNFSTurbo.d.ts +0 -0
- package/lib/typescript/createRNFSTurbo.d.ts.map +0 -0
- package/lib/typescript/index.d.ts +0 -0
- package/lib/typescript/index.d.ts.map +0 -0
- package/package.json +1 -1
- package/react-native.config.js +0 -0
- package/src/ModuleNotFoundError.ts +0 -0
- package/src/NativeRNFSTurboModule.ts +0 -0
- package/src/RNFSTurbo.ts +0 -0
- package/src/Types.ts +11 -2
- package/src/createRNFSTurbo.ts +0 -0
- package/src/globals.d.ts +0 -0
- package/src/index.ts +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -157,6 +157,8 @@ import RNFSTurbo from 'react-native-fs-turbo';
|
|
|
157
157
|
const pathUtf8 = `${RNFSTurbo.DocumentDirectoryPath}/test_utf8.txt`;
|
|
158
158
|
const pathBase64 = `${RNFSTurbo.DocumentDirectoryPath}/test_base64.txt`;
|
|
159
159
|
const pathUint8 = `${RNFSTurbo.DocumentDirectoryPath}/test_uint8.txt`;
|
|
160
|
+
const pathUint16 = `${RNFSTurbo.DocumentDirectoryPath}/test_uint16.txt`;
|
|
161
|
+
const pathUint32 = `${RNFSTurbo.DocumentDirectoryPath}/test_uint32.txt`;
|
|
160
162
|
const pathFloat32 = `${RNFSTurbo.DocumentDirectoryPath}/test_float32.txt`;
|
|
161
163
|
|
|
162
164
|
try {
|
|
@@ -164,6 +166,10 @@ try {
|
|
|
164
166
|
RNFSTurbo.writeFile(path, 'TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ=', 'base64');
|
|
165
167
|
// An array with uint8 can be passed as input data
|
|
166
168
|
RNFSTurbo.writeFile(path, [76, 111, 114, 101, 109, 32, 105, 112, 115, 117, 109, 32, 100, 111, 108, 111, 114, 32, 115, 105, 116, 32, 97, 109, 101, 116], 'uint8');
|
|
169
|
+
// An array with uint16 can be passed as input data
|
|
170
|
+
RNFSTurbo.writeFile(path, [26471, 18, 12934, 4322, 8329, 15345, 48319, 21939, 10], 'uint16');
|
|
171
|
+
// An array with uint32 can be passed as input data
|
|
172
|
+
RNFSTurbo.writeFile(path, [1024219304, 433473, 6647, 10, 4638827, 12643, 0, 15833683], 'uint32');
|
|
167
173
|
// An array with float32 can be passed as input data
|
|
168
174
|
RNFSTurbo.writeFile(path, [0.4233244061470032, 0.5435456037521362, 2.5345540046691895, 7.2343244552612305, 3.867867946624756, 0.7876875996589661], 'float32');
|
|
169
175
|
} catch (err: Error) {
|
|
@@ -366,13 +372,13 @@ Node.js style version of `readDir` that returns only the names. Note the lowerca
|
|
|
366
372
|
|
|
367
373
|
### `readFile(filepath: string, options?: ReadOptions): string | number[]`
|
|
368
374
|
|
|
369
|
-
Reads the file at `path` and return contents. `options` can be string of encrypted types or object, default is `utf8`. Use `base64` or `uint8` or `float32` encoding for reading binary files.
|
|
375
|
+
Reads the file at `path` and return contents. `options` can be string of encrypted types or object, default is `utf8`. Use `base64` or `uint8` or `uint16` or `uint32` or `float32` encoding for reading binary files.
|
|
370
376
|
|
|
371
377
|
```ts
|
|
372
378
|
type ReadOptions =
|
|
373
|
-
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'
|
|
379
|
+
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'
|
|
374
380
|
| {
|
|
375
|
-
encoding: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'.
|
|
381
|
+
encoding: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'.
|
|
376
382
|
// Next flags will work only if encryption is enabled
|
|
377
383
|
encrypted?: boolean;
|
|
378
384
|
passphrase?: string | number[];
|
|
@@ -382,19 +388,16 @@ type ReadOptions =
|
|
|
382
388
|
};
|
|
383
389
|
```
|
|
384
390
|
|
|
385
|
-
Note: you will take quite a performance hit if you are reading big files
|
|
386
|
-
|
|
387
391
|
### `read(filepath: string, length: number, position: number, options?: ReadOptions): string | number[]`
|
|
388
392
|
|
|
389
|
-
Reads `length` bytes from the given `position` of the file at `path` and returns contents. `options` can be string of encrypted types or object, default is `utf8`. Use `base64` or `uint8` or `float32` encoding for reading binary files.
|
|
393
|
+
Reads `length` bytes from the given `position` of the file at `path` and returns contents. `options` can be string of encrypted types or object, default is `utf8`. Use `base64` or `uint8` or `uint16` | `uint32` or `float32` encoding for reading binary files.
|
|
390
394
|
|
|
391
395
|
```ts
|
|
392
396
|
type ReadOptions =
|
|
393
|
-
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'
|
|
394
|
-
| { encoding: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32' };
|
|
397
|
+
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'
|
|
398
|
+
| { encoding: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32' };
|
|
395
399
|
```
|
|
396
400
|
|
|
397
|
-
Note: reading big files piece by piece using this method may be useful in terms of performance.
|
|
398
401
|
Note: `float32` size is 4 bytes, so `position` and `length` should be specified in bytes (multiplied by 4)
|
|
399
402
|
Note: encryption doesn't work for partial file reading
|
|
400
403
|
|
|
@@ -426,9 +429,9 @@ Write the `contents` to `filepath`. `options` can be string of encrypted types o
|
|
|
426
429
|
|
|
427
430
|
```ts
|
|
428
431
|
type WriteOptions =
|
|
429
|
-
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'
|
|
432
|
+
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'
|
|
430
433
|
| {
|
|
431
|
-
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32',
|
|
434
|
+
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32',
|
|
432
435
|
NSFileProtectionKey?:
|
|
433
436
|
|"NSFileProtectionNone"
|
|
434
437
|
| "NSFileProtectionComplete"
|
|
@@ -452,9 +455,9 @@ Append the `contents` to `filepath`. `encoding` can be string of encrypted types
|
|
|
452
455
|
|
|
453
456
|
```ts
|
|
454
457
|
type WriteOptions =
|
|
455
|
-
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'
|
|
458
|
+
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'
|
|
456
459
|
| {
|
|
457
|
-
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32',
|
|
460
|
+
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32',
|
|
458
461
|
NSFileProtectionKey?:
|
|
459
462
|
|"NSFileProtectionNone"
|
|
460
463
|
| "NSFileProtectionComplete"
|
|
@@ -474,9 +477,9 @@ Write the `contents` to `filepath` at the given random access position. When `po
|
|
|
474
477
|
|
|
475
478
|
```ts
|
|
476
479
|
type WriteOptions =
|
|
477
|
-
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32'
|
|
480
|
+
| 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32'
|
|
478
481
|
| {
|
|
479
|
-
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'float32',
|
|
482
|
+
encoding?: 'utf8' | 'ascii' | 'base64' | 'uint8' | 'uint16' | 'uint32' | 'float32',
|
|
480
483
|
NSFileProtectionKey?:
|
|
481
484
|
|"NSFileProtectionNone"
|
|
482
485
|
| "NSFileProtectionComplete"
|
package/RNFSTurbo.podspec
CHANGED
|
File without changes
|
package/android/CMakeLists.txt
CHANGED
|
File without changes
|
package/android/build.gradle
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -336,7 +336,15 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
336
336
|
);
|
|
337
337
|
#endif
|
|
338
338
|
}
|
|
339
|
-
if (
|
|
339
|
+
if (
|
|
340
|
+
encoding != "utf8" &&
|
|
341
|
+
encoding != "base64" &&
|
|
342
|
+
encoding != "uint8" &&
|
|
343
|
+
encoding != "uint16" &&
|
|
344
|
+
encoding != "uint32" &&
|
|
345
|
+
encoding != "float32" &&
|
|
346
|
+
encoding != "ascii"
|
|
347
|
+
) {
|
|
340
348
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s: %s", propName.c_str(), "Wrong encoding", encoding.c_str()));
|
|
341
349
|
}
|
|
342
350
|
#ifdef RNFSTURBO_USE_ENCRYPTION
|
|
@@ -357,21 +365,22 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
357
365
|
);
|
|
358
366
|
#endif
|
|
359
367
|
} else {
|
|
360
|
-
if (encoding == "uint8") {
|
|
361
|
-
|
|
362
|
-
jsi::Array res = jsi::Array
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
if (encoding == "uint8" || encoding == "uint16" || encoding == "uint32") {
|
|
369
|
+
FileBuffer buffer = readFileUintUniversal(encoding, filePath.c_str(), (int)offset, (int)length);
|
|
370
|
+
jsi::Array res = std::visit([&](auto&& vec) -> jsi::Array {
|
|
371
|
+
jsi::Array arr(runtime, vec.size());
|
|
372
|
+
for (size_t i = 0; i < vec.size(); ++i) {
|
|
373
|
+
res.setValueAtIndex(
|
|
374
|
+
runtime,
|
|
375
|
+
i,
|
|
376
|
+
jsi::Value(static_cast<double>(vec[i]))
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
return arr;
|
|
380
|
+
}, buffer);
|
|
372
381
|
return res;
|
|
373
382
|
} else if (encoding == "float32") {
|
|
374
|
-
std::vector<float> buffer = readFileFloat32(filePath.c_str(), offset, length);
|
|
383
|
+
std::vector<float> buffer = readFileFloat32(filePath.c_str(), (int)offset, (int)length);
|
|
375
384
|
jsi::Array res = jsi::Array(runtime, buffer.size());
|
|
376
385
|
int len = 0;
|
|
377
386
|
for (const float i : buffer) {
|
|
@@ -384,7 +393,7 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
384
393
|
}
|
|
385
394
|
return res;
|
|
386
395
|
} else {
|
|
387
|
-
std::string buffer = readFile(filePath.c_str(), offset, length);
|
|
396
|
+
std::string buffer = readFile(filePath.c_str(), (int)offset, (int)length);
|
|
388
397
|
#ifdef RNFSTURBO_USE_ENCRYPTION
|
|
389
398
|
if (encrypted) {
|
|
390
399
|
auto krypt = createCipherMode(
|
|
@@ -499,12 +508,33 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
499
508
|
}
|
|
500
509
|
#endif
|
|
501
510
|
}
|
|
502
|
-
if (
|
|
511
|
+
if (
|
|
512
|
+
encoding != "utf8" &&
|
|
513
|
+
encoding != "base64" &&
|
|
514
|
+
encoding != "uint8" &&
|
|
515
|
+
encoding != "uint16" &&
|
|
516
|
+
encoding != "uint32" &&
|
|
517
|
+
encoding != "float32" &&
|
|
518
|
+
encoding != "ascii"
|
|
519
|
+
) {
|
|
503
520
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s: %s", propName.c_str(), "Wrong encoding", encoding.c_str()));
|
|
504
521
|
}
|
|
505
|
-
if (
|
|
522
|
+
if (
|
|
523
|
+
(
|
|
524
|
+
encoding == "uint8" ||
|
|
525
|
+
encoding == "uint16" ||
|
|
526
|
+
encoding == "uint32" ||
|
|
527
|
+
encoding == "float32"
|
|
528
|
+
) && (count < 2 || !arguments[1].isObject())
|
|
529
|
+
) [[unlikely]] {
|
|
506
530
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s", propName.c_str(), "Second argument ('content') has to be of type number[]"));
|
|
507
|
-
} else if (
|
|
531
|
+
} else if (
|
|
532
|
+
encoding != "uint8" &&
|
|
533
|
+
encoding != "uint16" &&
|
|
534
|
+
encoding != "uint32" &&
|
|
535
|
+
encoding != "float32" &&
|
|
536
|
+
(count < 2 || !arguments[1].isString())
|
|
537
|
+
) [[unlikely]] {
|
|
508
538
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s", propName.c_str(), "Second argument ('content') has to be of type string"));
|
|
509
539
|
}
|
|
510
540
|
if ((propName == "write" && count > 4) || (propName != "write" && count > 3)) [[unlikely]] {
|
|
@@ -527,19 +557,27 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
527
557
|
|
|
528
558
|
std::string content{""};
|
|
529
559
|
uint8_t *contentArrUint8 = nullptr;
|
|
560
|
+
uint16_t *contentArrUint16 = nullptr;
|
|
561
|
+
uint32_t *contentArrUint32 = nullptr;
|
|
530
562
|
float *contentArrFloat32 = nullptr;
|
|
531
563
|
int contentLength{0};
|
|
532
|
-
if (encoding == "uint8" || encoding == "float32") {
|
|
564
|
+
if (encoding == "uint8" || encoding == "uint16" || encoding == "uint32" || encoding == "float32") {
|
|
533
565
|
jsi::Array jsiArr = arguments[1].asObject(runtime).asArray(runtime);
|
|
534
566
|
if (!jsiArr.isArray(runtime)) {
|
|
535
567
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s", propName.c_str(), "Second argument ('content') has to be of type number[]"));
|
|
536
568
|
}
|
|
537
569
|
if (encoding == "float32") {
|
|
538
570
|
contentArrFloat32 = new float[jsiArr.size(runtime)];
|
|
539
|
-
contentLength = jsiArr.size(runtime) * sizeof(float);
|
|
540
|
-
} else {
|
|
571
|
+
contentLength = (int) jsiArr.size(runtime) * sizeof(float);
|
|
572
|
+
} else if (encoding == "uint8") {
|
|
541
573
|
contentArrUint8 = new uint8_t[jsiArr.size(runtime)];
|
|
542
|
-
contentLength = jsiArr.size(runtime) * sizeof(uint8_t);
|
|
574
|
+
contentLength = (int) jsiArr.size(runtime) * sizeof(uint8_t);
|
|
575
|
+
} else if (encoding == "uint16") {
|
|
576
|
+
contentArrUint16 = new uint16_t[jsiArr.size(runtime)];
|
|
577
|
+
contentLength = (int) jsiArr.size(runtime) * sizeof(uint16_t);
|
|
578
|
+
} else if (encoding == "uint32") {
|
|
579
|
+
contentArrUint32 = new uint32_t[jsiArr.size(runtime)];
|
|
580
|
+
contentLength = (int) jsiArr.size(runtime) * sizeof(uint32_t);
|
|
543
581
|
}
|
|
544
582
|
for (int i = 0; i < jsiArr.size(runtime); i++) {
|
|
545
583
|
if (!jsiArr.getValueAtIndex(runtime, i).isNumber()) {
|
|
@@ -547,8 +585,12 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
547
585
|
}
|
|
548
586
|
if (encoding == "float32") {
|
|
549
587
|
contentArrFloat32[i] = (float) jsiArr.getValueAtIndex(runtime, i).asNumber();
|
|
550
|
-
} else {
|
|
551
|
-
contentArrUint8[i] = (
|
|
588
|
+
} else if (encoding == "uint8") {
|
|
589
|
+
contentArrUint8[i] = (uint8_t) jsiArr.getValueAtIndex(runtime, i).asNumber();
|
|
590
|
+
} else if (encoding == "uint16") {
|
|
591
|
+
contentArrUint16[i] = fromBigEndian((uint16_t) jsiArr.getValueAtIndex(runtime, i).asNumber());
|
|
592
|
+
} else if (encoding == "uint32") {
|
|
593
|
+
contentArrUint32[i] = fromBigEndian((uint32_t) jsiArr.getValueAtIndex(runtime, i).asNumber());
|
|
552
594
|
}
|
|
553
595
|
}
|
|
554
596
|
} else {
|
|
@@ -559,20 +601,40 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
559
601
|
}
|
|
560
602
|
|
|
561
603
|
try {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
604
|
+
struct stat t_stat;
|
|
605
|
+
bool fileExists = stat(filePath.c_str(), &t_stat) >= 0;
|
|
606
|
+
if (encoding == "uint8" || encoding == "uint16" || encoding == "uint32") {
|
|
607
|
+
if (fileExists && propName == "write" && offset > -1 && encoding == "uint8") {
|
|
608
|
+
std::string replaceString(
|
|
609
|
+
reinterpret_cast<char*>(contentArrUint8),
|
|
610
|
+
contentLength
|
|
611
|
+
);
|
|
612
|
+
writeWithOffset(filePath.c_str(), replaceString, offset);
|
|
613
|
+
} else if (fileExists && propName == "write" && offset > -1 && encoding == "uint16") {
|
|
614
|
+
std::string replaceString(
|
|
615
|
+
reinterpret_cast<char*>(contentArrUint16),
|
|
616
|
+
contentLength
|
|
617
|
+
);
|
|
618
|
+
writeWithOffset(filePath.c_str(), replaceString, offset);
|
|
619
|
+
} else if (fileExists && propName == "write" && offset > -1 && encoding == "uint32") {
|
|
620
|
+
std::string replaceString(
|
|
621
|
+
reinterpret_cast<char*>(contentArrUint32),
|
|
622
|
+
contentLength
|
|
623
|
+
);
|
|
565
624
|
writeWithOffset(filePath.c_str(), replaceString, offset);
|
|
566
625
|
} else {
|
|
567
|
-
|
|
626
|
+
writeFileUintUniversal(
|
|
627
|
+
encoding,
|
|
568
628
|
filePath.c_str(),
|
|
569
629
|
contentArrUint8,
|
|
630
|
+
contentArrUint16,
|
|
631
|
+
contentArrUint32,
|
|
570
632
|
contentLength,
|
|
571
|
-
propName == "appendFile" || (propName == "write" && offset == -1)
|
|
633
|
+
fileExists && (propName == "appendFile" || (propName == "write" && offset == -1))
|
|
572
634
|
);
|
|
573
635
|
}
|
|
574
636
|
} else if (encoding == "float32") {
|
|
575
|
-
if (propName == "write" && offset > -1) {
|
|
637
|
+
if (fileExists && propName == "write" && offset > -1) {
|
|
576
638
|
std::string replaceString = reinterpret_cast<char*>(contentArrFloat32);
|
|
577
639
|
writeWithOffset(filePath.c_str(), replaceString, offset);
|
|
578
640
|
} else {
|
|
@@ -580,11 +642,11 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
580
642
|
filePath.c_str(),
|
|
581
643
|
contentArrFloat32,
|
|
582
644
|
contentLength,
|
|
583
|
-
propName == "appendFile" || (propName == "write" && offset == -1)
|
|
645
|
+
fileExists && (propName == "appendFile" || (propName == "write" && offset == -1))
|
|
584
646
|
);
|
|
585
647
|
}
|
|
586
648
|
} else {
|
|
587
|
-
if (propName == "write" && offset > -1) {
|
|
649
|
+
if (fileExists && propName == "write" && offset > -1) {
|
|
588
650
|
writeWithOffset(
|
|
589
651
|
filePath.c_str(),
|
|
590
652
|
content,
|
|
@@ -613,14 +675,14 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
613
675
|
writeFile(
|
|
614
676
|
filePath.c_str(),
|
|
615
677
|
encryptedContent,
|
|
616
|
-
propName == "appendFile" || (propName == "write" && offset == -1)
|
|
678
|
+
fileExists && (propName == "appendFile" || (propName == "write" && offset == -1))
|
|
617
679
|
);
|
|
618
680
|
#endif
|
|
619
681
|
} else {
|
|
620
682
|
writeFile(
|
|
621
683
|
filePath.c_str(),
|
|
622
684
|
content,
|
|
623
|
-
propName == "appendFile" || (propName == "write" && offset == -1)
|
|
685
|
+
fileExists && (propName == "appendFile" || (propName == "write" && offset == -1))
|
|
624
686
|
);
|
|
625
687
|
}
|
|
626
688
|
}
|
|
@@ -641,6 +703,12 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
641
703
|
if (contentArrUint8 != nullptr) {
|
|
642
704
|
delete[] contentArrUint8;
|
|
643
705
|
}
|
|
706
|
+
if (contentArrUint16 != nullptr) {
|
|
707
|
+
delete[] contentArrUint16;
|
|
708
|
+
}
|
|
709
|
+
if (contentArrUint32 != nullptr) {
|
|
710
|
+
delete[] contentArrUint32;
|
|
711
|
+
}
|
|
644
712
|
if (contentArrFloat32 != nullptr) {
|
|
645
713
|
delete[] contentArrFloat32;
|
|
646
714
|
}
|
|
@@ -1468,7 +1536,7 @@ jsi::Value RNFSTurboHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID
|
|
|
1468
1536
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s", "uploadFiles", "files option should be an object"));
|
|
1469
1537
|
}
|
|
1470
1538
|
jsi::Array tmpFiles = optionFiles.asObject(runtime).asArray(runtime);
|
|
1471
|
-
int filesNum = tmpFiles.size(runtime);
|
|
1539
|
+
int filesNum = (int)tmpFiles.size(runtime);
|
|
1472
1540
|
if (filesNum == 0) {
|
|
1473
1541
|
throw jsi::JSError(runtime, RNFSTurboLogger::sprintf("%s: %s", "uploadFiles", "files option is mandatory"));
|
|
1474
1542
|
}
|
|
File without changes
|
package/cpp/RNFSTurboInstall.cpp
CHANGED
|
File without changes
|
package/cpp/RNFSTurboInstall.h
CHANGED
|
File without changes
|
package/cpp/RNFSTurboLogger.h
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/cpp/algorithms/base64.h
CHANGED
|
File without changes
|
package/cpp/algorithms/md5.cpp
CHANGED
|
File without changes
|
package/cpp/algorithms/md5.h
CHANGED
|
File without changes
|
package/cpp/algorithms/sha1.cpp
CHANGED
|
File without changes
|
package/cpp/algorithms/sha1.h
CHANGED
|
File without changes
|
|
File without changes
|
package/cpp/algorithms/sha224.h
CHANGED
|
File without changes
|
|
File without changes
|
package/cpp/algorithms/sha256.h
CHANGED
|
File without changes
|
|
File without changes
|
package/cpp/algorithms/sha384.h
CHANGED
|
File without changes
|
|
File without changes
|
package/cpp/algorithms/sha512.h
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -36,41 +36,65 @@ std::string readFile(const char* filePath, int offset, int length) {
|
|
|
36
36
|
return buffer;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
template <typename T>
|
|
40
|
+
std::vector<T> readFileUint(const char* filePath, int offset, int length) {
|
|
41
|
+
static_assert(std::is_trivially_copyable<T>::value, "T must be trivially copyable");
|
|
42
|
+
|
|
40
43
|
std::ifstream inputFile(filePath, std::ios::binary);
|
|
41
44
|
if (!inputFile.is_open()) {
|
|
42
45
|
throw strerror(errno);
|
|
43
46
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (length
|
|
49
|
-
|
|
50
|
-
size = size - offset;
|
|
51
|
-
} else {
|
|
52
|
-
size = length;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (offset > 0) {
|
|
56
|
-
inputFile.seekg(offset);
|
|
47
|
+
|
|
48
|
+
inputFile.seekg(0, std::ios::end);
|
|
49
|
+
size_t size = inputFile.tellg();
|
|
50
|
+
if (length != 0) {
|
|
51
|
+
if (length > size - offset) {
|
|
52
|
+
size = size - offset;
|
|
57
53
|
} else {
|
|
58
|
-
|
|
54
|
+
size = length;
|
|
59
55
|
}
|
|
60
|
-
|
|
61
|
-
inputFile.read(reinterpret_cast<char*> (&vBuffer[0]), size);
|
|
56
|
+
}
|
|
62
57
|
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
if (offset > 0) {
|
|
59
|
+
inputFile.seekg(offset);
|
|
60
|
+
} else {
|
|
61
|
+
inputFile.seekg(0);
|
|
65
62
|
}
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
if constexpr (std::is_same_v<T, uint8_t>) {
|
|
65
|
+
if (offset == 0) {
|
|
66
|
+
std::vector<T> vBuffer((std::istreambuf_iterator<char>(inputFile)), (std::istreambuf_iterator<char>()));
|
|
67
|
+
inputFile.close();
|
|
68
|
+
return vBuffer;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
std::vector<T> vBuffer(size / sizeof(T));
|
|
73
|
+
inputFile.read(reinterpret_cast<char*>(vBuffer.data()), vBuffer.size() * sizeof(T));
|
|
74
|
+
|
|
75
|
+
// Only convert for uint16_t or uint32_t
|
|
76
|
+
if constexpr (std::is_same_v<T, uint16_t> || std::is_same_v<T, uint32_t>) {
|
|
77
|
+
for (auto& x : vBuffer) {
|
|
78
|
+
x = fromBigEndian(x);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
70
81
|
|
|
82
|
+
inputFile.close();
|
|
71
83
|
return vBuffer;
|
|
72
84
|
}
|
|
73
85
|
|
|
86
|
+
FileBuffer readFileUintUniversal(const std::string& encoding, const char* filePath, int offset, int length) {
|
|
87
|
+
if (encoding == "uint8") {
|
|
88
|
+
return readFileUint<uint8_t>(filePath, offset, length);
|
|
89
|
+
} else if (encoding == "uint16") {
|
|
90
|
+
return readFileUint<uint16_t>(filePath, offset, length);
|
|
91
|
+
} else if (encoding == "uint32") {
|
|
92
|
+
return readFileUint<uint32_t>(filePath, offset, length);
|
|
93
|
+
} else {
|
|
94
|
+
throw std::invalid_argument("Unsupported encoding: " + encoding);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
74
98
|
std::vector<float> readFileFloat32(const char* filePath, int offset, int length) {
|
|
75
99
|
std::ifstream inputFile(filePath, std::ios::binary);
|
|
76
100
|
if (!inputFile.is_open()) {
|
|
@@ -124,17 +148,38 @@ void writeFile(const char* filePath, std::string_view content, bool isAppend) {
|
|
|
124
148
|
outputFile.close();
|
|
125
149
|
}
|
|
126
150
|
|
|
127
|
-
|
|
151
|
+
template <typename T>
|
|
152
|
+
void writeFileUint(const char* filePath, const T *contentUint, size_t length, bool isAppend) {
|
|
128
153
|
std::ofstream outputFile(filePath, isAppend ? std::ios::ate|std::ios::app|std::ios::binary : std::ios::binary);
|
|
129
154
|
if (!outputFile.is_open()) {
|
|
130
155
|
throw strerror(errno);
|
|
131
156
|
}
|
|
132
157
|
|
|
133
|
-
outputFile.write((char*)
|
|
158
|
+
outputFile.write((char*)contentUint, length);
|
|
134
159
|
|
|
135
160
|
outputFile.close();
|
|
136
161
|
}
|
|
137
162
|
|
|
163
|
+
void writeFileUintUniversal(
|
|
164
|
+
const std::string& encoding,
|
|
165
|
+
const char* filePath,
|
|
166
|
+
const uint8_t *contentUint8,
|
|
167
|
+
const uint16_t *contentUint16,
|
|
168
|
+
const uint32_t *contentUint32,
|
|
169
|
+
size_t length,
|
|
170
|
+
bool isAppend
|
|
171
|
+
) {
|
|
172
|
+
if (encoding == "uint8") {
|
|
173
|
+
return writeFileUint<uint8_t>(filePath, contentUint8, length, isAppend);
|
|
174
|
+
} else if (encoding == "uint16") {
|
|
175
|
+
return writeFileUint<uint16_t>(filePath, contentUint16, length, isAppend);
|
|
176
|
+
} else if (encoding == "uint32") {
|
|
177
|
+
return writeFileUint<uint32_t>(filePath, contentUint32, length, isAppend);
|
|
178
|
+
} else {
|
|
179
|
+
throw std::invalid_argument("Unsupported encoding: " + encoding);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
138
183
|
void writeFileFloat32(const char* filePath, const float *contentFloat32, size_t length, bool isAppend) {
|
|
139
184
|
std::ofstream outputFile(filePath, isAppend ? std::ios::ate|std::ios::app|std::ios::binary : std::ios::binary);
|
|
140
185
|
if (!outputFile.is_open()) {
|
|
@@ -11,18 +11,64 @@
|
|
|
11
11
|
#include <iostream>
|
|
12
12
|
#include <regex>
|
|
13
13
|
#include <vector>
|
|
14
|
+
#include <variant>
|
|
14
15
|
|
|
15
16
|
namespace cmpayc::rnfsturbo {
|
|
16
17
|
|
|
18
|
+
using FileBuffer = std::variant<
|
|
19
|
+
std::vector<uint8_t>,
|
|
20
|
+
std::vector<uint16_t>,
|
|
21
|
+
std::vector<uint32_t>
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
template <typename T>
|
|
25
|
+
T fromBigEndian(T value) {
|
|
26
|
+
static_assert(std::is_integral<T>::value, "T must be integral");
|
|
27
|
+
|
|
28
|
+
if constexpr (sizeof(T) == 2) {
|
|
29
|
+
return (value << 8) | (value >> 8);
|
|
30
|
+
} else if constexpr (sizeof(T) == 4) {
|
|
31
|
+
return ((value & 0x000000FF) << 24) |
|
|
32
|
+
((value & 0x0000FF00) << 8) |
|
|
33
|
+
((value & 0x00FF0000) >> 8) |
|
|
34
|
+
((value & 0xFF000000) >> 24);
|
|
35
|
+
} else if constexpr (sizeof(T) == 8) {
|
|
36
|
+
return ((value & 0x00000000000000FFULL) << 56) |
|
|
37
|
+
((value & 0x000000000000FF00ULL) << 40) |
|
|
38
|
+
((value & 0x0000000000FF0000ULL) << 24) |
|
|
39
|
+
((value & 0x00000000FF000000ULL) << 8) |
|
|
40
|
+
((value & 0x000000FF00000000ULL) >> 8) |
|
|
41
|
+
((value & 0x0000FF0000000000ULL) >> 24) |
|
|
42
|
+
((value & 0x00FF000000000000ULL) >> 40) |
|
|
43
|
+
((value & 0xFF00000000000000ULL) >> 56);
|
|
44
|
+
} else {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
17
49
|
std::string readFile(const char* filePath, int offset, int length);
|
|
18
50
|
|
|
19
|
-
|
|
51
|
+
template <typename T>
|
|
52
|
+
std::vector<T> readFileUint(const char* filePath, int offset, int length);
|
|
53
|
+
|
|
54
|
+
FileBuffer readFileUintUniversal(const std::string& encoding, const char* filePath, int offset, int length);
|
|
20
55
|
|
|
21
56
|
std::vector<float> readFileFloat32(const char* filePath, int offset, int length);
|
|
22
57
|
|
|
23
58
|
void writeFile(const char* filePath, std::string_view content, bool isAppend);
|
|
24
59
|
|
|
25
|
-
|
|
60
|
+
template <typename T>
|
|
61
|
+
void writeFileUint(const char* filePath, const T *contentUint, size_t length, bool isAppend);
|
|
62
|
+
|
|
63
|
+
void writeFileUintUniversal(
|
|
64
|
+
const std::string& encoding,
|
|
65
|
+
const char* filePath,
|
|
66
|
+
const uint8_t *contentUint8,
|
|
67
|
+
const uint16_t *contentUint16,
|
|
68
|
+
const uint32_t *contentUint32,
|
|
69
|
+
size_t length,
|
|
70
|
+
bool isAppend
|
|
71
|
+
);
|
|
26
72
|
|
|
27
73
|
void writeFileFloat32(const char* filePath, const float *contentFloat32, size_t length, bool isAppend);
|
|
28
74
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/ios/RNFSTurboLogger.mm
CHANGED
|
File without changes
|
package/ios/RNFSTurboModule.h
CHANGED
|
File without changes
|
package/ios/RNFSTurboModule.mm
CHANGED
|
File without changes
|
|
File without changes
|
package/ios/RNFSTurboUploader.h
CHANGED
|
File without changes
|
package/ios/RNFSTurboUploader.mm
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/commonjs/Types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/commonjs/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/module/RNFSTurbo.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/module/Types.js
CHANGED
|
File without changes
|
package/lib/module/Types.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/module/globals.d.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/module/index.js
CHANGED
|
File without changes
|
package/lib/module/index.js.map
CHANGED
|
File without changes
|
package/lib/module/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -120,8 +120,8 @@ export type UploadErrorFunc = ((res: UploadError) => void) | undefined;
|
|
|
120
120
|
export type ScanResultFunc = ((res: ScanResult) => void) | undefined;
|
|
121
121
|
export type OverloadedStatResult<S extends boolean | undefined> = S extends false | undefined ? StatResult<() => boolean, Date> : StatResult<boolean, number>;
|
|
122
122
|
export type OverloadedReadDirItem<T extends boolean | undefined> = T extends false | undefined ? ReadDirItem<() => boolean, Date> : ReadDirItem<boolean, number>;
|
|
123
|
-
export type OverloadedReadResult<T extends ReadOptions> = T extends "uint8" | "float32" | Partial<{
|
|
124
|
-
encoding: "uint8" | "float32";
|
|
123
|
+
export type OverloadedReadResult<T extends ReadOptions> = T extends "uint8" | "uint16" | "uint32" | "float32" | Partial<{
|
|
124
|
+
encoding: "uint8" | "uint16" | "uint32" | "float32";
|
|
125
125
|
}> ? number[] : string;
|
|
126
126
|
export type OverloadedDownloadResult<T extends DownloadResultFunc> = T extends undefined ? {
|
|
127
127
|
jobId: number;
|
|
@@ -138,7 +138,7 @@ export type OverloadedUploadResult<T extends UploadResultFunc> = T extends undef
|
|
|
138
138
|
export type OverloadedScanResult<T extends ScanResultFunc> = T extends undefined ? Promise<ScanResult> : {
|
|
139
139
|
jobId: number;
|
|
140
140
|
};
|
|
141
|
-
export type EncodingType = "utf8" | "base64" | "uint8" | "float32" | "ascii";
|
|
141
|
+
export type EncodingType = "utf8" | "base64" | "uint8" | "uint16" | "uint32" | "float32" | "ascii";
|
|
142
142
|
export type IOSProtectionTypes = "NSFileProtectionNone" | "NSFileProtectionComplete" | "NSFileProtectionCompleteUnlessOpen" | "NSFileProtectionCompleteUntilFirstUserAuthentication" | "NSFileProtectionCompleteWhenUserInactive";
|
|
143
143
|
export type ReadOptions = EncodingType | {
|
|
144
144
|
encoding?: EncodingType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../src/Types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,IAAI,GAAG,MAAM,IAAI;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,MAAM,CA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E,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,CAAC,SAAS,gBAAgB,GAAG,SAAS,EAChD,OAAO,EAAE,iBAAiB,EAC1B,gBAAgB,CAAC,EAAE,CAAC,EACpB,aAAa,CAAC,EAAE,eAAe,GAC9B,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAC7B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,IAAI,YAAY,CAAC;IAC1B,QAAQ,CAAC,CAAC,SAAS,cAAc,GAAG,SAAS,EAC3C,IAAI,EAAE,MAAM,EACZ,gBAAgB,CAAC,EAAE,CAAC,GACnB,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC3B,uBAAuB,IAAI,MAAM,EAAE,CAAC;IACpC,YAAY,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/C"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
package/react-native.config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/RNFSTurbo.ts
CHANGED
|
File without changes
|
package/src/Types.ts
CHANGED
|
@@ -148,9 +148,11 @@ export type OverloadedReadDirItem<T extends boolean | undefined> = T extends
|
|
|
148
148
|
|
|
149
149
|
export type OverloadedReadResult<T extends ReadOptions> = T extends
|
|
150
150
|
| "uint8"
|
|
151
|
+
| "uint16"
|
|
152
|
+
| "uint32"
|
|
151
153
|
| "float32"
|
|
152
154
|
| Partial<{
|
|
153
|
-
encoding: "uint8" | "float32";
|
|
155
|
+
encoding: "uint8" | "uint16" | "uint32" | "float32";
|
|
154
156
|
}>
|
|
155
157
|
? number[]
|
|
156
158
|
: string;
|
|
@@ -169,7 +171,14 @@ export type OverloadedScanResult<T extends ScanResultFunc> = T extends undefined
|
|
|
169
171
|
? Promise<ScanResult>
|
|
170
172
|
: { jobId: number };
|
|
171
173
|
|
|
172
|
-
export type EncodingType =
|
|
174
|
+
export type EncodingType =
|
|
175
|
+
| "utf8"
|
|
176
|
+
| "base64"
|
|
177
|
+
| "uint8"
|
|
178
|
+
| "uint16"
|
|
179
|
+
| "uint32"
|
|
180
|
+
| "float32"
|
|
181
|
+
| "ascii";
|
|
173
182
|
|
|
174
183
|
export type IOSProtectionTypes =
|
|
175
184
|
| "NSFileProtectionNone"
|
package/src/createRNFSTurbo.ts
CHANGED
|
File without changes
|
package/src/globals.d.ts
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|