Skip to content

Uno packing - #1969

Merged
beto-rodriguez merged 8 commits into
devfrom
uno-packing
Sep 11, 2025
Merged

beto-rodriguez merged 8 commits into
devfrom
uno-packing

Conversation

@beto-rodriguez

Copy link
Copy Markdown
Collaborator

Enables uno package to use the SkiaRenderer or the native renderer (LiveCharts implementation).

Introduce `UseNuGetForSamples` and `UseNuGetForGenerator` properties in `Directory.Build.props` to manage dependencies across multiple platforms (Avalonia, Blazor, Eto, Maui, Uno, WPF, WinForms, WinUI). Update sample project files to conditionally reference NuGet packages or project references based on these properties. Add warning suppression in `PointerController.cs` and standardize chart view implementations in `SourceGenCartesianChart.cs`, `SourceGenPieChart.cs`, and `SourceGenPolarChart.cs` by using a new alias `SGChart`. These changes enhance flexibility and maintainability of the LiveCharts library.
ensures uno skiarenderer is packed to netx.x, and native renderers are packed when at netx.x-os

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the Uno Platform package to support both the SkiaRenderer and native renderer implementations for LiveCharts. The changes introduce flexible build configurations that allow choosing between the SkiaSharp-based rendering system and the native OS-specific rendering system based on the target platform.

Key changes include:

  • Updated chart base classes to use a unified SGChart base class across both Skia and native rendering modes
  • Introduced conditional compilation directives (HAS_OS_LVC, UNO_LVC) to separate platform-specific code paths
  • Added support for both NuGet package references and project references through build-time configuration

Reviewed Changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
SourceGenPolarChart.cs Updates base class inheritance to use unified SGChart
SourceGenPieChart.cs Updates base class inheritance to use unified SGChart
SourceGenCartesianChart.cs Updates base class inheritance to use unified SGChart
MotionCanvas.cs Adds conditional compilation for renderer selection
SkiaRenderMode.cs Updates conditional compilation and namespace
Multiple .csproj files Adds conditional package/project reference support
_Shared.Native.projitems Reorganizes platform-specific file includes
Platform-specific controllers Updates conditional compilation directives
New UnoSkiaRenderer files Adds Uno-specific SkiaRenderer implementation
Build configuration files Updates build properties and removes deprecated settings

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/_Shared.Native/Platforms/UnoSkiaRenderer/NativeTicker.cs Outdated
Comment thread src/_Shared.Native/Platforms/UnoSkiaRenderer/PointerController.cs
Comment thread src/_Shared.Native/Platforms/UnoSkiaRenderer/PointerController.cs
Comment thread src/_Shared.Native/Platforms/UnoSkiaRenderer/PointerController.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@beto-rodriguez
beto-rodriguez merged commit 3af1298 into dev Sep 11, 2025
4 checks passed
@beto-rodriguez
beto-rodriguez deleted the uno-packing branch September 11, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants