Граф коммитов

307 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho f269ef3de7
[main] Merge release 9.0.1xx to main (#25527)
### Description of Change

Bring latest changes to main from release branch and the new template.
2024-10-26 00:48:49 +01:00
Eilon Lipton 14f33bf4ce
HybridWebView: Invoke .NET methods from JavaScript (#25077)
* Juno: check in to lego/hb_7241b85a-f216-4d55-a9fa-d8030c736df5_20240925231640755. (#24935)

* Cleanup

* WIP: HybridWebView: Invoke .NET methods from JavaScript

* Cleanup

* WIP: Make Windows work end-to-end

* Start adding tests

* Improve tests

* Add Android

* iOS/MacCat

* Suppress

* Suppress

* Try un-rooting HybridWebViewHandler

* Use RuntimeFeature.IsDynamicCodeSupported

* Flip if

* Annotate differently

* Make InvokeJavaScriptType not an auto-property

Fixes:

    ILC: IL2114: Microsoft.Maui.Controls.HybridWebView.<Microsoft.Maui.IHybridWebView.InvokeJavaScriptType>k__BackingField: 'DynamicallyAccessedMembersAttribute' on 'Microsoft.Maui.Controls.HybridWebView' or one of its base types

* Revert "Make InvokeJavaScriptType not an auto-property"

This reverts commit d8552206eb4a7f39bea3ac1c3d71ce9373e88338.

* Introduce Microsoft.Maui.RuntimeFeature.IsHybridWebViewSupported

* Update FeatureSwitches.md

* Fix [UnconditionalSuppressMessage] on Windows

* Missed a spot on Windows

* Seeing if `!RuntimeFeature` is an issue

* %(Trim) was inverted!

* Move [RUC] and [RDC] to types

* Only check RuntimeFeature.IsHybridWebViewSupported in one place

* Update MauiHybridWebView.cs

* Update HybridWebViewHandler.Windows.cs

* Duplicate `Microsoft.Maui.RuntimeFeature`

* Fix `_invokeJavaScriptType` field

* Expect 1 warning

---------

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2024-10-22 12:59:03 -05:00
Rui Marinho 6cae413891 Fixes for spellcheck 2024-10-17 22:31:40 +01:00
Rui Marinho 8d47b8c258 Merge branch 'main' into net9.0
# Conflicts:
#	.config/dotnet-tools.json
#	eng/Version.Details.xml
#	eng/Versions.props
#	src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs
#	src/Controls/tests/TestCases.HostApp/Issues/Issue20439.xaml.cs
#	src/Controls/tests/TestCases.HostApp/Issues/Issue3089.cs
#	src/Controls/tests/TestCases.HostApp/Issues/Issue3333.cs
#	src/Controls/tests/TestCases.HostApp/MauiProgram.cs
#	src/Core/src/maui.aar
2024-10-17 12:19:23 +01:00
Rui Marinho 3bc5d5759f
[housekeeping] Move from term "laid out" to "arranged" (#25250) 2024-10-15 11:21:04 +02:00
Šimon Rozsíval 0d0f25adc3
[XC] Add feature switch to enable compiling bindings with source (#24924)
* Add feature switch for compilation of bindings with source

* Add tests

* Improve binding context type mismatch error messages

* Enable compilation of bindings with source in tests

* Enable the feature switch in tests

* Fix propagating CompileBindingsWithSource via ILContext
2024-09-27 22:25:55 +01:00
Matthew Leibowitz e43542007d Merge branch 'main' into merge-main-into-net9-again
# Conflicts:
#	eng/Version.Details.xml
#	eng/Versions.props
#	eng/devices/ios.cake
#	src/Controls/src/Core/BindableObject.cs
#	src/Controls/src/Core/Handlers/Items/CarouselViewHandler.Windows.cs
#	src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt
#	src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net-android/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net-ios/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/net/PublicAPI.Unshipped.txt
#	src/Controls/src/Xaml/PublicAPI/netstandard/PublicAPI.Unshipped.txt
#	src/Core/src/Handlers/Application/ApplicationHandler.Android.cs
#	src/Core/src/Handlers/Application/ApplicationHandler.cs
#	src/Core/src/Platform/iOS/LabelExtensions.cs
#	src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/net/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt
#	src/Core/src/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt
#	src/Essentials/src/HapticFeedback/HapticFeedback.ios.cs
#	src/Essentials/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/net/PublicAPI.Unshipped.txt
#	src/Essentials/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt
#	src/Essentials/src/WebAuthenticator/WebAuthenticator.ios.tvos.cs
2024-09-19 01:15:51 +08:00
Eric 89b11fe007
Update TriageProcess.md (#24646) 2024-09-10 00:10:27 +08:00
dustin-wojciechowski 84e46ba892
UI testing doc changes (#24165)
* Added note to ignore device tests

* Update note for new devs, Added section on VerifyScreenshots, Explanation about AutomationId

* Removed Fixture Setup/Teardown

* Moved paragraphs around and added new subheadings to make it easier to read. Used correct formatting for class names. Removed GalleryPage content. Removed some redundant content.

* Added note about FailsOn attribute, elaborated on DeviceTests note

* Fixed spelling errors

* Alternate word

* Added back the bit about GalleryPage

* Fixed incorrect link for DeviceTests, added bit about Issue text

* Redid intro

* Added screenshots to the VerifyScreenshots section

* Removed section

* Added info about logging

* Fixed screenshot tags

* One more tag fix

* Fixed spelling, added some syntax formatting

* Addressed comments

* Changed links to permalinks

* Added pic of failed test screenshot
2024-09-05 10:13:16 -05:00
Shane Neuville 6a0e5042f0 Merge branch 'main' into merge_main
# Conflicts:
#	src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt
#	src/Controls/tests/TestCases.HostApp/Issues/Issue23029.xaml
#	src/Controls/tests/TestCases.HostApp/Issues/Issue23029.xaml.cs
2024-06-29 16:39:34 -05:00
Matthew Leibowitz e708567eb2
Renamed the project because macOS uses .app (#23223)
* Renamed the project because macOS uses .app

* And the folder

* merge first

* ns
2024-06-25 11:36:25 +02:00
Shane Neuville 2ddcf72681
Simplify Development.md (#23142)
* Simplify Development.md

* Update .github/DEVELOPMENT.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update .github/DEVELOPMENT.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update .github/DEVELOPMENT.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update .github/DEVELOPMENT.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update DEVELOPMENT.md

* - modify and move advanced tips to different file

* Update DEVELOPMENT.md

* Update .github/DEVELOPMENT.md

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Update docs/DevelopmentTips.md

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Update docs/DevelopmentTips.md

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* - updates based on review

---------

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2024-06-24 19:44:46 +02:00
Šimon Rozsíval 27a83b72f5
Enable Binding inteceptors source generator by default (#22856)
* Enable the BindingSourceGen analyzer by default

* Improve filtering of SetBinding overloads

* Add feature switch documentation

* Revisit feature switch name

* Update docs/design/FeatureSwitches.md

Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>

---------

Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>
2024-06-24 17:17:54 +02:00
Rui Marinho a2dab757a7 Merge branch 'main' into merge-main-net9
# Conflicts:
#	NuGet.config
#	eng/Version.Details.xml
#	eng/Versions.props
#	eng/common/templates-official/job/source-index-stage1.yml
#	eng/common/templates/job/source-index-stage1.yml
#	global.json
#	src/Core/src/Converters/EasingTypeConverter.cs
2024-06-11 17:18:35 -07:00
Shane Neuville 927bc98ef1
Move docs to wiki (#22886)
* Move docs to wiki

* add title
2024-06-06 15:42:04 +02:00
Rui Marinho 2e19779bde
[net9.0] Merge main net9.0 bring arcade (#22447)
### Description of Change

Merge main and bring arcade
2024-05-27 19:47:04 +01:00
Šimon Rozsíval 0ce8c6ec35
[Trimming] Remove feature switch which is not necessary anymore (#22524)
* Remove feature switch for XAML runtime parsing

* Suppress trim analysis errors in BindablePropertyConverter

* Fix warning code

* Suppress warning for getting the ObsoleteAttribute which might be removed by the trimmer
2024-05-24 15:01:02 +01:00
Rui Marinho f42bdc8a36 Merge branch 'main' into merge-main-net9
# Conflicts:
#	src/Controls/tests/TestCases.Android.Tests/Controls.TestCases.Android.Tests.csproj
#	src/TestUtils/src/DeviceTests.Runners/TestUtils.DeviceTests.Runners.csproj
2024-05-16 16:16:40 +01:00
Javier Suárez 2d769c4091
[Testing] Split up current appium tests into separate projects (#21908)
* Split up current appium tests into separate projects

* Updated samples sln

* More updates on slns

* More changes

* More fixes

* More changes

* More changes

* More changes

* More changes

* Trying to fix Windows project build

* not needed

* revert

* this

* undo

* this

* add it all back

* fixes

* eventually

* huh?

* this

* builds at least

* this

* ui tests

* this

* More changes

* Added uitest project by platform

* Remove IgnoreIfPlatforms

* Changes in the uitests yml

* Updated slnfs

* Fix format errors

* Added samples slnf

* Recover UITest single project

* Updated solutions

* Updated project references in uitests yml

* Added removed UITests comments

* Removed unnecesary changes

* Revert more unneccesary changes

* Fixed build error on macOS

* More changes

* Fix wrong namespace

* Fix deploy issues

* Fix wrong test app path

* Fixed test project paths

* Moved snapshots

* Fix merge issues

* Remove more IgnoreIfPlatforms methods

* Fix merge issue

* Fix build errors

* hmmm

* Maybe this?

* unifi

* Update Microsoft.Maui-vscode.sln

* Updated test

* More fixes

* More fixes

* Updated projects

* Update cake scripts

* More changes

* Fixes in project tests path

* More fixes

* Moved snapshots

* Updated snapshots tests used path

* More changes

* More pending changes

* Fixes the golden tests

* More changes in tests

* Renamed test projects

* More changes

* Updated test

* Fix build error

* More updates

* Renamed projects

* More changes

* Move more projects

* More changes

* Fixed build errors

* Fixed error on mac sln

* More changes

* Updated App path

* - move testcases app into tests folder

* - fix project references

* - add missing targets file

* - fix tizen manifest

* - additional props

* Updated UITesting md

* Updated Development md

* More docs updates

---------

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2024-05-16 13:20:07 +02:00
Jonathan Peppers a45f7021b7
[build] make `TrimMode=full` function like NativeAOT (#22282)
Context: https://github.com/xamarin/xamarin-android/pull/8805
Context: https://github.com/xamarin/xamarin-macios/pull/20354

In .NET 9, we want .NET MAUI applications to be able to use the
`TrimMode=full` option to remove unused code from the application:

    <PropertyGroup Condition="'$(Configuration)' == 'Release'">
      <TrimMode>full</TrimMode>
    </PropertyGroup>

With all the trimming work done to support NativeAOT, we should toggle
the same options when `TrimMode=full` is used:

* `MauiStrictXamlCompilation=true`
* `MauiXamlRuntimeParsingSupport=false`
* `MauiShellSearchResultsRendererDisplayMemberNameSupported=false`
* `MauiQueryPropertyAttributeSupport=false`
* `MauiImplicitCastOperatorsUsageViaReflectionSupport=false`

With these set, the `dotnet new maui` project template *should* have
zero trimmer warnings when `TrimMode=full` is used. Developers can also
adjust these settings and respond to trimmer warnings in their own code.

I also updated `RunOnAndroid` and `RunOniOS` tests to verify that
project templates launch successfully with `TrimMode=full`.

Note:

* Skip `maui-blazor` on iOS for now, as it contains trimmer warnings.
2024-05-10 08:33:12 -05:00
Rui Marinho 3f62dae172 Merge branch 'main' into merge-main-net9
# Conflicts:
#	GitInfo.txt
#	eng/Version.Details.xml
2024-04-17 15:55:05 +01:00
Shane Neuville d9226a52c4
Update UITesting.md (#21815) 2024-04-13 11:39:12 -05:00
Šimon Rozsíval 10dbf264ec
Remove new TypeConversionAppBuilderExtensions API (#21459)
* Remove new TypeConversionAppBuilderExtensions API

* Remove leftover code
2024-03-27 08:14:35 +01:00
Šimon Rozsíval 795931d8f1
[Trimming] Use type converters instead of implicit cast operators (part 1/2) (#21050)
* Add feature switch

* Implement TypeConversionHelper

* Remove fixed warnings

* Make the new API public

* Extend the example in the docs

* Improve annotations

* Only use type converters when the feature flag is off
2024-03-26 16:08:43 +00:00
Rui Marinho 783f5acb47
Merge branch 'main' into merge-net9-main
# Conflicts:
#	GitInfo.txt
#	eng/Version.Details.xml
2024-03-12 12:31:19 +00:00
MartyIX 1252f0068d
Update layout.md (#20964)
Typo
2024-03-04 09:31:48 +01:00
Šimon Rozsíval 4c3a09c249
[Trimming] Use typed bindings internally (#20567)
* Replace Bindings with TypedBindings

* Add feature switch to disable shell search results renderer default item template

* Remove fixed warnings

* Remove unnecessary setters

* Disable just DisplayMemberName

* Change exception to a warning

* Throw exception when DisplayMemberName is used

* Make DisplayMemberName obsolete
2024-02-29 20:15:22 +00:00
Rui Marinho e4d6e9f21a
Merge branch 'main' into merge-main-to-net9
# Conflicts:
#	eng/Version.Details.xml
#	eng/Versions.props
#	eng/devices/windows.cake
#	eng/pipelines/common/ui-tests.yml
#	src/Controls/src/SourceGen/CodeBehindGenerator.cs
2024-02-27 12:57:27 +00:00
Ikko Eltociear Ashimine bd3436197b
Update layout.md (#20825)
arbitary -> arbitrary
2024-02-26 13:22:57 +01:00
Šimon Rozsíval e8a4b28f08
[Trimming] Disable query property assignment via reflection on NativeAOT (#20731)
* Add runtime feature

* Annotate the QueryPropertyAttribute with RequiresUnreferencedCode

* Put application of QueryPropertyAttribute behind a feature switch

* Remove fixed warnings

* Update src/Controls/src/Core/TrimmerConstants.cs

Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>

---------

Co-authored-by: Jonathan Peppers <jonathan.peppers@gmail.com>
2024-02-22 11:47:36 +00:00
Šimon Rozsíval e214c279d5
[Trimming] Disable assembly scanning for types implementing IVisual (#20417)
* Disable assembly scanning for IVisual using a feature switch

* Remove the fixed warnings from the list of expected warnings

* Fix RunOniOS test
2024-02-09 15:50:35 +00:00
Šimon Rozsíval a1096cc2ad
[Trimming] Add a feature flag to disable XAML loading at runtime (#19310)
* Add feature flag

* Add rudimentary docs for feature flags

* Add feature flag guards and attributes with warnings

* TMP: Add TODO comment to resolve issue with XamlC calling SetAndLoadSource

* Move feature flags to Core

* Fix typos

* List affected APIs in the docs

* Add summary comment for RuntimeFeature

* Improve ResourceDictionary.SetAndLoadSource

* Fix comment

* Rename feature switch property and name

* Remove comment

* Revisit ResourceDictionary

* Remove annotations from ResourcesLoader

* Remove fixed warnings from tests

* Remove unnecessary changes

* Update docs/design/FeatureSwitches.md

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

* Move feature switch setup code to Controls targets file

* Remove ILC System.Enum.GetValues warning

* Remove unnecessary Debug fallback

* Suppress trimming warnings in source-generated code

* Update docs/design/FeatureSwitches.md

Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
2024-02-07 16:00:04 +00:00
E.Z. Hart 3890e04e0c
Add basic docs for ScrollView implementations (#19766)
* Add basic docs for ScrollView implementations

* Add more detail about platform differences

* Update spellcheck workflow

* Fix typo

---------

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2024-01-16 14:42:07 +00:00
E.Z. Hart 7e2583c624
Add missing AbsoluteLayout section to layout architecture doc (#19841) 2024-01-12 12:08:04 -05:00
E.Z. Hart 60c5a156e2
Add note about ClipsToBounds/IsClippedToBounds (#16833) 2023-08-19 12:48:32 +01:00
Scott Banning efbd3bb957 Add issue test for example 2023-07-12 11:36:33 -07:00
Scott Banning dccfaf072e Add product names to cspell word list and add csharp to markdown code section 2023-07-05 12:54:04 -07:00
Scott Banning a8f1c97baf Start docs for UITesting 2023-06-23 15:33:42 -07:00
E.Z. Hart 554b2f8daf
Include section about OnSizeAllocated (#15617) 2023-06-14 11:57:28 +01:00
E.Z. Hart b7afc3b1a6
Add Forms->MAUI differences notes to layout dev docs (#15551) 2023-06-14 05:06:12 +08:00
E.Z. Hart 7bc2e25373
First pass at adding developer layout docs (#15426)
* First pass at adding developer layout docs

* Update docs/design/layout.md

Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>

---------

Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
2023-06-07 11:21:39 +01:00
Matthew Leibowitz 2dcc148208
Make MAUI into 1 workload and lots of NuGets instead of a full workload (#11206)
### Description

This change moves most - if not all - the logic, assemblies, build tasks, targets and props into NuGet packages. This allows .NET MAUI to be usable without having to care about what version of the workload is installed.

There are still a few things - mostly the automagic and Windows fixes - in the workload pack, but this is probably temporary and/or non-essential for the working of the build. Things like the project capabilities are still in the workload as this is needed for the IDE and cannot be in NuGet packages.

Everything else is now inside a NuGet package that can be upgraded, pinned and otherwise used without requiring VS to have installed the workload to match. There is the benefit of the NuGet packages being installed on disk and thus reducing/removing the need to download. But that is minimal now since we have smaller and fewer packages.
2023-02-07 15:09:25 +02:00
Matthew Leibowitz 3faf9ff033
Add API changes doc (#11768)
* Add API changes doc

* spelling

* more words

* try this now

* =

* sadf

* Update docs/design/APIChangeTracking.md

Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>

* Update docs/design/APIChangeTracking.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update docs/design/APIChangeTracking.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update docs/design/APIChangeTracking.md

Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>

* Update APIChangeTracking.md

Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
Co-authored-by: Eilon Lipton <Eilon@users.noreply.github.com>
2022-12-01 18:53:42 +00:00
Gerald Versluis b03e06d032
Update CodeDocumentationGuidelines.md 2022-10-20 21:18:29 +02:00
Sean Killeen 5b5e7a6a02
Add Automated docs spellcheck via GitHub Actions (#10774)
* github action

* cSpell config

* fixes: "prioritization", pre-release, up-vote
2022-10-19 11:21:01 +01:00
Gerald Versluis ab50f820e8
Add guidance how to test code documentation (#10692) 2022-10-17 10:15:06 +01:00
Gerald Versluis 28e41d8574
Add inline code documentation guidelines (#10465)
* Add  code documentation guidelines

* Update CodeDocumentationGuidelines.md

* Apply suggestions from code review

Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com>

Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com>
2022-10-07 15:04:12 -06:00
Marc Mognol fd97d8bb2c
Add release 6.0.536 (#10129)
Add release 6.0.536
2022-10-05 23:59:19 +08:00
Marc Mognol 86fe2522ef
Fix typo (#10187) 2022-09-19 11:13:37 +01:00
Gerald Versluis 5bf1c69e65
Add Release Schedule doc (#9982)
* Create ReleaseSchedule.md

* Update README.md

* Update ReleaseSchedule.md
2022-09-09 11:20:01 +02:00