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

[net9.0] Bring latest main fixes to net9.0 #20652

Merged
merged 16 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ body:
description: In what version do you see this issue? Run `dotnet workload list` to find your version.
options:
-
- 8.0.6
- 8.0.3
- 8.0.7 SR2
- 8.0.6 SR1
- 8.0.3 GA
- 7.0.101
- 7.0.100
- 7.0.96
Expand Down Expand Up @@ -103,8 +104,9 @@ body:
- 8.0.0-rc.1.9171
- 8.0.0-rc.2.9373
- 8.0.0-rc.2.9511
- 8.0.3
- 8.0.6
- 8.0.3 GA
- 8.0.6 SR1
- 8.0.7 SR2
validations:
required: true
- type: dropdown
Expand Down Expand Up @@ -139,7 +141,7 @@ body:
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
description: Including a binary log or 'binlog' to your issue (see [Capturing Binary Logs](https://github.com/dotnet/maui/wiki/Capturing-Binary-Logs) for more info) is helpful in diagnosing your issue. You can also paste any relevant log output below. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: markdown
attributes:
Expand Down
28 changes: 28 additions & 0 deletions THIRD-PARTY-NOTICES.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -493,3 +493,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================


License notice for FFImageLoading
=========================================

(https://github.com/luberda-molinet/FFImageLoading/blob/master/LICENSE.md)

The MIT License (MIT)

Copyright (c) 2015 Daniel Luberda & Fabien Molinet

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
4 changes: 2 additions & 2 deletions eng/pipelines/common/device-tests-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ steps:

- ${{ if eq(parameters.platform, 'ios')}}:
- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: always()
continueOnError: true
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/common/maui-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
steps:

- ${{ each step in parameters.prepareSteps }}:
Expand Down Expand Up @@ -104,9 +103,11 @@ jobs:

- pwsh: ./build.ps1 --target=dotnet-integration-build --verbosity=diagnostic
displayName: Build Microsoft.Maui.IntegrationTests
workingDirectory: ${{ parameters.checkoutDirectory }}

- pwsh: ./build.ps1 --target=dotnet-integration-test --filter="FullyQualifiedName=Microsoft.Maui.IntegrationTests.TemplateTests" --resultsfilename="integration-tests" --verbosity=diagnostic
displayName: Run $(PLATFORM_NAME) templates build tests
workingDirectory: ${{ parameters.checkoutDirectory }}

- task: PublishTestResults@2
displayName: Publish the $(PLATFORM_NAME) templates build tests
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/ui-tests-compatibility-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ steps:
displayName: 'Build the Legacy ControlGallery'

- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: ${{ eq(parameters.platform, 'ios') }}
continueOnError: true
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/ui-tests-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ steps:
displayName: 'Build the samples'

- bash: |
rm -r $HOME/Library/Logs/CoreSimulator/*
rm -r $HOME/Library/Logs/DiagnosticReports/*
if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
displayName: Delete Old Simulator Logs
condition: ${{ eq(parameters.platform, 'ios') }}
continueOnError: true
Expand Down
5 changes: 0 additions & 5 deletions eng/pipelines/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,13 @@ parameters:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
testName: RunOnAndroid
artifact: templates-run-android
- name: $(iosTestsVmPool)
vmImage: $(iosTestsVmImage)
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
testName: RunOniOS
artifact: templates-run-ios

Expand Down Expand Up @@ -170,7 +168,6 @@ stages:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
steps:
- template: common/provision.yml
parameters:
Expand Down Expand Up @@ -213,7 +210,6 @@ stages:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
steps:
- template: common/pack.yml
parameters:
Expand All @@ -240,7 +236,6 @@ stages:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5
steps:
- template: common/provision.yml
parameters:
Expand Down
1 change: 0 additions & 1 deletion eng/pipelines/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ parameters:
demands:
- macOS.Name -equals Ventura
- macOS.Architecture -equals x64
- Agent.OSVersion -equals 13.5


resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Maui.Controls.Sample.Issues.Issue16918"
xmlns:ns="clr-namespace:Maui.Controls.Sample.Issues">
<ScrollView>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<Label
Text="Image (SVG 40x40):"
HorizontalOptions="Center" />
<Image
Source="menu_entry_settings_40.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="40"
HorizontalOptions="Center"
x:Name="MenuImage"
AutomationId="MenuImage"/>

<Label
Text="ImageButton (SVG 40x40):"
HorizontalOptions="Center" />
<ImageButton
Source="menu_entry_settings_40.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="40"
BackgroundColor="Transparent"
HorizontalOptions="Center" />

<Label
Text="Image (SVG 210x210):"
HorizontalOptions="Center" />
<Image
Source="menu_entry_settings_210.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="40"
HorizontalOptions="Center" />

<Label
Text="ImageButton (SVG 210x210):"
HorizontalOptions="Center" />
<ImageButton
Source="menu_entry_settings_210.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="40"
BackgroundColor="Transparent"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;

namespace Maui.Controls.Sample.Issues
{
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 16918, "ImageButton is not properly anti-aliased when scaled down", PlatformAffected.UWP)]
public partial class Issue16918 : ContentPage
{
public Issue16918()
{
InitializeComponent();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Maui.Controls.Sample.Issues.Issue19956"
Title="Issue19956">

<Grid RowDefinitions="Auto,*">
<VerticalStackLayout
Grid.Row="0"
BackgroundColor="DarkOrange">
<Label
Margin="30"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Text="Sticky header panel"
VerticalOptions="Center"
AutomationId="StickyHeader" />
</VerticalStackLayout>
<ScrollView Grid.Row="1">
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Label
Text="1" />
<Entry ReturnType="Next" BackgroundColor="WhiteSmoke" AutomationId="Entry1" />
<Label
Text="2" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry2" />
<Label
Text="3" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry3"/>
<Label
Text="4" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry4"/>
<Label
Text="5" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry5"/>
<Label
Text="6" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry6"/>
<Label
Text="7" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry7"/>
<Label
Text="8" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry8"/>
<Label
Text="9" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry9"/>
<Label
Text="10" />
<Entry ReturnType="Next" BackgroundColor="WhiteSmoke" AutomationId="Entry10"/>
<Label
Text="11" />
<Entry BackgroundColor="WhiteSmoke" AutomationId="Entry11"/>
<Label
Text="12" />
<Entry ReturnType="Next" BackgroundColor="WhiteSmoke" AutomationId="Entry12"/>
</VerticalStackLayout>
</ScrollView>
</Grid>
</ContentPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.ComponentModel;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;

namespace Maui.Controls.Sample.Issues
{
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 19956, "Sticky headers and bottom content insets", PlatformAffected.iOS)]
public partial class Issue19956 : ContentPage
{
public Issue19956()
{
InitializeComponent();
}
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.