Skip to content

Commit 1306569

Browse files
committed
update react-native-mmkv-storage
1 parent d58e0da commit 1306569

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

ios/Podfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ PODS:
226226
- libwebp/sharpyuv (1.5.0)
227227
- libwebp/webp (1.5.0):
228228
- libwebp/sharpyuv
229-
- MMKV (1.3.13):
230-
- MMKVCore (~> 1.3.13)
231-
- MMKVCore (1.3.13)
229+
- MMKV (1.3.14):
230+
- MMKVCore (~> 1.3.14)
231+
- MMKVCore (1.3.14)
232232
- MobileCrypto (0.1.0):
233233
- DoubleConversion
234234
- glog
@@ -1686,11 +1686,11 @@ PODS:
16861686
- ReactCommon/turbomodule/bridging
16871687
- ReactCommon/turbomodule/core
16881688
- Yoga
1689-
- react-native-mmkv-storage (0.11.2):
1689+
- react-native-mmkv-storage (12.0.0):
16901690
- DoubleConversion
16911691
- glog
16921692
- hermes-engine
1693-
- MMKV (~> 1.3.9)
1693+
- MMKV (~> 1.3.14)
16941694
- RCT-Folly (= 2024.11.18.00)
16951695
- RCTRequired
16961696
- RCTTypeSafety
@@ -3094,8 +3094,8 @@ SPEC CHECKSUMS:
30943094
libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7
30953095
libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f
30963096
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
3097-
MMKV: 5854d45476fc3757bacfa7e13cc0fbcd274ab0e4
3098-
MMKVCore: edbad9714bb70344544148f086a4a69061ff31b6
3097+
MMKV: 7b5df6a8bf785c6705cc490c541b9d8a957c4a64
3098+
MMKVCore: 3f40b896e9ab522452df9df3ce983471aa2449ba
30993099
MobileCrypto: 101b85a7b88b0a370f35a775e3be75ce8dd6fbd9
31003100
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
31013101
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
@@ -3136,7 +3136,7 @@ SPEC CHECKSUMS:
31363136
react-native-cameraroll: 23d28040c32ca8b20661e0c41b56ab041779244b
31373137
react-native-cookies: d648ab7025833b977c0b19e142503034f5f29411
31383138
react-native-keyboard-controller: 9ec7ee23328c30251a399cffd8b54324a00343bf
3139-
react-native-mmkv-storage: 1ece3df3c6cb8919ce546d037ec322d13e1b43d6
3139+
react-native-mmkv-storage: 9afc38c25213482f668c80bf2f0a50f75dda1777
31403140
react-native-netinfo: 2e3c27627db7d49ba412bfab25834e679db41e21
31413141
react-native-notifications: 3bafa1237ae8a47569a84801f17d80242fe9f6a5
31423142
react-native-restart: f6f591aeb40194c41b9b5013901f00e6cf7d0f29
@@ -3172,7 +3172,7 @@ SPEC CHECKSUMS:
31723172
React-timing: 2d07431f1c1203c5b0aaa6dc7b5f503704519218
31733173
React-utils: 67cf7dcfc18aa4c56bec19e11886033bb057d9fa
31743174
ReactAppDependencyProvider: bf62814e0fde923f73fc64b7e82d76c63c284da9
3175-
ReactCodegen: c51a63d05629675dd61caf58d1a093c4457972c0
3175+
ReactCodegen: df3ff45729335a27d1c85bed1787e79783289968
31763176
ReactCommon: 177fca841e97b2c0e288e86097b8be04c6e7ae36
31773177
RNBootSplash: 1280eeb18d887de0a45bb4923d4fc56f25c8b99c
31783178
RNCAsyncStorage: edb872909c88d8541c0bfade3f86cd7784a7c6b3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"react-native-localize": "2.1.1",
114114
"react-native-math-view": "3.9.5",
115115
"react-native-mime-types": "2.3.0",
116-
"react-native-mmkv-storage": "^0.11.2",
116+
"react-native-mmkv-storage": "^12.0.0",
117117
"react-native-modal": "13.0.1",
118118
"react-native-notifications": "5.1.0",
119119
"react-native-notifier": "1.6.1",
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/react-native-mmkv-storage/ios/SecureStorage.m b/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
2-
index 34703df..80b4ae7 100644
2+
index 34703df..a754918 100644
33
--- a/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
44
+++ b/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
5-
@@ -40,14 +40,14 @@ - (NSString *) getSecureKey:(NSString *)key
5+
@@ -40,14 +40,14 @@ NSString *serviceName = nil;
66
@try {
77
[self handleAppUninstallation];
88
NSString *value = [self searchKeychainCopyMatching:key];
@@ -14,25 +14,25 @@ index 34703df..80b4ae7 100644
1414
- usleep(25000);
1515
- }
1616
- });
17-
+// dispatch_sync(dispatch_get_main_queue(), ^{
18-
+// int readAttempts = 0;
19-
+// // See: https://github.com/ammarahm-ed/react-native-mmkv-storage/issues/195
20-
+// while (![[UIApplication sharedApplication] isProtectedDataAvailable] && readAttempts++ < 100) {
21-
+// // sleep 25ms before another attempt
22-
+// usleep(25000);
23-
+// }
24-
+// });
17+
+ // dispatch_sync(dispatch_get_main_queue(), ^{
18+
+ // int readAttempts = 0;
19+
+ // // See: https://github.com/ammarahm-ed/react-native-mmkv-storage/issues/195
20+
+ // while (![[UIApplication sharedApplication] isProtectedDataAvailable] && readAttempts++ < 100) {
21+
+ // // sleep 25ms before another attempt
22+
+ // usleep(25000);
23+
+ // }
24+
+ // });
2525
if (value == nil) {
2626
NSString* errorMessage = @"key does not present";
2727

28-
@@ -100,6 +100,10 @@ - (void) removeSecureKey:(NSString *)key
28+
@@ -100,6 +100,10 @@ NSString *serviceName = nil;
2929

3030
- (NSMutableDictionary *)newSearchDictionary:(NSString *)identifier {
3131
NSMutableDictionary *searchDictionary = [[NSMutableDictionary alloc] init];
3232
+
3333
+ // this value is shared by main app and extensions, so, is the best to be used here
3434
+ serviceName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppGroup"];
35-
+
35+
+
3636
if(serviceName == nil){
3737
serviceName = [[NSBundle mainBundle] bundleIdentifier];
3838
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12825,10 +12825,10 @@ [email protected]:
1282512825
dependencies:
1282612826
mime-db "~1.37.0"
1282712827

12828-
react-native-mmkv-storage@^0.11.2:
12829-
version "0.11.2"
12830-
resolved "https://registry.yarnpkg.com/react-native-mmkv-storage/-/react-native-mmkv-storage-0.11.2.tgz#29d838ed31e9ead660a90de16d8ac2c2fd83e48c"
12831-
integrity sha512-/jbYNOUrwgVU09WyXDK6lFGXqBs+23oR9X37z3N68rwHNiXF5WDyXnT38dU2tF07ZlvmsobNHgdxgTu4kGQUKQ==
12828+
react-native-mmkv-storage@^12.0.0:
12829+
version "12.0.0"
12830+
resolved "https://registry.yarnpkg.com/react-native-mmkv-storage/-/react-native-mmkv-storage-12.0.0.tgz#9d15cd6dff8abbb7f52992446eef3954dc8f9c3a"
12831+
integrity sha512-sssZInILQBquytDDfjosjEdvevwMPk3fqQQjdjfnH362IcsBsApvtT8yJS406Mz9aJ6VhqVsZw/awltsUuPSYg==
1283212832

1283312833
1283412834
version "13.0.1"

0 commit comments

Comments
 (0)