Comments (14)
Yeah... should I mention it once again, #1197 — The future of react-native-fs?
You probably should migrate to my fork of the lib, and file new issues, do any contributions in there.
from react-native-fs.
I have no use for disk space APIs so I removed them with patch-package:
diff --git a/node_modules/react-native-fs/RNFSManager.m b/node_modules/react-native-fs/RNFSManager.m
index 5ddd941..80fb3e9 100755
--- a/node_modules/react-native-fs/RNFSManager.m
+++ b/node_modules/react-native-fs/RNFSManager.m
@@ -726,24 +726,11 @@ + (BOOL)requiresMainQueueSetup
{
unsigned long long totalSpace = 0;
unsigned long long totalFreeSpace = 0;
-
- __autoreleasing NSError *error = nil;
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
- NSDictionary *dictionary = [[NSFileManager defaultManager] attributesOfFileSystemForPath:[paths lastObject] error:&error];
-
- if (dictionary) {
- NSNumber *fileSystemSizeInBytes = [dictionary objectForKey: NSFileSystemSize];
- NSNumber *freeFileSystemSizeInBytes = [dictionary objectForKey:NSFileSystemFreeSize];
- totalSpace = [fileSystemSizeInBytes unsignedLongLongValue];
- totalFreeSpace = [freeFileSystemSizeInBytes unsignedLongLongValue];
-
- resolve(@{
- @"totalSpace": [NSNumber numberWithUnsignedLongLong:totalSpace],
- @"freeSpace": [NSNumber numberWithUnsignedLongLong:totalFreeSpace]
- });
- } else {
- [self reject:reject withError:error];
- }
+ // Remove disk space APIs to not to trigger NSPrivacyAccessedAPICategoryDiskSpace for privacy manifest
+ resolve(@{
+ @"totalSpace": [NSNumber numberWithUnsignedLongLong:totalSpace],
+ @"freeSpace": [NSNumber numberWithUnsignedLongLong:totalFreeSpace]
+ });
}
from react-native-fs.
@gkasireddy202 Thanks.
from react-native-fs.
How to download sh required_reason_api_scanner.sh YourAppDirectory and run in your react-native project?
from react-native-fs.
How to download sh required_reason_api_scanner.sh YourAppDirectory and run in your react-native project?
You can clone the https://github.com/Wooder/ios_17_required_reason_api_scanner repository to be able to run it.
from react-native-fs.
@gabrielguilhoto - Thanks for your reply.
from react-native-fs.
@gabrielguilhoto - After I cloned the git on my desktop.Getting error.
sh required_reason_api_scanner.sh Desktop
sh: required_reason_api_scanner.sh: No such file or directory
from react-native-fs.
@gabrielguilhoto - After I cloned the git on my desktop.Getting error. sh required_reason_api_scanner.sh Desktop
sh: required_reason_api_scanner.sh: No such file or directory
If you cloned it on your desktop then there is no folder called Desktop... you would just put .
...
from react-native-fs.
@WilliamWelsh - Thanks it is working. Is it mandatory to update every library for iOS privacy manifest?
from react-native-fs.
I am using react-native-fs:2.20.0.
Can I update this library for the iOS privacy manifest file?
from react-native-fs.
@gabrielguilhoto @gkasireddy202 Have You found any workaround for this or do we have to manually add the reason in PrivacyInfo.xcprivacy under this API Type NSPrivacyAccessedAPICategoryFileTimestamp.
from react-native-fs.
Have You found any workaround for this or do we have to manually add the reason in PrivacyInfo.xcprivacy under this API Type NSPrivacyAccessedAPICategoryFileTimestamp.
I added this API reason in PrivacyInfo.xcprivacy file in my app.
from react-native-fs.
@gkasireddy202 Under this API NSPrivacyAccessedAPICategoryFileTimestamp?
Secondly after adding apple approved your app without any warnings?
Kindly mention which reason you add
- DDA9.1
- C617.1
- 3B52.1
- 0A2A.1
from react-native-fs.
@MianSaad705 - I added the below API type and reason in my app privacy file.I did not get any warning emails from Apple and also app is approved.
NSPrivacyAccessedAPIType
NSPrivacyAccessedAPICategoryFileTimestamp
NSPrivacyAccessedAPITypeReasons
C617.1
from react-native-fs.
Related Issues (20)
- downloadFile 并不是一个Promise对象 await无效 HOT 1
- [improvement] downloading file in background on iOS
- How integrate with react-native use Kotlin (RN: 0.73.0) instead of Java for Android? HOT 5
- Jpk
- Could not resolve all files for configuration ':react-native-fs:androidJdkImage'. HOT 1
- ZIP files corrupted - END header not found
- Access denied
- can't get mp4 files from external storage(from smartphone) In android
- readFileAssets block/freeze the UI HOT 1
- Support for New Architecture HOT 1
- Issue when run the app on device in android or ios HOT 1
- sometime stat size return as 3, Please check HOT 1
- Upgrade Newtonsoft.Json from 10.0.3 to 13.0.1 to fix the vulnerability.
- Could not find the path of SD card HOT 1
- Wrong sha1 checksum for large files (around 1GB) HOT 2
- Please update android compileSdkVersion buildToolsVersion minSdkVersion targetSdkVersion HOT 1
- Reading chunks from a large file fails
- Two issues with uploading/downloading
- Tidak dapat menggunakan porder ini HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-fs.