* update dependencies * revert keychain update * Update dependencies & Fastlane * set path agnostic for bash in scrips * Fix open from push notification race * patch react-native-localize
50 lines
2.8 KiB
Diff
50 lines
2.8 KiB
Diff
diff --git a/node_modules/react-native-mmkv-storage/ios/MMKVStorage.m b/node_modules/react-native-mmkv-storage/ios/MMKVStorage.m
|
|
index 2875bda..8235771 100644
|
|
--- a/node_modules/react-native-mmkv-storage/ios/MMKVStorage.m
|
|
+++ b/node_modules/react-native-mmkv-storage/ios/MMKVStorage.m
|
|
@@ -45,10 +45,10 @@ - (id)init
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
|
|
- NSString *libraryPath = (NSString *) [paths firstObject];
|
|
- NSString *rootDir = [libraryPath stringByAppendingPathComponent:@"mmkv"];
|
|
- [MMKV initializeMMKV:rootDir];
|
|
+ NSBundle *bundle = [NSBundle mainBundle];
|
|
+ NSString *APP_GROUP_ID = [bundle objectForInfoDictionaryKey:@"AppGroupIdentifier"];
|
|
+ NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:APP_GROUP_ID].path;
|
|
+ [MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogInfo];
|
|
|
|
secureStorage = [[SecureStorage alloc]init];
|
|
IdStore = [[IDStore alloc] initWithMMKV:[MMKV mmkvWithID:@"mmkvIdStore"]];
|
|
diff --git a/node_modules/react-native-mmkv-storage/ios/SecureStorage.m b/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
|
|
index 70f3a01..07e1af0 100644
|
|
--- a/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
|
|
+++ b/node_modules/react-native-mmkv-storage/ios/SecureStorage.m
|
|
@@ -184,7 +184,7 @@ - (BOOL)searchKeychainCopyMatchingExists:(NSString *)identifier {
|
|
}
|
|
|
|
- (BOOL)createKeychainValue:(NSString *)value forIdentifier:(NSString *)identifier options: (NSDictionary * __nullable)options {
|
|
- CFStringRef accessible = accessibleValue(options);
|
|
+ CFStringRef accessible = secureStoreAccessibleValue(options);
|
|
NSMutableDictionary *dictionary = [self newSearchDictionary:identifier];
|
|
|
|
NSData *valueData = [value dataUsingEncoding:NSUTF8StringEncoding];
|
|
@@ -201,7 +201,7 @@ - (BOOL)createKeychainValue:(NSString *)value forIdentifier:(NSString *)identifi
|
|
|
|
- (BOOL)updateKeychainValue:(NSString *)password forIdentifier:(NSString *)identifier options:(NSDictionary * __nullable)options {
|
|
|
|
- CFStringRef accessible = accessibleValue(options);
|
|
+ CFStringRef accessible = secureStoreAccessibleValue(options);
|
|
NSMutableDictionary *searchDictionary = [self newSearchDictionary:identifier];
|
|
NSMutableDictionary *updateDictionary = [[NSMutableDictionary alloc] init];
|
|
NSData *passwordData = [password dataUsingEncoding:NSUTF8StringEncoding];
|
|
@@ -255,7 +255,7 @@ - (void)handleAppUninstallation
|
|
|
|
|
|
|
|
-CFStringRef accessibleValue(NSDictionary *options)
|
|
+CFStringRef secureStoreAccessibleValue(NSDictionary *options)
|
|
{
|
|
if (options && options[@"accessible"] != nil) {
|
|
NSDictionary *keyMap = @{
|