Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unsupported targets in Device class #4491

Merged
merged 19 commits into from
Mar 3, 2022

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Targets not supported by .NET MAUI like GTK, WPF, UWP have been marked as internal. WinUI has also been added as a target.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

Does this PR touch anything that might affect accessibility?

  • No

@jsuarezruiz jsuarezruiz added the area-xaml XAML, CSS, Triggers, Behaviors label Feb 3, 2022
@mattleibow
Copy link
Member

The whole UWP to WinUI makes me think about the compatibility story. Everyone will need to update all their XAML for this.

@mattleibow
Copy link
Member

Whatever we do here, we need to match in the essentials DeviceInfo API because this is going to use that eventually with #1965

@mattleibow mattleibow added this to the 6.0.300-preview.14 milestone Feb 7, 2022
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unitests are failing

@rmarinho rmarinho self-requested a review February 21, 2022 18:43
@jsuarezruiz
Copy link
Contributor Author

Pending questions:

  • Should we mark as obsolete the unsupported platforms? (In addition to mark them as internal).
  • Should we use "WinUI" or "Windows App SDK" as target?

@Redth
Copy link
Member

Redth commented Feb 22, 2022

  1. Let's make UWP marked obsolete but have it imply and be equivalent to WinUI
  2. Mark the unsupported platforms internal - unless there's a compelling reason to make them still 'compile/run' but not do anything?
  3. WinUI as the string

@mattleibow
Copy link
Member

We can maybe remove UWP in net7

@jsuarezruiz
Copy link
Contributor Author

We can maybe remove UWP in net7

@Redth Maintain UWP until .NET 7?

@rmarinho
Copy link
Member

mark UWP as Obsolete

@mattleibow mattleibow changed the base branch from main to release/6.0.2xx-preview14 March 3, 2022 16:45
@@ -94,6 +94,51 @@ public void TypeConverterAndDerivedTypes()
image = new Image().LoadFromXaml(xaml);
Assert.AreEqual("icon_twitter.png", (image.Source as FileImageSource).File);
}

[Test]
public void UWPisWinUI()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@Redth Redth merged commit fefa81f into release/6.0.2xx-preview14 Mar 3, 2022
@Redth Redth deleted the device-targets branch March 3, 2022 20:06
@Redth Redth mentioned this pull request Mar 3, 2022
18 tasks
Redth added a commit that referenced this pull request Mar 4, 2022
* Implement IBorder on Windows (#5008)

* Implement IBorder on Windows

* Fix rectangles

Co-authored-by: redth <jondick@gmail.com>

* Remove all usage of Device throughout the repo (#4982)

* Remove unsupported targets in Device class (#4491)

* Remove unsupported targets in Device class

* Fixed broken tests

* Deprecate UWP target

* Allow to use UWP target on XAML

* Fix build errors

* comments

* UWP == WinUI

* Fix Build errors

* Added more tests

* fix

* vbnm

* More fixes

* things

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Redth added a commit that referenced this pull request Mar 4, 2022
* Implement IBorder on Windows (#5008)

* Implement IBorder on Windows

* Fix rectangles

Co-authored-by: redth <jondick@gmail.com>

* Remove all usage of Device throughout the repo (#4982)

* Remove unsupported targets in Device class (#4491)

* Remove unsupported targets in Device class

* Fixed broken tests

* Deprecate UWP target

* Allow to use UWP target on XAML

* Fix build errors

* comments

* UWP == WinUI

* Fix Build errors

* Added more tests

* fix

* vbnm

* More fixes

* things

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

* [ci] Remove image override (#5053)

* [ci] Remove image override

* [ci] Don't provisioning windows

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-xaml XAML, CSS, Triggers, Behaviors
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants