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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,7 @@ msbuild.binlog
LottieGenOutput-*/

# Visual Studio debugging configuration file.
launchSettings.json
launchSettings.json

# Nuget Package files.
pack/
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<AssemblyName>CommunityToolkit.WinUI.Lottie</AssemblyName>
<PackageId>CommunityToolkit.WinUI.Lottie</PackageId>
<PackageTags>WinUI3 Toolkit Windows Animations Lottie XAML</PackageTags>
<IsPackable>True</IsPackable>

<Nullable>enable</Nullable>
<CsWinRTIncludes>Microsoft</CsWinRTIncludes>
Expand Down
1 change: 0 additions & 1 deletion Lottie-Windows/Lottie-Windows.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<!-- Nuget props-->
<Description>This library provides the LottieVisualSource which is consumed by the Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer to render Lottie JSON files.</Description>
<IsPackable>True</IsPackable>

<LangVersion>latest</LangVersion>
<DocumentationFile>bin\AnyCPU\Release\CommunityToolkit.WinUI.Lottie.xml</DocumentationFile>
Expand Down
54 changes: 54 additions & 0 deletions build/Lottie-Windows-Uwp.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>CommunityToolkit.Uwp.Lottie</id>
<version>0.0.0-SpecifyVersionOnCommandline</version>
<authors>Microsoft.Toolkit</authors>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<licenseUrl>https://github.com/windows-toolkit/Lottie-Windows/blob/master/license.md</licenseUrl>
<projectUrl>https://github.com/windows-toolkit/Lottie-Windows</projectUrl>
<iconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png</iconUrl>
<description>This library provides the LottieVisualSource which is consumed by the Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer to render Lottie JSON files in runtime.</description>
<releaseNotes>Release https://github.com/windows-toolkit/Lottie-Windows/releases</releaseNotes>
<copyright>(c) .NET Foundation and Contributors. All rights reserved.</copyright>
<tags>UWP Toolkit Windows Animations Lottie XAML</tags>
<dependencies>
<group targetFramework="net9.0-windows10.0.26100">
<dependency id="Microsoft.UI.Xaml" version="2.8.7" />
<dependency id="Microsoft.Windows.CsWinRT" version="2.2.0" />
<dependency id="Win2D.uwp" version="1.28.2" />
</group>
<group targetFramework="uap10.0.16299">
<dependency id="Microsoft.UI.Xaml" version="2.5.0" exclude="Build,Analyzers" />
<dependency id="Win2D.uwp" version="1.25.0" exclude="Build,Analyzers" />
<dependency id="System.Memory" version="4.5.5" exclude="Build,Analyzers" />
<dependency id="System.Numerics.Vectors" version="4.5.0" exclude="Build,Analyzers" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" exclude="Build,Analyzers" />
<dependency id="System.Text.Encodings.Web" version="9.0.0" exclude="Build,Analyzers" />
<dependency id="System.Text.Json" version="9.0.0" exclude="Build,Analyzers" />
<dependency id="System.ValueTuple" version="4.5.0" exclude="Build,Analyzers" />
</group>
</dependencies>
<frameworkReferences>
<group targetFramework="net9.0-windows10.0.26100">
<frameworkReference name="Microsoft.Windows.SDK.NET.Ref.Xaml" />
</group>
</frameworkReferences>
</metadata>

<files>
<file src="pack\lib\net9.0-windows10.0.26100.0\CommunityToolkit.Uwp.Lottie.dll"
target="lib\net9.0-windows10.0.26100\" />
<file src="pack\lib\net9.0-windows10.0.26100.0\CommunityToolkit.WinUI.Lottie.xml"
target="lib\net9.0-windows10.0.26100\" />
<file src="pack\lib\net9.0-windows10.0.26100.0\CommunityToolkit.Uwp.Lottie.pri"
target="lib\net9.0-windows10.0.26100\" />

<file src="pack\lib\uap10.0.16299\CommunityToolkit.WinUI.Lottie.winmd"
target="lib\uap10.0.16299\" />
<file src="pack\lib\uap10.0.16299\CommunityToolkit.WinUI.Lottie.pri"
target="lib\uap10.0.16299\" />
<file src="pack\lib\uap10.0.16299\CommunityToolkit.WinUI.Lottie.xml"
target="lib\uap10.0.16299\" />
</files>
</package>
14 changes: 14 additions & 0 deletions build/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,20 @@ Task("Package")
// Invoke the pack target to generate the code to be packed.
MSBuildSolution("Pack", ("GenerateLibraryLayout", "true"), ("PackageOutputPath", nupkgDir));

var stage = Directory($"{buildDir}/pack/lib");

var net9Dir = stage + Directory("net9.0-windows10.0.26100.0");
var uapDir = stage + Directory("uap10.0.16299");

// clean & recreate
CleanDirectory(stage);
EnsureDirectoryExists(net9Dir);
EnsureDirectoryExists(uapDir);

// copy the Release builds
CopyFiles($"{baseDir}/Lottie-Windows/Lottie-Windows-UwpNet/bin/AnyCPU/{configuration}/net9.0-windows10.0.26100.0/*", net9Dir);
CopyFiles($"{baseDir}/Lottie-Windows/Lottie-Windows-Uwp/bin/AnyCPU/{configuration}/uap10.0.16299/*", uapDir);

foreach (var nuspec in GetFiles("./*.nuspec"))
{
var nuGetPackSettings = new NuGetPackSettings
Expand Down