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

14374 Коммитов

Автор SHA1 Сообщение Дата
Javier Suárez b69956e45d
[Testing] Add SetSliderValue method to UITest (#19182)
* Added Slider UITest actions

* Updated sample

* More changes

* Updated test
2023-12-05 11:02:57 +01:00
github-actions[bot] e1c1e525dc
[create-pull-request] automated change (#19205)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-05 09:39:26 +00:00
Jeff Handley babeeb28a8
Migrate to the Locker GitHub action for locking closed/stale issues/PRs (#19145) 2023-12-04 11:37:39 +00:00
github-actions[bot] 1ce9628d1e
[create-pull-request] automated change (#19169)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-04 11:35:04 +00:00
Javier Suárez 1f21047a1e
Added volume UITest actions (#19131)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2023-12-04 10:28:32 +00:00
1c3f0x84 b39cd8afe4
Update ShellSectionRenderer.cs (#18945)
* Update ShellSectionRenderer.cs

Fix crash navigating in Shell and trying to get the navbar visibility

* Apply suggestions from code review

* Update src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellSectionRenderer.cs

---------

Co-authored-by: gc <gc@keba.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
2023-12-04 09:13:49 +01:00
Mike Parker 8c370bdc0c
[Catalyst] Allow setting of MaximumTrackColor on Slider when using Mac Idiom (#18990)
* Fix issue 18111

* Added UI test for iOS and Mac Catalyst

* Adding SettingMaximumTrackColorOnSliderWorks.png from CI snapshot for use with VerifyScreenshot

* Update SettingMaximumTrackColorOnSliderWorks so it applies to iOS and Mac specifically

---------

Co-authored-by: Mike Parker <mikeparker104>
2023-12-01 15:15:21 +00:00
Javier Suárez 716c1dd857
[Testing] Add swipe gestures methods to UITest (#19132)
* Added UITest swipe actions

* More comments

* Allowing nullable element

* Updated tests
2023-12-01 14:32:44 +01:00
Javier Suárez 1f6a70c6c5
Add TapCoordinates method to UITest (#19151) 2023-12-01 13:52:48 +01:00
Javier Suárez 8546f63eea
[Android] Avoid possible crash using essentials Battery (#18386)
* Avoid crash using Battery from essentials

* Enabled nullable on droid BatteryImplementation

* Update src/Essentials/src/Battery/Battery.android.cs

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

* Updated test naming

---------

Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2023-12-01 11:43:59 +01:00
Javier Suárez 62a1b2cb18
[Testing] Added UI Test for manual test E1 (#18624)
* Added UI Test

* Updated test

* Added snapshots

* Updated test

* Generate new snapshot on iOS

* Updated test
2023-12-01 11:30:31 +01:00
github-actions[bot] 32e300553e
[create-pull-request] automated change (#19144)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-01 10:06:21 +00:00
Javier Calvarro Nelson 2ccac2d383
[Blazor] Fix concurrency problem in Android builds (#19140)
* [Blazor] Fix concurrency problem in Android builds

* Disable static web assets on nested Rid builds as its not necessary
  it runs there.
* The outer build already collects the assets and transforms them into
  Maui assets.

* Cleanup

* Update DeviceTests.csproj

* Update all other locations
2023-12-01 00:12:31 +00:00
Rui Marinho 1269d81a74
[tests] Ignore WebView leak test on old iOS (#19076)
* [tests] Try bump delay for gc

* [iOS] Bump xcode

Try other place for decisionHandler.Invoke

Revert "[iOS] Bump xcode"

This reverts commit cc470e09e47702c07febf5f5ba8115d7dc31e5fd.

try bump delay

try again

Comment out see if tests passes

Try skip test for iOS 14 and iOS 15

* Fix missing variable

* Update ios.cake
2023-11-30 16:59:33 +00:00
Rui Marinho ddd8d14862
Revert "[tests] Add runs on iOS17 (#18962)" (#19133)
This reverts commit 70ca0dd584.
2023-11-30 16:56:01 +00:00
Gerald Versluis bb258c5dfb
iOS/Mac Catalyst 17+ Support for new Calendar Permissions (#18868)
* Implement checking of correct info.plist entries

* Added info.plist entries for sample
2023-11-30 16:31:57 +00:00
Javier Suárez f9f64c907b
[Testing] Fix flaky ShapeUpdatesBrushCorrectly test (#19047)
* Changes in a test to avoid intermitent fails

* Replace Task.Delay to AssertionExtensions.Wait
2023-11-30 16:28:52 +00:00
Javier Suárez 18be7925ca
Added methods to set the device orientation from UITests (#19100) 2023-11-30 16:28:23 +00:00
maonaoda f267a5c585
Disconnect property changes from all pages when TabbedPage set to null (#18458)
* - add test

* - add back tear down

* - add test to check property changes

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2023-11-30 08:35:48 -06:00
github-actions[bot] b1cee478aa
[create-pull-request] automated change (#19093)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-29 15:58:07 +00:00
Rui Marinho d8939fdfc4
[tests] Ignore InputTransparencyGalleryTests matrix of UITests (#19060) 2023-11-29 13:58:56 +02:00
Rui Marinho 70ca0dd584
[tests] Add runs on iOS17 (#18962)
* Add runs on iOS17

* Update device-tests.yml
2023-11-29 11:19:24 +00:00
Jonathan Peppers 7e636f29c8
[ios] update MemoryAnalyzers and cleanup (#18449)
* [ios] update MemoryAnalyzers and cleanup

`MemoryAnalyzers` 0.1.0-beta.5 now warns about interfaces like:

    public class MyView : UIView
    {
        IFoo foo;
    }

Since another `UIView` subclass could be assigned to `foo` at runtime,
creating a circular reference -- it should be good to warn about this
going forward. This is what allowed some of the leaks to slip through in
a589b120.

A few new warnings appeared, but I don't think they are real issues
except for `src\Core\src\Platform\iOS\MauiUIContextMenuInteraction.cs`,
which I think we can just remove the field.

I also changed the warning code from `MA*` to `MEM*`, as there were
already error codes in the `MA*` range.

Lastly, I renamed `Microsoft.Extensions.targets` to
`NuGetVersions.targets` as we have many packages in there beyond
`Microsoft.Extensions`. We can also start tracking the `MemoryAnalyzers`
version here as we start adding it to more projects.

* Restore IUIContextMenuInteractionDelegate, fix race condition

Context: https://github.com/dotnet/maui/pull/18449#discussion_r1379791733

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

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-11-29 00:05:44 +02:00
Matthew Leibowitz 47cd242361
Add nightly to the list of versions (#19088) 2023-11-28 22:06:36 +02:00
E.Z. Hart 7ed54e79c9
Prevent iOS CollectionView size shifts from clearing the cell size cache (#19069)
* Prevent iOS CollectionView size shifts from clearing the cell size cache
Fixes #17890

* Try to exclude tests from macOS

* Make test work on older iOS versions
2023-11-28 19:41:22 +00:00
github-actions[bot] 9b6a251265
[create-pull-request] automated change (#19067)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-28 13:47:36 +00:00
Rui Marinho 73d2142b14
[testing] Run tests on device (#17808)
* [tests] Run tests on real devices

* [ios] Allow cake to run on device

* [tests] Get android devices

* fix xharness version

* Clear api version

* [tests] Find the correct android device to install

* [tests] Correct variable name

* [tests] Fix platform version

* Fix variable

* Fix merge
2023-11-28 13:21:29 +00:00
Javier Calvarro Nelson 4a31ee1f34
Fix static file handling so that it special cases modules.json (#18953)
## Issue: Microsoft.AspNetCore.Components.WebView.props is not imported by Maui applications

This issue pertains to the non-importation of Microsoft.AspNetCore.Components.WebView.props by Maui applications. The file has been relocated within the package to ensure its correct pickup and importation during the restore/build process.

Fixes dotnet/aspnetcore#42348.

## Description

The inability of Maui applications to rely on JavaScript (JS) initializers, particularly in the case of Fluent UI, is impacted by this issue. The runtime searches for the initializer's definition in a specific location, which is configured in the props file of the package.

## Impact on Customers

The malfunction of JS initializers in Blazor Hybrid has significant implications for both library authors and end users.

Library authors may find their libraries' functionality restricted due to this bug. JS initializers, a feature in Blazor, enable library authors to inject scripts onto the page at the start of the app. These scripts can augment functionality, enhance user interfaces, or facilitate third-party service integration. For instance, a library author might employ a JS initializer to inject a script that integrates with a mapping service, thereby providing real-time location updates within a Blazor app. This functionality would be unavailable in Blazor Hybrid apps due to this bug.

End users may be unable to use certain libraries, or those libraries may not function as anticipated in Blazor Hybrid apps. If a user were to use a Blazor Hybrid app that relies on the aforementioned mapping library, they would not receive the real-time location updates that they would in a regular Blazor app. This could result in an inferior user experience, and in some cases, render the app unusable.

Users and library authors are compelled to manually inject the script onto the page, and some functionality (like configuring Blazor before it starts) is not available in this mode.

## Regression?

- [ ] Yes
- [X] No

## Risk

- [ ] High
- [ ] Medium
- [X] Low

The failure to load a file from a NuGet package impacts the build. The change causes the file to load at build time, enabling the rest of the pipeline to function as expected.

## Verification

- [X] Manual (required)
- [ ] Automated

The changes were made locally on the package cache and ensured the file got imported.

## Packaging changes reviewed?

- [ ] Yes
- [ ] No
- [x] N/A

## When servicing release/2.1

- [ ] Make necessary changes in eng/PatchConfig.props
2023-11-27 14:52:00 -08:00
Peter Spada 34d73c8ee5
ScrollView content needs layout when ScrollView.InvalidateMeasure is called (#17639)
### Description of Change

When `ScrollView.Content` changes its alignment (like
`HorizontalOptions` change from `Start` to `End`), then the
`ScrollView`'s layout needs to properly update. It worked on Android and
Mac/iOS, but Windows would not update layout until the window was
resized.

After `HorizontalOptions` changed on the content, Windows would call
`InvalidateMeasure` on the WinUI `ScrollView`, but the child content
didn't get updated. This change makes sure that the content also gets
measured.

This fix is helpful for XAML Hot Reload, so the layout will update as
`HorizontalOptions` changes.

### Issues Fixed

Fixes #14377
2023-11-27 13:50:02 -08:00
Rui Marinho 6d2e068493
[tests] Add the default dotnet path on iOS (#19058) 2023-11-27 19:46:05 +00:00
Peter Spada 4f6200ff68 Code review: Make change Windows-only 2023-11-27 11:08:57 -08:00
Peter Spada 9e9f4bd000 Make test TestContentHorizontalOptionsChanged fail if fix isn't applied 2023-11-27 11:08:57 -08:00
Peter Spada 12e60c3b77 Simplify handlers in test 2023-11-27 11:08:57 -08:00
Peter Spada 79bc6e151f Skip test on Android 2023-11-27 11:08:56 -08:00
Peter Spada 71fb1cf199 InvalidateMeasure of ScrollView content 2023-11-27 11:08:56 -08:00
Rui Marinho 11fe7662e6
Revert "Prevent iOS CollectionView size shifts from clearing the cell size cache (#18464)" (#18988)
This reverts commit 6a5bbf0806.
2023-11-27 18:51:02 +00:00
dotnet-maestro[bot] f83e73df89
Update dependencies from https://github.com/dotnet/xharness build 20231120.2 (#19055)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 9.0.0-prerelease.23570.1 -> To Version 9.0.0-prerelease.23570.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-27 16:58:19 +00:00
Rachel Kang 6b32433482
[MacCatalyst] Implement PointerPressed and PointerReleased (#16925) 2023-11-27 03:45:04 +00:00
Shane Neuville 01afe33d78
Update GitInfo.txt (#18963) 2023-11-23 13:28:30 +00:00
Mike Corsaro 926a0025c0
[Windows] Address CollectionView virtualization (#18813)
* Add hard value for height w/ ItemContent control to partially allow virtualization to work

* Update test to be more robust

* Add real-width for ItemContentControl

---------

Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
2023-11-22 16:20:41 -06:00
E.Z. Hart 6a5bbf0806
Prevent iOS CollectionView size shifts from clearing the cell size cache (#18464)
* Prevent iOS CollectionView size shifts from clearing the cell size cache
Fixes #17890

* Try to exclude tests from macOS
2023-11-22 15:54:31 -06:00
Rui Marinho 95468235b0
[tests] Ignore flaky android device tests (#18905)
* [tests] Ignore flacky androdi tests

* Remove tests for Modal and Keyboard that are flaky
2023-11-22 19:49:32 +00:00
dotnet-maestro[bot] 932362ea4a
Update dependencies from https://github.com/dotnet/xharness build 20231120.1 (#18901)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 8.0.0-prerelease.23523.1 -> To Version 9.0.0-prerelease.23570.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2023-11-22 14:08:59 +00:00
Rui Marinho b8f99f4abb
[iOS] Make sure always call decisionHandler even after dispose (#18934) 2023-11-22 12:27:07 +00:00
dependabot[bot] 184c7cefc0
Bump Microsoft.CodeAnalysis.NetAnalyzers (#18866)
Bumps [Microsoft.CodeAnalysis.NetAnalyzers](https://github.com/dotnet/roslyn-analyzers) from 8.0.0-preview1.23165.1 to 8.0.0.
- [Release notes](https://github.com/dotnet/roslyn-analyzers/releases)
- [Changelog](https://github.com/dotnet/roslyn-analyzers/blob/main/PostReleaseActivities.md)
- [Commits](https://github.com/dotnet/roslyn-analyzers/commits)

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.NetAnalyzers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 15:56:25 +00:00
Bret Johnson 89dd791904
Fix "Test attachment file path could not be found" (#18911)
Properrly account for App.Screenshot appending a ".png"
extension (always) to the passed in file path, fixing so
that the attachment isn't added twice.

This fixes the "Test attachment file path could not be found"
error that could show for UITest when they fail and SaveDiagnosticLogs
tries to attach screenshots (caused because the actually file
had a ".png.png" extension, so the file with just a ".png"
extension wasn't found).
2023-11-21 15:37:51 +00:00
github-actions[bot] 955e0a3b19
[create-pull-request] automated change (#18892)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-21 14:42:55 +00:00
Bret Johnson 66ac34c16e
Update DEVELOPMENT doc to use VS Code on Mac (#18859)
* Update DEVELOPMENT doc to use VS Code on Mac

* Point to main MAUI with VS Code doc
2023-11-21 05:36:28 -06:00
Emanuel Fernandez Dell'Oca 852a73eeeb
Fix Modal OnNavigatedTo (#18912)
When navigating between Modal pages, Shell was returning the first page in the stack as the current page, so that page was the one being notified about the navigation. Instead, we should return the last page from the stack.

Fixes https://github.com/dotnet/maui/issues/17978
2023-11-20 20:26:23 -06:00
Stephane Delcroix 2cdf7234bb
[C] Lowest specificity for propagated values (#17648)
IsEnabled value is propagated on parenting. Do this with the special
(fromHandler) specificity, to allow styling

- fixes #17597
2023-11-20 16:43:26 -05:00