package expo.modules.av;

import android.content.Context;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import expo.core.BasePackage;
import expo.core.ExportedModule;
import expo.core.ViewManager;
import expo.core.interfaces.InternalModule;
import expo.modules.av.video.VideoManager;
import expo.modules.av.video.VideoViewManager;

public class AVPackage extends BasePackage {

  @Override
  public List<InternalModule> createInternalModules(Context context) {
    return Collections.singletonList((InternalModule) new AVManager(context));
  }

  @Override
  public List<ExportedModule> createExportedModules(Context context) {
    return Arrays.<ExportedModule>asList(
        new AVModule(context),
        new VideoManager(context)
    );
  }

  @Override
  public List<ViewManager> createViewManagers(Context context) {
    return Collections.singletonList((ViewManager) new VideoViewManager());
  }
}

@@ -260,32 +260,113 @@
 InternalModule;%0A
+import expo.modules.av.player.datasource.SharedCookiesDataSourceFactoryProvider;%0A
 import expo.modu
@@ -584,73 +584,112 @@
 urn 
-Collections.singletonList((InternalModule) new AVManager(context)
+Arrays.asList(%0A        new AVManager(context),%0A        new SharedCookiesDataSourceFactoryProvider()%0A    
 );%0A 

Create SharedCookiesDataSourceFactoryProvider internal module (#3648)