This introduces two new integration tests which are testing MAUI compatibility with NativeAOT on iOS.
The added tests will enable us to catch early any regression in compatibility between MAUI iOS and NativeAOT, but also to guide us forward as we progress with: https://github.com/dotnet/maui/issues/18658
### Changes
- Introduced new test cases:
1. `PublishNativeAOT` - tests publishing a template MAUI iOS app with NativeAOT
2. `PublishNativeAOTCheckWarnings` - tests the generated warnings according to https://github.com/dotnet/maui/pull/19194#discussion_r1422072380
- Created a new utility method `DotnetInternal.ConstructBuildArgs` with a common logic for setting up build arguments which is shared between tests calling `Build` and `Publish` targets
- Added `BuildWarningsUtilities.cs` which encapsulates all the logic for parsing, storing and comparing build warnings
NOTE: This should be an initial set of tests verifying our progress in the effort of making MAUI trim-compatible (with NativeAOT). The set can and will be expanded to testing on device, covering support for other iOS-platforms with NativeAOT etc, as we progress.
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
From Version 9.0.0-prerelease.23577.1 -> To Version 9.0.0-prerelease.23606.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Sometimes the Windows tests fail with no apparent reason, hopefully the
slightly reduced complexit and more linear flow makes remote debugging
easier. A specific change to first remove the window content before
removing the view from the container might help.
CollectionView on iOS always applies a gray background color when an item is selected. Even if visual state manager is used, the gray color appears and cannot be changed. This behaviour is preserved it not using VSM & fixed when using VSM (instead there is no color).
* Allow GesturePlatformManager to be created for views with null window property (Embedding case)
* Set _window field to null in DisconnectGestures() of GestureManager
* Replace _window reference with boolean _didHaveWindow
* Remove invalid unit test
* Also setcornerradius if radius is 0. It didn't go into this block and used default cornerradius of 6, when set to 0.
* Added a devicetest for cornerradius on Android
---------
Co-authored-by: Wouter de Bruin <wouter.de.bruin@capgemini.com>
* Use Start-Process to run build.ps1
* Show Start-Process command
* Fix: Comma separator prior to -Script argument
* Dedicated .cake parameter setting for -Script
* Fix: Start-Process: Start 3rd parameter with a quote and not an escaped quote
* Execute build.ps1 under pwsh in bash
* Remove references to Start-Process since that solution did not work
* Execute build.ps1 from bash on Mac only
* [WinUI] Fix resizing CV rows when content size changed
When measuring the ItemContentControl we might not get the right value if the size of its content just changed. In order to ensure we get the up to date value, we first measure the content (to update DesiredSize), and then we measure the ItemContentControl.
Fixes https://github.com/dotnet/maui/issues/18078
* - simplify down measure/arrange calls
* - return ItemHeight/ItemWidth
* - simplify
* Add CV/SwipeView test
* Minor code cleanup
* - add comment
* Fix build
* - cleanup and add tests
* - add tests
* - cleanup
* - add additional measure checking and ignore on iOS for now
* - change to button
* - wait for controls to finish loading
* - add code just in case view is already parented to previous panel
---------
Co-authored-by: Emanuel Fernandez Dell'Oca (from Dev Box) <emafern@microsoft.com>
* fix using UrlWebViewSource with a URL containing a LocalScheme URL on windows that should trigger a call to CoreWebView2.SetVirtualHostNameToFolderMapping()
* fix using HtmlWebViewSource with a BaseUrl containing a LocalScheme URL on windows that should set up virtual host name to folder mapping correctly
* moved checking uri string with local scheme to own static method
* moved checking data uri string to own static method
* replaced ToLowerInvariant() call with StartsWith() parameter StringComparison.OrdinalIgnoreCase
* added test buttons to platform specifics samples for Windows WebView about loading local assets
* changed sample HTML text to use raw string literals
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
* put StartsWith() check on one line
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
* removed flag _navigatingToHtmlWithBaseUrl and directly recognize WebView2 data URI with inserted base tag
---------
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
From Version 9.0.0-prerelease.23570.2 -> To Version 9.0.0-prerelease.23577.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>