Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVEMENT] - iCloud Backup Restriction #4159

Merged
merged 8 commits into from
Apr 28, 2022
Merged
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ SPEC CHECKSUMS:
Branch: bd6c472d6cab03206877ac86c1241327a3f217d1
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
DoubleConversion: cde416483dac037923206447da6e1454df403714
FBLazyVector: de148e8310b8b878db304ceea2fec13f2c02e3a0
FBReactNativeSpec: 6192956c9e346013d5f1809ba049af720b11c6a4
Flipper: b1fddf9a17c32097b2b4c806ad158b2f36bb2692
Expand All @@ -766,7 +766,7 @@ SPEC CHECKSUMS:
Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
FlipperKit: aec2d931adeee48a07bab1ea8bcc8a6bb87dfce4
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: 5337263514dd6f09803962437687240c5dc39aa4
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
lottie-ios: a50d5c0160425cd4b01b852bb9578963e6d92d31
lottie-react-native: 7ca15c46249b61e3f9ffcf114cb4123e907a2156
Expand Down
20 changes: 20 additions & 0 deletions patches/redux-persist-filesystem-storage+3.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/node_modules/redux-persist-filesystem-storage/index.js b/node_modules/redux-persist-filesystem-storage/index.js
index 7198fde..eb187bd 100644
--- a/node_modules/redux-persist-filesystem-storage/index.js
+++ b/node_modules/redux-persist-filesystem-storage/index.js
@@ -41,11 +41,13 @@ const FilesystemStorage = {
onStorageReady = onStorageReadyFactory(options.storagePath);
},

- setItem: (key: string, value: string, callback?: (error: ?Error) => void) =>
+ setItem: (key: string, value: string, callback?: (error: ?Error) => void) => {
+ RNFetchBlob.ios?.excludeFromBackupKey(pathForKey(key));
RNFetchBlob.fs
.writeFile(pathForKey(key), value, options.encoding)
.then(() => callback && callback())
- .catch(error => callback && callback(error)),
+ .catch(error => callback && callback(error));
+ },

getItem: onStorageReady(
(key: string, callback?: (error: ?Error, result: ?(Array<number> | string)) => void) => {