Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
-->
<HarfBuzzWASMVersion>8.3.1.1</HarfBuzzWASMVersion>

<!--
Useful to toggle between using project references or nuget references
-->
<UseNuGetForSamples>true</UseNuGetForSamples>
<UseNuGetForGenerator>false</UseNuGetForGenerator>

</PropertyGroup>

<!--
Expand All @@ -38,7 +44,6 @@
<VSYNC>true</VSYNC>
<FPS>30</FPS>
<Diagnose>false</Diagnose>
<UsesUnoSkiaRenderer>true</UsesUnoSkiaRenderer>
</PropertyGroup>

<PropertyGroup Condition="
Expand All @@ -48,10 +53,10 @@
$(TargetFramework.Contains('-android')) or
$(TargetFramework.Contains('-ios')) or
$(TargetFramework.Contains('-maccatalyst')) or
$(TargetFramework.Contains('-desktop')) or
$(TargetFramework.Contains('-browserwasm'))
$(TargetFramework.Contains('-tizen'))
)">
<DefineConstants>$(DefineConstants);HAS_UI_LVC</DefineConstants>
<DefineConstants>$(DefineConstants);HAS_OS_LVC</DefineConstants>
<HasOS>true</HasOS>
</PropertyGroup>

</Project>
1 change: 0 additions & 1 deletion LiveCharts.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
</Folder>
<Folder Name="/Solution Items/RenderingSettings/">
<File Path="build/RenderSettings.Build.props" />
<File Path="build/RenderSettings.Uno.Build.props" />
</Folder>
<Folder Name="/Tests/">
<Project Path="tests/LiveChartsCore.UnitTesting/LiveChartsCore.UnitTesting.csproj">
Expand Down
12 changes: 0 additions & 12 deletions build/RenderSettings.Uno.Build.props

This file was deleted.

1 change: 0 additions & 1 deletion build/pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ param([string]$configuration = "Debug", [string]$nupkgOutputPath = "./nupkg")

[Project[]]$projects = @(
[Project]::new("./src/LiveChartsCore/LiveChartsCore.csproj")
[Project]::new("./src/LiveChartsCore.Behaviours/LiveChartsCore.Behaviours.csproj")
[Project]::new("./src/skiasharp/LiveChartsCore.SkiaSharp/LiveChartsCore.SkiaSharpView.csproj")
[Project]::new("./src/skiasharp/LiveChartsCore.SkiaSharp.Avalonia/LiveChartsCore.SkiaSharpView.Avalonia.csproj")
[Project]::new("./src/skiasharp/LiveChartsCore.SkiaSharp.WinForms/LiveChartsCore.SkiaSharpView.WinForms.csproj")
Expand Down
12 changes: 10 additions & 2 deletions samples/AvaloniaSample/AvaloniaSample.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../../Directory.Build.props"/>
<Import Project="../../Directory.Build.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down Expand Up @@ -29,7 +29,15 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.Avalonia\LiveChartsCore.SkiaSharpView.Avalonia.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.Avalonia" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.Avalonia\LiveChartsCore.SkiaSharpView.Avalonia.csproj" />
</ItemGroup>

</Project>
10 changes: 8 additions & 2 deletions samples/BlazorSample/BlazorSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Blazor\LiveChartsCore.SkiaSharpView.Blazor.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
<ProjectReference Include="..\..\generators\LiveChartsGenerators\LiveChartsGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.Blazor" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Blazor\LiveChartsCore.SkiaSharpView.Blazor.csproj" />
</ItemGroup>

</Project>
10 changes: 8 additions & 2 deletions samples/EtoFormsSample/EtoFormsSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Eto\LiveChartsCore.SkiaSharpView.Eto.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
<ProjectReference Include="..\..\generators\LiveChartsGenerators\LiveChartsGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Images\livecharts.png" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.Eto" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Eto\LiveChartsCore.SkiaSharpView.Eto.csproj" />
</ItemGroup>

</Project>
9 changes: 8 additions & 1 deletion samples/MauiSample/MauiSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Maui\LiveChartsCore.SkiaSharpView.Maui.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.90" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.90" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.Maui" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Maui\LiveChartsCore.SkiaSharpView.Maui.csproj" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions samples/UnoPlatformSample/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
See https://aka.platform.uno/using-uno-sdk#implicit-packages for more information regarding the Implicit Packages.
-->
<ItemGroup>
<PackageVersion Include="LiveChartsCore.SkiaSharpView.Uno.WinUI" Version="$(LiveChartsVersion)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,14 @@
Localization;
Navigation;
ThemeService;
SkiaRenderer;
</UnoFeatures>

<!--
TO ENABLE SKIARENDERER, USE THE DIRECTORY.BUILD.PROPERTIES IN THE
ROOT OF THE REPO.
-->

</PropertyGroup>

<Import Project="./../Directory.Build.props"/>
<Import Project="./../../../Directory.Build.props"/>
<Import Project="./../../../build/RenderSettings.Build.props"/>
<Import Project="./../../../build/RenderSettings.Uno.Build.props"/>

<ItemGroup>
<Page Include="..\..\WinUISample\WinUISample\Samples\**\*.xaml">
Expand All @@ -60,8 +55,15 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Uno.WinUI\LiveChartsCore.SkiaSharpView.Uno.WinUI.csproj" />
<ProjectReference Include="..\..\ViewModelsSamples\ViewModelsSamples.csproj" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.Uno.WinUI" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.Uno.WinUI\LiveChartsCore.SkiaSharpView.Uno.WinUI.csproj" />
</ItemGroup>

</Project>
9 changes: 8 additions & 1 deletion samples/WPFSample/WPFSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.WPF\LiveChartsCore.SkiaSharpView.WPF.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.WPF" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.WPF\LiveChartsCore.SkiaSharpView.WPF.csproj" />
</ItemGroup>

<ItemGroup>
<Resource Include="Images\livecharts.png" />
</ItemGroup>
Expand Down
10 changes: 8 additions & 2 deletions samples/WinFormsSample/WinFormsSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.WinForms\LiveChartsCore.SkiaSharpView.WinForms.csproj" />
<ProjectReference Include="..\ViewModelsSamples\ViewModelsSamples.csproj" />
<ProjectReference Include="..\..\generators\LiveChartsGenerators\LiveChartsGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.WinForms" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\src\skiasharp\LiveChartsCore.SkiaSharp.WinForms\LiveChartsCore.SkiaSharpView.WinForms.csproj" />
</ItemGroup>

</Project>
9 changes: 8 additions & 1 deletion samples/WinUISample/WinUISample/WinUISample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.WinUI\LiveChartsCore.SkiaSharpView.WinUI.csproj" />
<ProjectReference Include="..\..\ViewModelsSamples\ViewModelsSamples.csproj" />
</ItemGroup>

<ItemGroup Condition="$(UseNuGetForSamples)">
<PackageReference Include="LiveChartsCore.SkiaSharpView.WinUI" Version="$(LiveChartsVersion)" />
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForSamples)">
<ProjectReference Include="..\..\..\src\skiasharp\LiveChartsCore.SkiaSharpView.WinUI\LiveChartsCore.SkiaSharpView.WinUI.csproj" />
</ItemGroup>

</Project>
9 changes: 8 additions & 1 deletion src/LiveChartsCore/LiveChartsCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,18 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<ItemGroup Condition="$(UseNuGetForGenerator)">
<PackageReference Include="LiveChartsGenerators" Version="$(LiveChartsCodeGenVersion)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="!$(UseNuGetForGenerator)">
<ProjectReference Include="..\..\generators\LiveChartsGenerators\LiveChartsGenerators.csproj" >
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/_Shared.Native/Platforms/Android/NativeTicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if ANDROID && !__UNO_SKIA__
#if ANDROID

// reachable on maui android or uno android (without skia renderer)

Expand Down
2 changes: 1 addition & 1 deletion src/_Shared.Native/Platforms/Android/PointerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if ANDROID && !__UNO_SKIA__
#if ANDROID

// reachable on maui android or uno android (without skia renderer)

Expand Down
2 changes: 1 addition & 1 deletion src/_Shared.Native/Platforms/Mac/NativeTicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if (IOS || MACCATALYST) && !__UNO_SKIA__
#if IOS || MACCATALYST

// reachable on maui ios/catalys or uno ios/catalyst (without skia renderer)

Expand Down
2 changes: 1 addition & 1 deletion src/_Shared.Native/Platforms/Mac/PointerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if (MACCATALYST || IOS) && !__UNO_SKIA__
#if MACCATALYST || IOS

// reachable on maui ios/catalys or uno ios/catalyst (without skia renderer)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if !HAS_UI_LVC
#if !HAS_OS_LVC && !UNO_LVC

// This code is reached maybe only on test environments.
// HAS_UI is true when the target framework contains any of the following:
// -windows, -android, -ios, -maccatalyst, -tizen, -desktop, -browserwasm
// HAS_OS_LVC is true when the target framework contains any of the following:
// -windows, -android, -ios, -maccatalyst, -tizen

using LiveChartsCore.Motion;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if !HAS_UI_LVC
#if !HAS_OS_LVC && !UNO_LVC

// This code is reached maybe only on test environments.
// HAS_UI is true when the target framework contains any of the following:
// -windows, -android, -ios, -maccatalyst, -tizen, -desktop, -browserwasm
// HAS_OS_LVC is true when the target framework contains any of the following:
// -windows, -android, -ios, -maccatalyst, -tizen

namespace LiveChartsCore.Native;

Expand Down
Loading
Loading