Commit e42cf32c authored by Tobias's avatar Tobias Committed by Felix Paul Kühne
Browse files

we don't need to set the group path anymore

parent 39e59916
...@@ -43,18 +43,7 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db ...@@ -43,18 +43,7 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db
- (void)awakeWithContext:(id)context { - (void)awakeWithContext:(id)context {
[super awakeWithContext:context]; [super awakeWithContext:context];
NSURL *groupURL = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.org.videolan.vlc-ios"];
#if TARGET_IPHONE_SIMULATOR
// if something went wrong with the entitlements in the Simulator
if (!groupURL) {
NSArray *pathComponents = [[[NSBundle mainBundle] bundlePath] pathComponents];
pathComponents = [pathComponents subarrayWithRange:NSMakeRange(0, pathComponents.count-4)];
NSString *groupPath = [[NSString pathWithComponents:pathComponents] stringByAppendingPathComponent:@"Shared/AppGroup/fake-group.org.videolan.vlc-ios"];
groupURL = [NSURL fileURLWithPath:groupPath];
}
#endif
MLMediaLibrary *mediaLibrary = [MLMediaLibrary sharedMediaLibrary]; MLMediaLibrary *mediaLibrary = [MLMediaLibrary sharedMediaLibrary];
mediaLibrary.libraryBasePath = groupURL.path;
mediaLibrary.additionalPersitentStoreOptions = @{NSReadOnlyPersistentStoreOption : @YES}; mediaLibrary.additionalPersitentStoreOptions = @{NSReadOnlyPersistentStoreOption : @YES};
if (context == nil) { if (context == nil) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment