Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: update libraries

ammarahm-edfb26229715d3
diff --git a/apps/mobile/native/ios/Notesnook/Info.plist b/apps/mobile/native/ios/Notesnook/Info.plist
index 0d758e538..cc044668f 100644
--- a/apps/mobile/native/ios/Notesnook/Info.plist
+++ b/apps/mobile/native/ios/Notesnook/Info.plist
@@ -153,5 +153,7 @@
</array>
<key>appGroupId</key>
<string>group.org.streetwriters.notesnook</string>
+ <key>disableMMKVBackup</key>
+ <true/>
</dict>
</plist>
diff --git a/apps/mobile/native/ios/Podfile.lock b/apps/mobile/native/ios/Podfile.lock
index d3656953f..dfc895cd5 100644
--- a/apps/mobile/native/ios/Podfile.lock
+++ b/apps/mobile/native/ios/Podfile.lock
@@ -19,9 +19,9 @@ PODS:
- glog (0.3.5)
- GZIP (1.3.0)
- JWTDecode (3.0.1)
- - MMKV (1.2.13):
- - MMKVCore (~> 1.2.13)
- - MMKVCore (1.2.13)
+ - MMKV (1.3.1):
+ - MMKVCore (~> 1.3.1)
+ - MMKVCore (1.3.1)
- pop (1.0.12)
- RCT-Folly (2021.07.22.00):
- boost
@@ -313,7 +313,7 @@ PODS:
- React-Core
- react-native-get-random-values (1.9.0):
- React-Core
- - react-native-gzip (1.0.0):
+ - react-native-gzip (1.1.0):
- Base64
- GZIP
- React-Core
@@ -327,8 +327,9 @@ PODS:
- React-Core
- react-native-keep-awake (1.2.0):
- React-Core
- - react-native-mmkv-storage (0.9.1):
- - MMKV (= 1.2.13)
+ - react-native-mmkv-storage (0.10.0-alpha.3):
+ - MMKV (~> 1.3.1)
+ - React
- React-Core
- react-native-netinfo (9.3.10):
- React-Core
@@ -346,7 +347,7 @@ PODS:
- ReactCommon/turbomodule/core
- react-native-share-extension (2.5.6):
- React
- - react-native-sodium (1.4.1):
+ - react-native-sodium (1.5.1):
- React
- react-native-webview (11.26.1):
- React-Core
@@ -841,8 +842,8 @@ SPEC CHECKSUMS:
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
GZIP: 416858efbe66b41b206895ac6dfd5493200d95b3
JWTDecode: 2eed97c2fa46ccaf3049a787004eedf0be474a87
- MMKV: aac95d817a100479445633f2b3ed8961b4ac5043
- MMKVCore: 3388952ded307e41b3ed8a05892736a236ed1b8e
+ MMKV: 5a07930c70c70b86cd87761a42c8f3836fb681d7
+ MMKVCore: e50135dbd33235b6ab390635991bab437ab873c0
pop: d582054913807fd11fd50bfe6a539d91c7e1a55a
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: 656ef0536dd60a9740961ade6a64ba0cb0572d2b
@@ -868,20 +869,20 @@ SPEC CHECKSUMS:
react-native-document-picker: ec07866a30707f23660c0f3ae591d669d3e89096
react-native-fingerprint-scanner: be63e626b31fb951780a5fac5328b065a61a3d6e
react-native-get-random-values: dee677497c6a740b71e5612e8dbd83e7539ed5bb
- react-native-gzip: 02f9968afa759e189f0414d41f8f4a951a86b4f1
+ react-native-gzip: c5e87ee9e359f02350e3a2ee52eb35eddc398868
react-native-html-to-pdf-lite: 21bfb169bf4cbcd7bec9f736975ee1b3f5292d4a
react-native-image-picker: 9c8a2687b69300ad9e95cec5d38f35ab9d32467d
react-native-image-resizer: 00ceb0e05586c7aadf061eea676957a6c2ec60fa
react-native-in-app-review: db8bb167a5f238e7ceca5c242d6b36ce8c4404a4
react-native-keep-awake: caee3ff89eaa21dfe29010f0d143566874a04441
- react-native-mmkv-storage: cfb6854594cfdc5f7383a9e464bb025417d1721c
+ react-native-mmkv-storage: d44b2a774b5d299ab6ce421c1ec1bd1d737a3b55
react-native-netinfo: ccbe1085dffd16592791d550189772e13bf479e2
react-native-notification-sounds: da78c828fe1bcbb92d8b505d5261890ed315ff39
react-native-orientation: f1caf84d65f1a4fd4511a18f2b924e634ad7a628
react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa
react-native-safe-area-context: 36cc67648134e89465663b8172336a19eeda493d
react-native-share-extension: df66a2ee48a62277d79898375e2142bde0782063
- react-native-sodium: f4e3986ddcb73482f8679e534b448a0675d0cf13
+ react-native-sodium: 08d459dfcb5d246363a30712d816acea56ab8f1c
react-native-webview: 9f111dfbcfc826084d6c507f569e5e03342ee1c1
React-NativeModulesApple: 1d81d927ef1a67a3545a01e14c2e98500bf9b199
React-perflogger: 684a11499a0589cc42135d6d5cc04d0e4e0e261a
@@ -930,4 +931,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: b0cadd188aa428b98d1eaa0b84b3b6208e714119
-COCOAPODS: 1.11.3
+COCOAPODS: 1.12.1
diff --git a/apps/mobile/native/package.json b/apps/mobile/native/package.json
index b7a2c8bc4..cc4471905 100644
--- a/apps/mobile/native/package.json
+++ b/apps/mobile/native/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"@ammarahmed/notifee-react-native": "7.4.4",
"@ammarahmed/react-native-share-extension": "^2.5.5",
- "@ammarahmed/react-native-sodium": "1.4.1",
+ "@ammarahmed/react-native-sodium": "1.5.1",
"@bam.tech/react-native-image-resizer": "3.0.5",
"@callstack/repack": "^3.2.0",
"@react-native-clipboard/clipboard": "^1.9.0",
@@ -38,13 +38,13 @@
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
"react-native-gesture-handler": "^2.12.0",
"react-native-get-random-values": "^1.7.0",
- "react-native-gzip": "1.0.0",
+ "react-native-gzip": "1.1.0",
"react-native-html-to-pdf-lite": "^0.9.1",
"react-native-iap": "7.5.6",
"react-native-image-picker": "4.1.2",
"react-native-in-app-review": "4.3.3",
"react-native-keychain": "4.0.5",
- "react-native-mmkv-storage": "^0.9.1",
+ "react-native-mmkv-storage": "^0.10.0-alpha.3",
"react-native-modal-datetime-picker": "14.0.0",
"react-native-navigation-bar-color": "2.0.2",
"react-native-notification-sounds": "0.5.5",
@@ -53,7 +53,7 @@
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-reanimated": "3.3.0",
"react-native-safe-area-context": "^4.3.1",
- "react-native-scoped-storage": "^1.9.3",
+ "react-native-scoped-storage": "^1.9.5",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json
index e1b9ad538..388056525 100644
--- a/apps/mobile/package-lock.json
+++ b/apps/mobile/package-lock.json
@@ -57,8 +57,8 @@
"version": "7.4.1",
"license": "GPL-3.0-or-later",
"dependencies": {
- "@microsoft/signalr": "^6.0.7",
- "@microsoft/signalr-protocol-msgpack": "^6.0.7",
+ "@microsoft/signalr": "^7.0.10",
+ "@microsoft/signalr-protocol-msgpack": "^7.0.10",
"@notesnook/logger": "file:../logger",
"@streetwriters/showdown": "^3.0.1-alpha.2",
"async-mutex": "^0.3.2",
@@ -272,7 +272,7 @@
"@ammarahmed/notifee-react-native": "7.4.4",
"@ammarahmed/react-native-eventsource": "1.1.0",
"@ammarahmed/react-native-share-extension": "^2.5.5",
- "@ammarahmed/react-native-sodium": "1.4.1",
+ "@ammarahmed/react-native-sodium": "1.5.1",
"@bam.tech/react-native-image-resizer": "3.0.5",
"@callstack/repack": "^3.2.0",
"@react-native-clipboard/clipboard": "^1.9.0",
@@ -302,13 +302,13 @@
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
"react-native-gesture-handler": "^2.12.0",
"react-native-get-random-values": "^1.7.0",
- "react-native-gzip": "1.0.0",
+ "react-native-gzip": "1.1.0",
"react-native-html-to-pdf-lite": "^0.9.1",
"react-native-iap": "7.5.6",
"react-native-image-picker": "4.1.2",
"react-native-in-app-review": "4.3.3",
"react-native-keychain": "4.0.5",
- "react-native-mmkv-storage": "^0.9.1",
+ "react-native-mmkv-storage": "^0.10.0-alpha.3",
"react-native-modal-datetime-picker": "14.0.0",
"react-native-navigation-bar-color": "2.0.2",
"react-native-notification-sounds": "0.5.5",
@@ -317,7 +317,7 @@
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-reanimated": "3.3.0",
"react-native-safe-area-context": "^4.3.1",
- "react-native-scoped-storage": "^1.9.3",
+ "react-native-scoped-storage": "^1.9.5",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
@@ -2410,9 +2410,9 @@
}
},
"node_modules/@ammarahmed/react-native-sodium": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/@ammarahmed/react-native-sodium/-/react-native-sodium-1.4.1.tgz",
- "integrity": "sha512-Igib5FXx+0Y0e37QekaOfi30PRjVw1CQthAHQiz+1cWhAOAuh4JEReJvQrk91xdo192hsjE9wyFmLGLqdUAPlg=="
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/@ammarahmed/react-native-sodium/-/react-native-sodium-1.5.1.tgz",
+ "integrity": "sha512-uLcZ9ITDL6ZgZKGzoMzaKgtZwiSPVzB3jLQwRvpzacEw3byA/8Q7mKBHj2Fw3n3clD9svuNQG94yGb7xYqsAYg=="
},
"node_modules/@ampproject/remapping": {
"version": "2.2.1",
@@ -18212,9 +18212,9 @@
}
},
"node_modules/react-native-gzip": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/react-native-gzip/-/react-native-gzip-1.0.0.tgz",
- "integrity": "sha512-04K5Ote/cF8+bJ7yeHudm7uQiEEFpqMcvYJcNGy8fj9o0NpGI0NhCyJxGCNTwuHCWwQfvpXdNvmdRs6bmJAUpQ==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/react-native-gzip/-/react-native-gzip-1.1.0.tgz",
+ "integrity": "sha512-utgM5GNAIsOoMnQHK135tULfQGeEa40NTyybJ2vH87ay9A6XP4K1AZBBwnIHxtzBS+z0mO3dmql5662q5UUNSg==",
"peerDependencies": {
"react": "*",
"react-native": "*"
@@ -18298,9 +18298,9 @@
"integrity": "sha512-TbiO8AO055EPjaxIuKxrCEOB4r81uQCVDFbtcs+e4pEOHxf6z3JgDC0UU0poJElKfCh37b+TFRxQhg6DbsYJBA=="
},
"node_modules/react-native-mmkv-storage": {
- "version": "0.9.1",
- "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.9.1.tgz",
- "integrity": "sha512-FzSx4PKxK2ocT/OuKGlaVziWZyQYHYLUx9595i1oXY263C5mG19PN5RiBgEGL2S5lK4VGUCzO85GAcsrNPtpOg==",
+ "version": "0.10.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.3.tgz",
+ "integrity": "sha512-YQF0HC1BouWSEx6+mI0Cj7xTwO+u4n2kNZByJ3ztGO2eJt1hf5GwDXKJinmqHLCr29+SkKAb1co9FdVY5Vrypg==",
"bin": {
"mmkv-link": "autolink/postlink/run.js"
},
@@ -18450,9 +18450,9 @@
}
},
"node_modules/react-native-scoped-storage": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/react-native-scoped-storage/-/react-native-scoped-storage-1.9.3.tgz",
- "integrity": "sha512-hGqj+2I6pIziIh1CmWXXlgm59wCQLIikETqbMCaFQRHC3yQGI4HdYN6QvM3rteUuR69PNjso+Qd3TJfQnFhlMA==",
+ "version": "1.9.5",
+ "resolved": "https://registry.npmjs.org/react-native-scoped-storage/-/react-native-scoped-storage-1.9.5.tgz",
+ "integrity": "sha512-XMlJowlOdNfNUhBI+y7hvP0+lJTqBubErm0gGOmRDnNZ8Uc2QanLL4DR2ZSsAp8e8+G7bgB6UQNAbWRgH0muvg==",
"peerDependencies": {
"react-native": "*"
}
@@ -23747,9 +23747,9 @@
}
},
"@ammarahmed/react-native-sodium": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/@ammarahmed/react-native-sodium/-/react-native-sodium-1.4.1.tgz",
- "integrity": "sha512-Igib5FXx+0Y0e37QekaOfi30PRjVw1CQthAHQiz+1cWhAOAuh4JEReJvQrk91xdo192hsjE9wyFmLGLqdUAPlg=="
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/@ammarahmed/react-native-sodium/-/react-native-sodium-1.5.1.tgz",
+ "integrity": "sha512-uLcZ9ITDL6ZgZKGzoMzaKgtZwiSPVzB3jLQwRvpzacEw3byA/8Q7mKBHj2Fw3n3clD9svuNQG94yGb7xYqsAYg=="
},
"@ampproject/remapping": {
"version": "2.2.1",
@@ -26502,8 +26502,8 @@
"@notesnook/core": {
"version": "file:../../packages/core",
"requires": {
- "@microsoft/signalr": "^6.0.7",
- "@microsoft/signalr-protocol-msgpack": "^6.0.7",
+ "@microsoft/signalr": "^7.0.10",
+ "@microsoft/signalr-protocol-msgpack": "^7.0.10",
"@notesnook/crypto": "file:../crypto",
"@notesnook/logger": "file:../logger",
"@streetwriters/showdown": "^3.0.1-alpha.2",
@@ -26670,7 +26670,7 @@
"@ammarahmed/notifee-react-native": "7.4.4",
"@ammarahmed/react-native-eventsource": "1.1.0",
"@ammarahmed/react-native-share-extension": "^2.5.5",
- "@ammarahmed/react-native-sodium": "1.4.1",
+ "@ammarahmed/react-native-sodium": "1.5.1",
"@babel/core": "^7.20.0",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-transform-named-capturing-groups-regex": "^7.16.5",
@@ -26737,13 +26737,13 @@
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
"react-native-gesture-handler": "^2.12.0",
"react-native-get-random-values": "^1.7.0",
- "react-native-gzip": "1.0.0",
+ "react-native-gzip": "1.1.0",
"react-native-html-to-pdf-lite": "^0.9.1",
"react-native-iap": "7.5.6",
"react-native-image-picker": "4.1.2",
"react-native-in-app-review": "4.3.3",
"react-native-keychain": "4.0.5",
- "react-native-mmkv-storage": "^0.9.1",
+ "react-native-mmkv-storage": "^0.10.0-alpha.3",
"react-native-modal-datetime-picker": "14.0.0",
"react-native-navigation-bar-color": "2.0.2",
"react-native-notification-sounds": "0.5.5",
@@ -26752,7 +26752,7 @@
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-reanimated": "3.3.0",
"react-native-safe-area-context": "^4.3.1",
- "react-native-scoped-storage": "^1.9.3",
+ "react-native-scoped-storage": "^1.9.5",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
@@ -35791,9 +35791,9 @@
}
},
"react-native-gzip": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/react-native-gzip/-/react-native-gzip-1.0.0.tgz",
- "integrity": "sha512-04K5Ote/cF8+bJ7yeHudm7uQiEEFpqMcvYJcNGy8fj9o0NpGI0NhCyJxGCNTwuHCWwQfvpXdNvmdRs6bmJAUpQ=="
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/react-native-gzip/-/react-native-gzip-1.1.0.tgz",
+ "integrity": "sha512-utgM5GNAIsOoMnQHK135tULfQGeEa40NTyybJ2vH87ay9A6XP4K1AZBBwnIHxtzBS+z0mO3dmql5662q5UUNSg=="
},
"react-native-html-to-pdf-lite": {
"version": "0.9.1",
@@ -35851,9 +35851,9 @@
"integrity": "sha512-TbiO8AO055EPjaxIuKxrCEOB4r81uQCVDFbtcs+e4pEOHxf6z3JgDC0UU0poJElKfCh37b+TFRxQhg6DbsYJBA=="
},
"react-native-mmkv-storage": {
- "version": "0.9.1",
- "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.9.1.tgz",
- "integrity": "sha512-FzSx4PKxK2ocT/OuKGlaVziWZyQYHYLUx9595i1oXY263C5mG19PN5RiBgEGL2S5lK4VGUCzO85GAcsrNPtpOg=="
+ "version": "0.10.0-alpha.3",
+ "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.3.tgz",
+ "integrity": "sha512-YQF0HC1BouWSEx6+mI0Cj7xTwO+u4n2kNZByJ3ztGO2eJt1hf5GwDXKJinmqHLCr29+SkKAb1co9FdVY5Vrypg=="
},
"react-native-modal-datetime-picker": {
"version": "14.0.0",
@@ -35952,9 +35952,9 @@
"integrity": "sha512-3CeZM9HFXkuqiU9HqhOQp1yxhXw6q99axPWrT+VJkITd67gnPSU03+U27Xk2/cr9XrLUnakM07kj7H0hdPnFiQ=="
},
"react-native-scoped-storage": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/react-native-scoped-storage/-/react-native-scoped-storage-1.9.3.tgz",
- "integrity": "sha512-hGqj+2I6pIziIh1CmWXXlgm59wCQLIikETqbMCaFQRHC3yQGI4HdYN6QvM3rteUuR69PNjso+Qd3TJfQnFhlMA=="
+ "version": "1.9.5",
+ "resolved": "https://registry.npmjs.org/react-native-scoped-storage/-/react-native-scoped-storage-1.9.5.tgz",
+ "integrity": "sha512-XMlJowlOdNfNUhBI+y7hvP0+lJTqBubErm0gGOmRDnNZ8Uc2QanLL4DR2ZSsAp8e8+G7bgB6UQNAbWRgH0muvg=="
},
"react-native-screens": {
"version": "3.21.1",
diff --git a/apps/mobile/patches/react-native-mmkv-storage+0.9.1.patch b/apps/mobile/patches/react-native-mmkv-storage+0.9.1.patch
deleted file mode 100644
index c60d7d42f..000000000
--- a/apps/mobile/patches/react-native-mmkv-storage+0.9.1.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff --git a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
-index 9af089d..f64a04a 100644
---- a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
-+++ b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
-@@ -30,13 +30,23 @@ - (instancetype)init
- {
- self = [super init];
- RCTExecuteOnMainQueue(^{
-- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
-- NSUserDomainMask, YES);
-- NSString *libraryPath = (NSString *)[paths firstObject];
-- NSString *rootDir = [libraryPath stringByAppendingPathComponent:@"mmkv"];
-+// NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
-+// NSUserDomainMask, YES);
-+// NSString *libraryPath = (NSString *)[paths firstObject];
-+
-+ NSString *myGroupID = @"group.org.streetwriters.notesnook"; // the group dir that can be accessed by App & extensions
-+
-+ NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:myGroupID].path;
-+ NSString *rootDir = [groupDir stringByAppendingPathComponent:@"mmkv"];
-+
-+ // Do not include this directory in cloud backups.
-+ NSError *error = nil;
-+ NSURL *url = [NSURL fileURLWithPath:rootDir isDirectory:YES];
-+ [url setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:&error];
- rPath = rootDir;
-+ // Set the groupDir
- _secureStorage = [[SecureStorage alloc] init];
-- [MMKV initializeMMKV:rootDir];
-+ [MMKV initializeMMKV:nil groupDir:rootDir logLevel:MMKVLogInfo];
- });
-
-
-@@ -706,7 +716,7 @@ static void install(jsi::Runtime &jsiRuntime) {
- }
-
- - (void)migrate {
-- MMKV *kv = [MMKV mmkvWithID:@"mmkvIdStore"];
-+ MMKV *kv = [MMKV mmkvWithID:@"mmkvIdStore" mode:MMKVMultiProcess];
- [mmkvInstances setObject:kv forKey:@"mmkvIdStore"];
- if ([kv containsKey:@"mmkvIdData"]) {
- NSMutableDictionary *oldStore =