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

163 Коммитов

Автор SHA1 Сообщение Дата
Julien Lebosquain bed48a7bb6
Rework XAML compilation targets (#17539)
* Added BuildTests projects

* Added VerifyXamlCompilation build target

* Use TargetsTriggerByCompilation for XAML compilation

* Add *.binlog to gitignore

* VerifyXamlCompilation target: set NuGetPackageRoot

* Ensure WpfHybrid build test uses two markup compilation passes

* Fail build tests restore immediately if AvaloniaVersion isn't set

* Fix "could not extract MVID" for up-to-date builds

* Run VerifyXamlCompilation on CI

* Add FSharp build test
2024-11-25 18:25:06 -08:00
Julien Lebosquain 29232ff077
Fix build Clean target (#17531) 2024-11-18 20:16:05 -08:00
Max Katz af0f73de93
`[GeneratedComInterface]` based Windows automation (#16543)
* Move automation interfaces to the Avalonia.Win32.Automation with DisableRuntimeMarshalling and use [GeneratedComInterface] marshalling

* Various fixes for the new windows accessibility

* Numerge Avalonia.Win32.Automation into Avalonia.Win32

* Suppress Avalonia.Win32 API warnings, these interfaces never were part of the public API

* Fix IRawElementProviderSimple2 definition on legacy COM interop

* Some changes after review

* More consistent COM method names

* Fix folder hierarchy

* Rewrite SafeArrayMarshaller to use arrays as managed type

* Add ManagedObjectWrapper where's possible

* Throw an exception for unsupported SafeArrayRef scenario

---------

Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2024-10-31 11:03:29 +00:00
Nikita Tsukanov 135b5984b1
Changed modifiers for injected non-client implementable method (#16626)
* Changed modifiers for injected non-client implementable method

* Keep internal modifier
2024-08-19 14:44:28 -07:00
Julien Lebosquain d1bd85e9b8
Nullable annotations for projects using XamlX (#15796)
* Nullable annotations for projects using XamlX

* Update .NET SDK

* Update XamlX to latest master

* Use ILRepack tool instead of submodule

* Fix build

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-07-29 15:26:05 -07:00
Max Katz d3f234bad5
Reset API validation baseline (#16470) 2024-07-25 18:16:14 -07:00
Julien Lebosquain b2f3fad445
Respect global packages folder in BuildToNuGetCache (#15706) 2024-06-25 12:35:37 -07:00
Benedikt Stebner 143399f65a
Avalonia.Native TopLevel embedding (#15932)
* Introduce Avalonia.Native TopLevelImpl

* Update Avalonia.Native.csproj

Revert change
2024-06-19 19:55:59 -04:00
Max Katz 59c4fdde86
Update BuildParameters.cs (#14993) 2024-03-15 17:36:11 +00:00
Max Katz 462e4d1a74
Add OutputVersion nuke target (#14890)
* Replace PRNumber with VersionNumber+nuke

* Restore prId file

* Fix env var name

* Change artifact name back for compatibility
2024-03-08 18:47:14 -08:00
Max Katz 1675ff6f4b
Update ApiDiffHelper.cs (#14833) 2024-03-05 20:40:43 -08:00
Max Katz 326ef7c9fd
Add .NET 8 target (Avalonia 11.1) (#14535)
* Add .NET 8 target to packable projects

* Update test projects

* Update sample projects to target .NET 8

* Update main Avalonia package to target .NET 8 as well

* Remove MSBuildEnableWorkloadResolver hack and some minor change

* Use net8.0 in nuke build as well

* Pin 8.0.0 SDK

* Adjust API validation

* Pin a valid version

* Remove net461 target from Avalonia package

* Remove unused net6.0 target from Avalonia.Designer.HostApp

* Adjust API diff

* Update ControlCatalog.Android.csproj

* Remove MSBuildEnableWorkloadResolver

* Fix Browser issues on .NET 8

* Fix .NET 8 error

* Fix merge conflicts

* Replace explicit TFMs in .csproj files with a centralized registry

* Fix merge conflict

* Fix AvsLegacyWindowsTargetFrameworks and add hacks for the tests

* Update XCode project CommandLineArgument

---------

Co-authored-by: Nikita Tsukanov <keks9n@gmail.com>
2024-03-05 13:37:26 -08:00
Nikita Tsukanov 84515cd3e5
A special target for testing local nuget builds (#14446)
* BuildToNuGetCache target

* Skip more stuff that's not required for quick local testing of apps

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-03-01 05:15:25 +00:00
Max Katz 263be95f09 Update Microsoft.DotNet.GenAPI.Tool 2024-02-16 00:41:04 -08:00
Max Katz 5551a6cc1b Adjust ApiDiffHelper 2024-02-07 22:24:10 -08:00
Max Katz c391117795
Remove "netcoreapp2.0" target from the Avalonia. Make previewer use netstandard2.0 (#14268)
* Remove "netcoreapp2.0" target from the Avalonia. Make previewer use netstandard2.0

* Update ApiDiff redirects
2024-01-19 07:07:57 +00:00
Max Katz 02ddfad245
Implement helper OutputApiDiff target (#13818) 2023-12-22 09:44:07 +00:00
Julien Lebosquain a3f1e4814f
Fix warnings in build project (#13718) 2023-11-24 05:56:02 +00:00
Julien Lebosquain c40b627403
Fix ref assembly generator making nested types public (#13513) 2023-11-06 23:43:50 +00:00
Max Katz ebb4fff829 Make TFM redirects in Api Validator better 2023-10-11 18:31:07 -07:00
Dan Walmsley 1e0eacbdc3 fix parsing the baseline version for api diff.
suffixes like -rc1 would cause this to crash.
2023-10-06 14:46:13 +01:00
workgroupengineering d03811697c
feat: Using pdbstr from Microsoft.Debugging.Tools.PdbStr instead of obsolete SourceLink package (#12570) 2023-10-03 21:33:58 +00:00
Steven Kirk a7725b0ca6
Use a regex to detect a release branch. (#13106)
Using the suggested regex from semver.org.
2023-10-02 14:35:28 +00:00
Max Katz 3de2a0ea91
Bump minimal TFM for mobile projects from .NET 6 to .NET 7… (#13012)
* Bump minimal TFM for mobile projects from .NET 6 to .NET 7 because of MAUI support policy

* Fix api diff
2023-09-25 00:55:19 -07:00
Omid Mafakher 3687cb9ecc
Samsung Tizen (#12151)
* implement tizen platform, resolve #6110

* Fix enum types of touch event

* Fix issue of touch tracking.

* #6110 fix ui thread lock

* #6110 send keypad from tizen window

* #6110 fix touch update

* #6110 add text editor for input fields

* #6110 Hide text field

* #6110 Fix issue of text selection and backspace

* #6110 support multi and single line for input

* #6110 temporary set multiline true by default.

* #6110 fix issue of build with latest version and make it compatible

* #6110 by pass double input when softkeyboard showing.

* #6110 adding support for clipboard.

* #6110 add permission helper to tizen platform

* #6110 Implementation of storage provider for tizen

* #6110 send text for key character from hard keyboard

* #6110 Complete the input implementation. soft and hard keyboard

* #6110 remove ElmSharp

* Update Permissions.cs

* #6110 remove open folder for tizen

* #6110 fix the issue of keyboard frezee for tizen

* #6110 add workload to build tizen

* #6110 try to setup tizen workloads for windows

* #6110 change tizen workload install to powershell

* #6110 skip api diff check when package not exists

* #6110 try to fix linux pipeline

* #6110 implement tizen native view

* #6110 add dev analyzer and trimming

* #6110 Migrate to GLES and remove framebuffer

* #6110 Temporary solution to make GL work

* #6110 WIP and add comments

* #6110 optimise gles rendering and timing.

* #6110 fix dependency issue of tizen HarfBuzzSharp

* #6110 patch a fix for clipboard issue

* #6110 Support tizen sdk for old proj type, WIP

* #6110 wip setup app

* #6110 support only net6 for tizen

* #6110 resolve comments

---------

Co-authored-by: Kangho Hur <rookiejava+github@gmail.com>
Co-authored-by: Max Katz <maxkatz6@outlook.com>
2023-09-22 01:19:04 +00:00
Julien Lebosquain f253b614b3
Generate pdb for ref assemblies 2023-08-02 11:46:15 +02:00
Julien Lebosquain 97d4e7d9a1
Update Numerge 2023-07-16 11:38:59 +02:00
Julien Lebosquain 12e1d5ef10
Avoid api validation for symbol packages 2023-07-16 11:38:19 +02:00
Julien Lebosquain 6eff41172f
Generate symbol packages 2023-07-16 11:37:53 +02:00
Max Katz 54158b475e Fix separators issue in ApiDiffValidatiton too 2023-07-11 23:09:49 -04:00
Max Katz 98e5f74f4e Fix xml files generation 2023-07-10 20:22:40 -04:00
Max Katz c755ea628b Fix regex 2023-07-07 23:39:13 -07:00
Max Katz 36b74afa17 Set UpdateApiValidationSuppression to true by default on local build 2023-07-07 12:31:52 -07:00
Max Katz 003bed5c80 Update exclusions 2023-07-07 12:31:52 -07:00
Max Katz 8097a1c993 Throw on any output error 2023-07-07 12:31:52 -07:00
Max Katz 65e29787dd Parameters fixes 2023-07-07 12:31:52 -07:00
Max Katz c72aa402a8 Run in parallel 2023-07-07 12:31:52 -07:00
Max Katz 96f21b6cbf Create initial ApiDiffValidation implementation 2023-07-07 12:31:52 -07:00
Max Katz 94e709972b Merge remote-tracking branch 'origin/master' into wpf-winforms-interop-core
# Conflicts:
#	src/Windows/Avalonia.Win32.Interop/Wpf/WpfTopLevelImpl.cs
2023-05-30 11:08:14 -04:00
Max Katz d1967cce49
Merge pull request #11563 from AvaloniaUI/maxkatz6-patch-1
Fix debug code previously committed to master.
2023-05-29 19:42:00 -04:00
Max Katz c663c14290
Fix debug code previously committed to master. 2023-05-29 15:10:59 -07:00
Nikita Tsukanov b445ea9d68 Borking changes 2023-05-29 19:26:45 +01:00
Nikita Tsukanov f300a24402 Media system refactoring
- animation/layout/render cycle is now managed from a central location
- animations are now throttled if animation/layout/render pass takes longer than a frame which previously caused a soft-freeze with input not being processed
- the public API is trimmed to make sure that we can make other planned changes during the 11.x support cycle

"Changelog":
- IClock is hidden and is planned to be replaced later
- Animator classes are hidden and are planned to be refactored later
- IAnimation members are hidden, it's supposed to be a marker interface for Style.Animations collection now, to start animations manually use Animation.RunAsync
- Sealed several classes in Avalonia.Animation namespace
- Spring class is removed from the public API (it wasn't possible to use it directly in a meaningful way anyway)
- Sealed brushes, transforms, effects and drawings
- Removed separate dispatcher priorities for Layout and Composition, everything now happens from a central place with Render priority (same as WPF)
- - some private "hook" priorities are added for now, those will be removed later
- IRenderLoop is hidden and removed from locator
- IRenderer is hidden (the plan is to remove that concept later)
- - Renderer.Start/Stop exposed as StartRendering/StopRendering on the toplevel (will be on a CompositionTarget/PresentationSource-like type later)
- - Renderer.Diagnistics exposed as RendererDiagnostics (same)
- - Renderer is no longer created by the platform code and is created by TopLevel itself
- - From the user-code hit-testing should be done by VisualExtensions.GetVisual(s)At, which has the same features
- - For unit tests a separate IHitTester interface is added which can be changed for a particular toplevel
- ILayoutManager is hidden
- - LayoutManager.ExecuteLayoutPass() exposed as TopLevel.UpdateLayout()
- Custom animators now have a separate base class that only deals with interpolation

Minor improvements:
- Compositor has a mode that doesn't use DispatcherTimers, useful for unit tests
- Introduced ScopedTestBase that auto-resets the locator when test is finished
2023-05-29 13:48:59 +06:00
Max Katz 691ff9f33a Make Avalonia.Win32.Interoperability build again on CI 2023-05-22 22:10:12 -04:00
Max Katz 80c7086d25
Merge pull request #11340 from AvaloniaUI/feature/composition-resources-3
Compositor-aware resources
2023-05-17 01:02:16 +00:00
Nikita Tsukanov 64610c264b Composition aware resources 2023-05-15 13:39:53 +06:00
Max Katz fe0edf557c Update Cecil 2023-05-14 23:29:19 -04:00
Max Katz dbaffc8206 Remove Solution usage from the nuke tests to avoid random CI errors 2023-05-09 22:08:38 -04:00
Max Katz eabb408009 Merge remote-tracking branch 'origin/master' into nunit-headless-intergration 2023-05-01 02:39:50 -04:00
Max Katz a11bef715b Add Message parameter to the Unstable attribute 2023-04-29 23:44:21 -04:00