Parcourir la source

we don't need to set the group path anymore

Tobias Conradi il y a 10 ans
Parent
commit
e42cf32ca4
1 fichiers modifiés avec 0 ajouts et 11 suppressions
  1. 0 11
      VLC for iOS WatchKit Extension/VLCPlaylistInterfaceController.m

+ 0 - 11
VLC for iOS WatchKit Extension/VLCPlaylistInterfaceController.m

@@ -43,18 +43,7 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db
 - (void)awakeWithContext:(id)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];
-    mediaLibrary.libraryBasePath = groupURL.path;
     mediaLibrary.additionalPersitentStoreOptions = @{NSReadOnlyPersistentStoreOption : @YES};
 
     if (context == nil) {