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

8643 Коммитов

Автор SHA1 Сообщение Дата
Javier Suárez 901b987f44
Merge pull request #35 from thomiel/main
added matrix channel to readme
2022-03-22 12:50:11 +01:00
Thomas 443532bb97
added matrix channel to readme 2022-02-23 16:47:49 +01:00
Javier Suárez 570a74d83f
Merge pull request #33 from jsuarezruiz/housekeeping/fix-codeformatting
[housekeeping] Automated PR to fix formatting errors
2022-01-20 20:20:33 +01:00
github-actions[bot] 5d1283f9c7 Automated dotnet-format update 2022-01-18 00:23:25 +00:00
Javier Suárez b408159f21
Merge pull request #31 from mandel-macaque/merge-origin
[MAUI] Merge MAUI current main
2022-01-17 18:22:16 +01:00
Manuel de la Pena 88fa280cad [MAUI] Merge with MAUI origin. 2022-01-16 20:32:59 -05:00
Jonathan Dick 50cbb20cc1
Update SignList.xml 2022-01-16 17:30:54 -05:00
Jonathan Dick c6366f09a1
Update SignList.xml (#4156) 2022-01-16 16:12:07 -05:00
Shane Neuville f70a5fcf78
Remove GetNative and wrapped overload (#4150)
* Remove GetNative and wrapped overload

* - remove discard search

* - check for replace view first
2022-01-16 09:37:13 -06:00
Javier Suárez 20b2285112
Merge pull request #30 from mandel-macaque/linux-build
[Linux] Do not try to find xcode on platforms that are not macOS
2022-01-16 12:12:12 +01:00
dotnet-maestro[bot] 2ac584dd8c
[main] Update dependencies from xamarin/xamarin-macios (#4056)
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220110.9

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.15

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220111.5

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.19

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220112.10

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.24

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220112.43

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.35

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220113.15

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.39

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220114.33

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.2.100-preview.13.8 -> To Version 15.2.100-preview.13.54

* Fix API changes from iOS

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: redth <jondick@gmail.com>
2022-01-15 22:07:45 -05:00
Manuel de la Pena 69ec5b6894 [Linux] Do not try to find xcode on platforms that are not macOS
The .cake script tries to use xcode-select which is only supported on macOS X.

This is a step fwd to try and be able to compile the project from linux.
2022-01-15 13:57:19 -05:00
Jonathan Dick 23b80100ab
Remove `ComputeXamarinTargetFrameworks` override
This target is bundled already and has different functionality - overriding here is no longer correct.
2022-01-14 12:23:54 -05:00
Shane Neuville a63e2ec761
WinUI Flyout Handler (#3735)
* flyout window handler

* - wiring up rest of flyoutpage api

* Update src/Core/src/Handlers/FlyoutView/FlyoutViewHandler.Windows.cs

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>

* - flyoutwidth

* - fix up flyout PR winUI

* - fixup margins

* - fix overlap

* Update FlyoutPage.cs

* Update ContentPanel.cs

* - fix animation

* - button layout workaround

* - fix window title

* Update Startup.cs

* Update FlyoutPage.Impl.cs

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
2022-01-13 23:13:13 +00:00
Javier Suárez 1a23669af1
Added CSS brushes sample (#4055) 2022-01-13 16:05:27 -05:00
Shane Neuville 76abeddaf0
View to Handler Converter for WinUI (#4070) 2022-01-13 16:04:25 -05:00
Jonathan Peppers 33e6652380
[sourcegen] use GetText() instead of opening files from disk (#4128)
The source generator was doing:

    using (var reader = File.OpenText(projItem.AdditionalText.Path))

The problem with this, is you don't actually have to hit Ctrl+S in
Visual Studio to save the files. This is potentially loading stale
files on disk.

Instead we can use:

    projItem.AdditionalText.GetText().ToString();

And this will give us the string contents of the file from the
in-memory Roslyn state.

This might solve some of the weird issues in the IDE such as:

https://github.com/dotnet/maui/issues/4098

However, I'm still able to reproduce #4098 after making this change.
2022-01-13 16:01:18 -05:00
Matthew Leibowitz df8b1d45a6
Use raster images with Android adaptive icons (#4069) 2022-01-13 22:00:03 +02:00
Javier Suárez 516fe302fe
[Android] Changes to improve Border control drawing performance (#3620)
* Changes to improve Border control drawing performance

* Avoid to draw unnecesary Path
2022-01-13 17:46:43 +01:00
Andreas Nesheim 8316f7ab23
Implement CursorPosition in IEditor/ITextInput Handlers (#3196)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-01-13 18:12:16 +02:00
Dima Dimov eae36751a5
Essentials: Port xamarin/Essentials#1846 (#2605)
Co-authored-by: Redth <jondick@gmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-01-13 16:11:04 +00:00
Shane Neuville b7e947ad59
Swipe View Handler (#3987)
* Swipe View Handler

* - SwipeView fixes

* - fix handler naming

* - compile error fixes

* - wire up arrange calls

* - handlerize properties

* - wire up more invokes

* - you get a handler, and you get a handler, and you get a handler

* - fix up SwipeItemMenu

* - finish up scrolled behaviors

* - cleanup visibility

* - cleanup interfaces

* - review comments

* - fix character spacing

* - fix icons

# Conflicts:
#	src/Controls/src/Core/HandlerImpl/SwipeView.Impl.cs

* - fix icon sizing on android

* Update SwipeViewHandler.Android.cs
2022-01-13 12:47:52 +01:00
E.Z. Hart 2885252ca8
Ensure that changing RowSpacing/ColumnSpacing invalidates grid (#3873)
Fixes #3544
2022-01-13 11:41:00 +00:00
github-actions[bot] c5fd4c0399
[housekeeping] Automated PR to fix formatting errors (#3765)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-13 02:14:43 +02:00
Jonathan Peppers fddb217494
[core] remove Try/AddHandlers() APIs for linker-friendliness (#3825)
This is one idea from dotnet/maui#3249, that I abandoned (for now)
because making `Microsoft.Maui.dll` fully trimmable is a larger task
that I realized.

These two APIs are problematic for dotnet/linker to be able to
statically analyze `Microsoft.Maui.dll`:

    public static partial class MauiHandlersCollectionExtensions
    {
        public static IMauiHandlersCollection AddHandlers(this IMauiHandlersCollection handlersCollection, Dictionary<Type, Type> handlers)
        public static IMauiHandlersCollection TryAddHandlers(this IMauiHandlersCollection handlersCollection, Dictionary<Type, Type> handlers)

Usage of this in `AddMauiControlsHandlers` should just call
`AddHandler()` for each type? No need for a `Dictionary`?

I loosened the generic constrains on one other method:

    public static IMauiHandlersCollection AddHandler<TType, TTypeRender>(this IMauiHandlersCollection handlersCollection)
    --    where TType : IView
    --    where TTypeRender : IViewHandler
    ++    where TType : IElement
    ++    where TTypeRender : IElementHandler

This allowed its usage for `Application` and `Window`.

This would probably have a tiny performance improvement, as we no
longer create a `Dictionary<Type,Type>` with 41 elements. This change
is more about changing a public-facing API, before MAUI is stable. It
will help us make `Microsoft.Maui.dll` fully trimmable one day.
2022-01-12 17:08:18 -06:00
Matthew Leibowitz bc42aeaed9
Update bug-report.yml 2022-01-12 21:43:06 +02:00
dotnet-maestro[bot] b97b0bd3af
[main] Update dependencies from xamarin/xamarin-android (#4033)
Changes: 9c82662...a533652

Updates: Microsoft.Android.Sdk.Windows: from 31.0.200-preview.13.8 to 31.0.200-preview.13.11

The Android workload now ships with "manifestmerger" 30.x:

a533652fa6

This causes Essentials samples to fail to build with:

    android:exported needs to be explicitly specified for <activity>.
    Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.
    See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

The fix here is various activities should define `Exported=true`. The
Android workload does this by default for the main activity, but not
every activity. This appears to solve the build error.

Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2022-01-11 12:17:47 -06:00
E.Z. Hart a2b2867cba
Implement TextTransform for Controls.Button (#3869)
Fixes #2986
2022-01-11 11:02:47 -07:00
Jonathan Peppers ea56c4a1b0
[build] don't use intermediate @(_MauiCompileToAdd) (#4034)
Fixes: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1413769
Fixes: https://github.com/dotnet/maui/issues/3967

Adding a new class to `Platforms\Android` results in:

    <ItemGroup>
      <_MauiCompileToAdd Remove="Platforms\Android\AnotherAndroid.cs" />
    </ItemGroup>
    <ItemGroup>
      <None Include="Platforms\Android\AnotherAndroid.cs" />
    </ItemGroup>

That's weird!

There might be an IDE / ProjectSystem here, but I think we should
change the MSBuild includes to workaround this problem.

Reviewing the existing `.targets`:

1. We don't need to add `.cs` files to `@(None)`? It doesn't not
   appear that `dotnet new console` adds `.cs` files to `@(None)`.

2. We can completely get rid of `@(_MauiCompileToAdd)` and just add
   files to `@(Compile)` directly.

After these changes, a `dotnet new maui` app still works. And when I
add new `.cs` files in a `Platforms\*\` folder, the `.csproj` file
remains unchanged. Yay!
2022-01-11 00:39:22 +00:00
dotnet-maestro[bot] c034fe643f
[main] Update dependencies from xamarin/xamarin-macios (#4006)
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220106.11

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.0.101-preview.12.777 -> To Version 15.2.100-preview.13.8

Dependency coherency updates

Microsoft.Extensions.Hosting,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration.Binder,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.Configuration.CommandLine,Microsoft.Extensions.Configuration.EnvironmentVariables,Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Configuration.UserSecrets,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.Physical,Microsoft.Extensions.FileSystemGlobbing,Microsoft.Extensions.Logging.Configuration,Microsoft.Extensions.Logging.EventLog,Microsoft.Extensions.Logging.EventSource,Microsoft.Extensions.Options,Microsoft.Extensions.Options.ConfigurationExtensions,System.CodeDom,System.Runtime.CompilerServices.Unsafe,System.Diagnostics.DiagnosticSource,System.Diagnostics.EventLog,System.IO.Pipelines,System.Text.Encodings.Web,System.Text.Json
 From Version 6.0.0 -> To Version 6.0.2-mauipre.1.22054.8 (parent: Microsoft.AspNetCore.App.Runtime.win-x64

* Update variables.yml

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Redth <jondick@gmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-01-10 15:21:16 -05:00
Rachel Kang 2b2ea126a3
Update Microsoft.Maui.Dependencies.csproj (#4022) 2022-01-10 15:01:35 -05:00
Tim Miller 2b71d7a169
[iOS] Add AutoresizingMask to WindowOverlay GraphicsView (#3804)
* Add AutoresizingMask to WindowOverlay GraphicsView.

* Remove Test Code
2022-01-10 17:09:29 +00:00
dotnet-maestro[bot] 9e09a8703c
Update dependencies from https://github.com/xamarin/xamarin-android build main-9c8266294062cce80c2f2f05521d02862ecf0ad2-1 (#4005)
Microsoft.Android.Sdk.Windows
 From Version 31.0.101-preview.12.171 -> To Version 31.0.200-preview.13.8

Dependency coherency updates

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.200-preview.22054.7 -> To Version 6.0.200-preview.22055.18 (parent: Microsoft.Android.Sdk.Windows

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
2022-01-10 10:21:46 -05:00
Redth f85b12d928 Merge branch 'release/6.0.2xx-preview12' 2022-01-10 09:44:29 -05:00
Shane Neuville c8939a51d6
Radiobutton Handler (#3784)
* Radiobutton Handler

* Update RadioButtonHandlerTests.cs

* - fix windows tests

* - radiobutton font properties

* - android content property

* - set titles

* remove tests from iOS

* - add things

* - fix ios

* - more contentivew

* - fix ios
2022-01-10 13:37:14 +01:00
E.Z. Hart 995fd769e6
Remove layout resolution (#3818)
* Start removing layout resolution code

* Remove ResolveLayout calls

* Update tests to reflect native invalidation
2022-01-10 13:33:09 +01:00
Tim Miller ebb4a540b6
[WinUI] Allow Hot Reload In-App Selector to work with WindowOverlay (#3914)
With the visual diagnostics overlay being a native control drawn on the screen, it would break the in-app selector from selecting any elements under it. We can hide the layer until you draw on it, which will then let you use the in app selector again.
2022-01-10 09:41:19 +00:00
Shane Neuville 62fbce67be
Move SwipeView Gallery into Maui Samples Gallery (#4002)
* Move SwipeView Gallery into Maui Samples Gallery

* - remove compatibility page

* - fix compat gallery
2022-01-10 07:22:31 +01:00
Connor Adsit 41980c32e1
Add in auth token to the environment to prevent Provisionator from hanging (#3994)
* iOS handle ctor is now NativeHandle not IntPtr

* [main] Update dependencies from xamarin/xamarin-android (#3974)

* Update dependencies from https://github.com/xamarin/xamarin-android build main-05b7dbb2b4b9863793a4f41e8436514edba5f3b8-1

Microsoft.Android.Sdk.Windows
 From Version 31.0.101-preview.12.163 -> To Version 31.0.101-preview.12.171

Dependency coherency updates

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100,Microsoft.NETCore.App.Ref,Microsoft.Extensions.Primitives,Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.0 -> To Version 6.0.0 (parent: Microsoft.NETCore.App.Ref

* dotnet/runtime packs are not 6.0.100 anymore

Context: https://github.com/dotnet/runtime/pull/62787

* emsdk still on 6.0.100

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

* More IntPtr -> NativeHandle

* Update GitInfo.txt

* Update variables.yml

* Update provision.yml

* Update MAUI Graphics version

* Add in auth token to the environment to prevent provisionator from hanging

* Update GitInfo.txt

* XCode 13.2

Co-authored-by: Redth <jondick@gmail.com>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
2022-01-07 15:26:22 -05:00
Jonathan Dick 776b6b49ce
Use 13.1.0 XCode
Our managed code builds fine it seems against 13.1.0 XCode and we believe this is ok as we ship no native iOS libraries as part of MAUI.  We have issues provisioning 13.2.0 currently that this will alleviate.

//cc @dalexsoto
2022-01-07 14:43:51 -05:00
Jonathan Dick 8a4cf99d92
Update MAUI Graphics version 2022-01-07 12:46:37 -05:00
Redth 6edcb9e147 Bump MAUI Graphics 2022-01-07 12:44:19 -05:00
Redth c4d3fac5dc XCode 13.2.0 2022-01-07 10:50:47 -05:00
dotnet-maestro[bot] c98f280b24
[release/6.0.2xx-preview12] Update dependencies from xamarin/xamarin-macios (#3988)
* Update dependencies from https://github.com/xamarin/xamarin-macios build 20220106.2

Microsoft.tvOS.Sdk , Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 15.0.101-preview.12.777 -> To Version 15.2.200-preview.12.1

Dependency coherency updates

Microsoft.Extensions.Hosting,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration.Binder,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.Configuration.CommandLine,Microsoft.Extensions.Configuration.EnvironmentVariables,Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json,Microsoft.Extensions.Configuration.UserSecrets,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Composite,Microsoft.Extensions.FileProviders.Physical,Microsoft.Extensions.FileSystemGlobbing,Microsoft.Extensions.Logging.Configuration,Microsoft.Extensions.Logging.EventLog,Microsoft.Extensions.Logging.EventSource,Microsoft.Extensions.Options,Microsoft.Extensions.Options.ConfigurationExtensions,System.CodeDom,System.Runtime.CompilerServices.Unsafe,System.Diagnostics.DiagnosticSource,System.Diagnostics.EventLog,System.IO.Pipelines,System.Text.Encodings.Web,System.Text.Json
 From Version 6.0.2-mauipre.1.21622.4 -> To Version 6.0.2-mauipre.1.22054.8 (parent: Microsoft.AspNetCore.App.Runtime.win-x64

* Update GitInfo.txt

* Update variables.yml

* Fix version from rebase

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
2022-01-07 09:56:22 -05:00
Jonathan Dick 7303a65394
Update provision.yml 2022-01-06 23:15:09 -05:00
Jonathan Dick c390abd2fb
Update provision.yml 2022-01-06 23:14:42 -05:00
Jonathan Dick 6ea2c2297f
Update variables.yml 2022-01-06 23:07:57 -05:00
Jonathan Dick 76a7285b43
Update GitInfo.txt 2022-01-06 20:47:42 -05:00
Redth 925d133e9c More IntPtr -> NativeHandle 2022-01-06 12:34:49 -05:00
Redth 1794453c15 iOS handle ctor is now NativeHandle not IntPtr 2022-01-06 12:33:57 -05:00