Fix EveryFrameworkSmokeTests test with MediaPlayerLibrary (#1418)

This commit is contained in:
Chris Hamons 2016-12-28 08:46:46 -06:00 коммит произвёл GitHub
Родитель ab2548a115
Коммит cdf3915704
4 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -95,6 +95,7 @@ namespace XamCore.Foundation {
static IntPtr io = Dlfcn.dlopen (Constants.ModelIOLibrary, 1);
static IntPtr nc = Dlfcn.dlopen (Constants.NotificationCenterLibrary, 1);
static IntPtr pl = Dlfcn.dlopen (Constants.PhotosLibrary, 1);
static IntPtr mp = Dlfcn.dlopen (Constants.MediaPlayerLibrary, 1);
#endif
// ** IF YOU ADD ITEMS HERE PLEASE UPDATE linker/ObjCExtensions.cs and mmp/linker/MonoMac.Tuner/MonoMacNamespaces.cs

Просмотреть файл

@ -68,6 +68,7 @@ namespace Xamarin.Mac.Tests
case "SpriteKitLibrary":
case "PhotosLibrary":
case "IntentsLibrary":
case "MediaPlayerLibrary":
return LoadStatus.Acceptable;
}
}

Просмотреть файл

@ -67,6 +67,7 @@ namespace Xamarin.Linker {
SceneKit = profile.GetNamespace ("SceneKit");
ScriptingBridge = profile.GetNamespace ("ScriptingBridge");
WebKit = profile.GetNamespace ("WebKit");
MediaPlayer = profile.GetNamespace ("MediaPlayer");
#else
Registrar = profile.GetNamespace ("Registrar");
UIKit = profile.GetNamespace ("UIKit");
@ -147,6 +148,7 @@ namespace Xamarin.Linker {
public static string ScriptingBridge { get; private set; }
public static string WebKit { get; private set; }
public static string MediaPlayer { get; private set; }
#else
public static string Registrar { get; private set; }

Просмотреть файл

@ -64,7 +64,8 @@ namespace MonoMac.Tuner {
{ Constants.FinderSyncLibrary, Namespaces.FinderSync },
{ Constants.NotificationCenterLibrary, Namespaces.NotificationCenter },
{ Constants.SceneKitLibrary, Namespaces.SceneKit },
{ Constants.StoreKitLibrary, Namespaces.StoreKit } };
{ Constants.StoreKitLibrary, Namespaces.StoreKit },
{ Constants.MediaPlayerLibrary, Namespaces.MediaPlayer } };
public void Process (LinkContext context)
{