Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Core,iOS,Droid,UWP,Tizen] Remove MediaElement (#12007)
Browse files Browse the repository at this point in the history
* [Core,UWP,iOS,Android] Remove MediaElement

* [Tizen] Remove MediaElement

* [WPF] Remove reference to MediaElement

* [Tests] Remove MediaSourceTests

* [Core] Remove MediaSource

* [Tizen] Remove extra files related with MediaElement

* Update ExperimentalFlags.cs

* [Controls] Removing References to MedialElement strings

* [Controls] Remove  reference to MediaElement flag
  • Loading branch information
rmarinho authored Sep 10, 2020
1 parent c05e04d commit 6b816f7
Show file tree
Hide file tree
Showing 42 changed files with 6 additions and 4,238 deletions.
3 changes: 0 additions & 3 deletions Stubs/Xamarin.Forms.Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ internal class _PageRenderer { }
#endif
internal class _MasterDetailPageRenderer { }

[RenderWith (typeof(MediaElementRenderer))]
internal class _MediaElementRenderer { }

[RenderWith(typeof(RefreshViewRenderer))]
internal class _RefreshViewRenderer { }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected override void OnCreate(Bundle bundle)

#if TEST_EXPERIMENTAL_RENDERERS
#else
Forms.SetFlags("UseLegacyRenderers", "SwipeView_Experimental", "MediaElement_Experimental");
Forms.SetFlags("UseLegacyRenderers", "SwipeView_Experimental");
#endif
Forms.Init(this, bundle);

Expand Down
2 changes: 1 addition & 1 deletion Xamarin.Forms.ControlGallery.Tizen/ControlGallery.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static void Main(string[] args)
{
var app = new MainApplication();
FormsMaps.Init("HERE", "write-your-API-key-here");
Forms.SetFlags("CollectionView_Experimental", "Shell_Experimental", "MediaElement_Experimental");
Forms.SetFlags("CollectionView_Experimental", "Shell_Experimental");
Forms.Init(app);
FormsMaterial.Init();
app.Run(args);
Expand Down
2 changes: 1 addition & 1 deletion Xamarin.Forms.ControlGallery.WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class MainWindow : FormsApplicationPage
public MainWindow()
{
InitializeComponent();
Forms.SetFlags("CarouselView_Experimental", "MediaElement_Experimental", "RadioButton_Experimental");
Forms.SetFlags("CarouselView_Experimental", "RadioButton_Experimental");
Xamarin.Forms.Forms.Init();
FormsMaps.Init("");
LoadApplication(new Controls.App());
Expand Down
2 changes: 1 addition & 1 deletion Xamarin.Forms.ControlGallery.WindowsUniversal/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)

rootFrame.NavigationFailed += OnNavigationFailed;

Forms.SetFlags("Shell_UWP_Experimental", "SwipeView_Experimental", "MediaElement_Experimental");
Forms.SetFlags("Shell_UWP_Experimental", "SwipeView_Experimental");
Forms.Init (e);
//FormsMaps.Init (Controls.App.Config["UWPMapsAuthKey"]);

Expand Down
2 changes: 1 addition & 1 deletion Xamarin.Forms.ControlGallery.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary
App.IOSVersion = int.Parse(versionPart[0]);

Xamarin.Calabash.Start();
Forms.SetFlags("SwipeView_Experimental", "MediaElement_Experimental");
Forms.SetFlags("SwipeView_Experimental");
Forms.Init();
FormsMaps.Init();
FormsMaterial.Init();
Expand Down
1 change: 0 additions & 1 deletion Xamarin.Forms.Controls/CoreGallery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ public override string ToString()
new GalleryPageFactory(() => new ListViewDemoPage(), "ListView Demo Gallery - Legacy"),
new GalleryPageFactory(() => new MapGallery(), "Map Gallery - Legacy"),
new GalleryPageFactory(() => new MapWithItemsSourceGallery(), "Map With ItemsSource Gallery - Legacy"),
new GalleryPageFactory(() => new MediaElementDemoPage(), "MediaElement"),
new GalleryPageFactory(() => new MapElementsGallery(), "Map Elements Gallery - Legacy"),
new GalleryPageFactory(() => new MinimumSizeGallery(), "MinimumSize Gallery - Legacy"),
new GalleryPageFactory(() => new MultiGallery(), "Multi Gallery - Legacy"),
Expand Down
190 changes: 0 additions & 190 deletions Xamarin.Forms.Controls/GalleryPages/MediaElementDemoPage.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public void AllBindableElementsInCoreHaveDefaultBindablePropertyOrAreExcluded()
{ typeof(InputView), na },
{ typeof(ItemsLayout), na },
{ typeof(LinearItemsLayout), na },
{ typeof(MediaSource), na },
{ typeof(Menu), na },
{ typeof(MultiTrigger), na },
{ typeof(NavigableElement), na },
Expand Down
92 changes: 0 additions & 92 deletions Xamarin.Forms.Core.UnitTests/MediaElementTests.cs

This file was deleted.

Loading

0 comments on commit 6b816f7

Please sign in to comment.