Skip to content

Commit

Permalink
fix: append mmkv to appGroup path
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Aug 30, 2023
1 parent 3880682 commit 543c79d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/MMKVNative.mm
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ - (instancetype)init

if (appGroupId != nil) {
NSURL *appGroup = [NSFileManager.defaultManager containerURLForSecurityApplicationGroupIdentifier:appGroupId];

rootDir = appGroup.path;
rootDir = [appGroup.path stringByAppendingPathComponent:@"mmkv"];
rPath = rootDir;
[MMKV initializeMMKV:nil groupDir:rootDir logLevel:MMKVLogInfo];
} else {
Expand Down

0 comments on commit 543c79d

Please sign in to comment.