This commit is contained in:
Javier Suárez 2022-11-17 21:02:08 +01:00
Родитель a5212fe59f
Коммит 628377d7c1
12 изменённых файлов: 60 добавлений и 7 удалений

Двоичные данные
icon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 8.9 KiB

Просмотреть файл

@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<RootNamespace>AlohaKit.Animations.Sample</RootNamespace>
<UseMaui>true</UseMaui>

Просмотреть файл

@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
@ -23,10 +23,11 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/jsuarezruiz/AlohaKit.Animations</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>dotnet,dotnet-maui,maui,animation</PackageTags>
<PackageTags>dotnet,dotnet-maui,maui,animation,alohakit</PackageTags>
<PackageId>AlohaKit.Animations</PackageId>
<Copyright>Javier Suárez Ruiz</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
@ -36,6 +37,10 @@
</ItemGroup>
<ItemGroup>
<None Include="..\..\icon.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>

Просмотреть файл

@ -90,6 +90,8 @@
{
_animateTimerCancellationTokenSource = tokenSource;
#pragma warning disable CS0618 // Type or member is obsolete
#pragma warning disable CS0612 // Type or member is obsolete
Device.BeginInvokeOnMainThread(async () =>
{
if (!_animateTimerCancellationTokenSource.IsCancellationRequested)
@ -99,6 +101,8 @@
RepeatAnimation(_animateTimerCancellationTokenSource);
}
});
#pragma warning restore CS0612 // Type or member is obsolete
#pragma warning restore CS0618 // Type or member is obsolete
}
}
}

Просмотреть файл

@ -15,10 +15,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("BounceIn", BounceIn(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}
@ -52,10 +56,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("BounceOut", BounceOut(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -26,10 +26,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(async () =>
{
await Target.ColorTo(fromColor, ToColor, c => Target.BackgroundColor = c, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}
}

Просмотреть файл

@ -54,10 +54,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("FadeIn", FadeIn(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}
@ -103,10 +107,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("FadeOut", FadeOut(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -30,10 +30,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("Flip", Flip(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -14,10 +14,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("Hearth", Hearth(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -16,10 +16,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("Jump", Jump(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -16,10 +16,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("Shake", Shake(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}

Просмотреть файл

@ -14,10 +14,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("TurnstileIn", TurnstileIn(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}
@ -43,10 +47,14 @@
return Task.Run(() =>
{
#pragma warning disable CS0612 // Type or member is obsolete
#pragma warning disable CS0618 // Type or member is obsolete
Device.BeginInvokeOnMainThread(() =>
{
Target.Animate("TurnstileOut", TurnstileOut(), 16, Convert.ToUInt32(Duration));
});
#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0612 // Type or member is obsolete
});
}