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

16054 Коммитов

Автор SHA1 Сообщение Дата
Mike Corsaro d70614c82c Merge branch 'main' into foda/NavCrash 2024-11-07 10:16:21 -08:00
Shane Neuville bd61427448
Disable NSToolbar Tabs (#25137) (#25700)
* Disable NSToolbar Tabs

* - fix OS check

* - fix tabbedview extentions PR

* - bump targets

* - add missing file

* - add if/def for NET18.0 target

* - add catalyst check

* - switch to newer APIs for iOS and catalyst 18+

* - if/def for iOS18
# Conflicts:
#	src/Core/src/Platform/iOS/TabbedViewExtensions.cs
2024-11-07 06:22:58 -06:00
Rui Marinho 6f1322bdfd
[ci] Fix provisioning with sudo (#25722)
* try with sudo

* dont do doctor
2024-11-07 10:56:44 +00:00
Rui Marinho 27c4f7901a
Try not run on arm64 (#25701)
* Try not run on arm64

* Add timeouts

* Increase the timeout to 30 min on template tests
2024-11-06 23:22:46 +00:00
Javier Suárez e720f1e5f0
[Testing] Reenable test ported from Xamarin.UITest (#25624)
* Reenable test ported from Xamarin.UITest

* Added Category

* Updated test

* More changes
2024-11-06 14:34:52 +01:00
Gerald Versluis 6a65d5e444
Fix minor online API docs warnings (#25685) 2024-11-06 12:54:54 +01:00
Shane Neuville 1412b38245
Skip invalidation on propagation (#25652)
* Skip Invalidation unless you're my immediate child

* - fix override on test

* Fix Legacy Layouts Invalidation Propagation

* - use invalidation args to propagate depth
2024-11-05 11:46:42 -06:00
Bret Johnson 421e8d6c21
Update developer doc to direct installing VS 17.12 or newer, not 17.10 (#25678)
You are really supposed to use 17.12 for .NET9 support.
Also, when I used 17.11, though it mostly worked, I saw the error "The 'interceptors' feature is not enabled in this namespace. Add '<InterceptorsNamespaces>...". That error went away when moving to 17.12 P5.

Co-authored-by: Bret Johnson <bretjohn@microsoft.com>
2024-11-04 22:31:21 +00:00
Peter Spada 76a76fbaef
For Android, respect Minimum/Maximum size requests even when size is set (#25164)
### Description of Change

This change is for Android layout only: Clamp the final width/height
within the minimum/maximum sizes. Since the layout mode is being set to
`MeasureSpecMode.Exactly`, we need to give Android the exact final
measurement, it will not take minimum/maximum size requests into
account.

See the bug for full info.

### Issues Fixed

Fixes:
* https://github.com/dotnet/maui/issues/25163
2024-11-04 08:36:19 -08:00
Rui Marinho 3725647aba
[ci] Templates need xcodeselect (#25640)
* [ci] Templates need xcodeselect

* try this

* Just set xcode on the macs

* Remove old xamarin settings if they exist

fix

* try install runtime iOS18
2024-11-04 16:32:01 +00:00
Šimon Rozsíval ff86add506
[X] Delay binding context type check until relative binding source is resolved (#25600)
* Delay binding context type check until relative binding source is resolved

* Add test

* Fix test name

* Check that we produce a warning when there is a mismatch

* Make the exception message exactly the same between compiled and non-compiled binding
2024-11-04 16:15:58 +01:00
Jakub Florkowski e8c96c5087
[iOS] Frames' content update (#20501)
* [iOS] Fixed updating frame's content (#19127)

* Added a UiTest (#19127)

* Code refactor

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2024-11-02 08:17:39 -05:00
Mike Corsaro 99f06887e4 Create work-around for navigation crash on windows 2024-11-01 13:21:07 -07:00
Jonathan Dick 1ddd9a0e39
Android: Opt out of edge to edge enforcement on api 35+ (#25517)
Android 35+ enforces apps extending "Edge to Edge" by default. See
https://github.com/dotnet/maui/issues/24742 for details.

For now, a better compromise is to disable this by default in MAUI apps,
until we can provide better support for edge to edge within .NET MAUI
itself as well as better safe area insets on Android.

If you still want to manually make your app more compatible with edge to
edge, you can disable this implicit opt out by overriding the default
theme, changing the `maui_edgetoedge_optout` attribute to `false` and
the theme yourself:

```xml
<style name="MainThemeEdgeToEdge" parent="Maui.MainTheme.NoActionBar">
   <item name="maui_edgetoedge_optout">false</item>
</style>
```

And then applying the theme by calling it before the `base.OnCreate(..)`
in your activity subclass (in the OnCreate method override):

```csharp
protected override void OnCreate(Bundle? savedInstanceState)
{
    SetTheme(Resource.Style.MainThemeEdgeToEdge);

    base.OnCreate(savedInstanceState);
}
```

This also fixes a previous bug where we were always switching the theme
based on the presence of the `maui_splash` attribute, not the actual
value of the attribute.

Finally, it moves more calls into native android and reduces the
boundary crossing for this specific method.



The new "Default" of opting out of the Edge to Edge enforcement on an
Android 35+ device looks now like this:

![Screenshot_1729819287](https://github.com/user-attachments/assets/15ddc7fc-9334-4f92-82de-c0b7e19921db)

If you revert to the old behaviour by disabling the opt out, it will
look like this:

![Screenshot_1729819354](https://github.com/user-attachments/assets/1770259e-0a9e-49ea-860e-37e6131a09c4)
2024-11-01 14:45:42 -04:00
Rui Marinho 0d3d8715cf
Try skip provisionator (#25615)
don t do xcode

No secrets

Skip provisioning on templates

Skip for uitests

Try xcode select

try again

Fix yml

fix sikpXcode

fix variable

again

Fix skip xcode
2024-11-01 12:44:24 +00:00
redth e713258c18 Merge branch 'main' into dev/redth/android-edgetoedge-optout 2024-10-31 14:45:23 -04:00
redth bd46110aa3 Fix attr type 2024-10-31 14:44:05 -04:00
redth 2e43c5e018 Fix copy/pasta commment 2024-10-31 14:42:19 -04:00
Rui Marinho 2b36322fd1
[main] Merge release 9.0.1xx to main (#25589) 2024-10-31 18:35:59 +00:00
redth fb788244f0 Refactor edge opt out into attribute
We can now inherit the maui theme and override the `maui_edgetoedge_optout` value in the new theme and it will do the right thing.
2024-10-31 14:32:39 -04:00
redth b5491d96ae Move oncreate to platform interop
This moves most of our MauiAppCompatActivity override into a platform interop method.

The other key change is switching how we check for the maui_splash attribute.  Previously we were really just resolving that it exists, not checking the actual value, so the theme was always going to be switched out.

This should 'fix' the splash attribute check.
2024-10-31 14:32:00 -04:00
Rui Marinho 1fbe8c16a2 Update NuGet.config 2024-10-31 16:08:16 +00:00
Rui Marinho 309e9db304 Update NuGet.config 2024-10-31 15:58:15 +00:00
redth eed87350a5 No need for a MainTheme base 2024-10-31 11:55:22 -04:00
redth eebc3f3a82 Remove prev approach 2024-10-31 10:22:17 -04:00
redth 6b474a5179 Refactor themes to default on v35+ to edge to edge opt out 2024-10-31 10:21:17 -04:00
Javier Suárez d91ba8e19e
[Testing] Implement Pinch gestures in UITest extensions methods (#25316)
* Implement Pinch gestures in UITest extensions methods

* Updated test

* Updated test

* More changes

* Apply suggestions from code review

---------

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2024-10-31 14:29:54 +01:00
Javier Suárez 2077463aac
[Testing] More Appium actions (#25569)
* More Appium actions

* Fixed build

* Update src/TestUtils/src/UITest.Appium/HelperExtensions.cs

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

* Update src/TestUtils/src/UITest.Appium/HelperExtensions.cs

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

* Update src/TestUtils/src/UITest.Appium/HelperExtensions.cs

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

* Update src/TestUtils/src/UITest.Appium/HelperExtensions.cs

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

---------

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2024-10-31 10:50:24 +00:00
Javier Suárez 8e603a4f36
[Testing] Enabling ported UITests from Xamarin.UITests to Appium #2 (#25378)
* Fix up

* - fix

* More changes (fix build)

* Fixed build errors

* More fixes

* More changes

* More changes

* More changes

* Fixed build error

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2024-10-31 10:35:52 +01:00
Rui Marinho cb38cfbc27
[ci] Skip provisioning extra (#25605)
* [ci] Skip provisioning when doing the pack

* Add it to handlers

* Try skip the variables

* Update provision.yml

* Update versions
2024-10-30 21:50:18 +00:00
Shane Neuville ff813a9fd0 Merge branch 'release/9.0.1xx' into merge_main
# Conflicts:
#	NuGet.config
#	eng/Version.Details.xml
#	eng/Versions.props
2024-10-30 16:13:05 -05:00
Gerald Versluis aeda29063f
Remove all To be added. from API docs (#25595) 2024-10-30 15:58:33 -05:00
dotnet-maestro[bot] 33b737d0b0
Update dependencies from https://github.com/dotnet/xharness build 20241024.9 (#25553)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 10.0.0-prerelease.24514.1 -> To Version 10.0.0-prerelease.24524.9

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-10-30 15:22:44 +00:00
Vignesh-SF3580 33042f1796
[Windows] Fixed TextCell Command executes only once (#25066)
* Fixed-21112 : TableView TextCell command executes only once

* added test cases.

* updated testcases.

* updated Issues/Issue21112.cs

* Updated testcases.

* updated testcases.

* testcases updated.

* updated testcases.

* viewmodel name updated with IssueId.
2024-10-30 09:37:59 -05:00
Tamilarasan Paranthaman 1e821b01f2
[Testing] Written UI test for the issue resolved in PR 25453 (#25573)
* Automation sample for 25453.

* Simplified the sample.

* Removed platform conditions.
2024-10-30 09:36:08 -05:00
github-actions[bot] d18a510ef0
Juno: check in to lego/hb_7241b85a-f216-4d55-a9fa-d8030c736df5_20241029212245301. (#25593)
Co-authored-by: CSIGS-ExpiresOn-12-15-2024 <csigs@outlook.com>
2024-10-30 12:15:47 +00:00
github-actions[bot] 1c3e341bf1
Juno: check in to lego/hb_7241b85a-f216-4d55-a9fa-d8030c736df5_20241029171919460. (#25584)
Co-authored-by: CSIGS-ExpiresOn-12-15-2024 <csigs@outlook.com>
2024-10-30 12:15:28 +00:00
Javier Suárez 8d00e9b48b
[Testing] Added UITests method overrides allowing the use queries (#25559)
* Added UITests method overrides allowing the use queries

* More changes
2024-10-30 12:32:25 +01:00
Rui Marinho 9b4e90ee04
[ci] bump net8 maui (#25592) 2024-10-29 19:03:58 -05:00
Rui Marinho 5be73796af
Bump aspnet 8.0.10 (#25586) 2024-10-29 17:25:23 -05:00
Shane Neuville b7e4c274dc
Fix task clearing (#25588) 2024-10-29 15:36:49 -05:00
Jonathan Dick 0d9392136e
Fix missing SeedData (#25582) 2024-10-29 15:00:47 -04:00
Shane Neuville c016bdc5a0
Update ManageMetaPageModel.cs 2024-10-29 13:33:18 -05:00
Shane Neuville 9d708694e2 - remove if/def 2024-10-29 13:31:20 -05:00
Shane Neuville 39f1b9ceb8
Fix missing SeedData 2024-10-29 13:27:33 -05:00
Shane Neuville d5e4ed50ff
Fix toast (#25580)
* Fix toast

* Update ManageMetaPageModel.cs
2024-10-29 13:10:21 -05:00
Shane Neuville 9769a5eb36
Template fixes (#25577)
* Fix project saving and data seeding

* Update ProjectDetailPageModel.cs
2024-10-29 11:43:07 -05:00
Šimon Rozsíval 769bb21bc1
[Windows] Improve AOT compatibility on Windows (#25476)
* Remove warning suppressions

Remove unnecessary rsp files

* Make CsWinRT happy by making classes partial and allowing unsafe blocks

* Use generic Marshal.SizeOf

* Use source generated JSON serialization

---------

Co-authored-by: Simon Rozsival <srozsival@microsoft.com>
2024-10-29 14:34:26 +00:00
Rui Marinho 1c84c4466f
[ci] Specify windows image (#25568) 2024-10-29 14:30:37 +00:00
Javier Suárez 734c3d2606
[Testing] Enabling ported UITests from Xamarin.UITests to Appium #1 (#25178)
* Enabling ported ui tests from Xamarin.UITests to appium

* Build fixes

* Update Bugzilla32040.cs

* Update Bugzilla32148.cs

* Removed unnecessary code

* Update Bugzilla25662.cs

* Update Bugzilla26171.cs

* Update Bugzilla26501.cs

* Update Bugzilla28001.cs

* Update Bugzilla30317.cs

* Update Bugzilla32462.cs

* Update Bugzilla33870.cs

* Some fixes

* More changes

* More changes

* Simplified more tests

* Fix build

* Simplified tests

* Fixed test

* Added new project constants

* More changes

* More fixes

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2024-10-29 12:47:39 +01:00