Port to Jellyfin 12.0 (net10.0, targetAbi 12.0.0.0)
- csproj: net9.0 -> net10.0, version 2.1.0.0 -> 3.0.0.0 - Jellyfin.Controller 10.*-* -> 12.*-* with ExcludeAssets="runtime" - drop redundant Microsoft.Extensions.Http ref (NU1510 under the .NET 10 SDK; IHttpClientFactory comes from the Microsoft.AspNetCore.App framework ref) - NetAnalyzers 9.0.0 -> 10.0.100 - Endpoints: bare [Authorize] -> [Authorize(Policy = "DefaultAuthorization")] now that legacy authorization is disabled by default - drop unused using in AnilistApi.cs - build.yaml + manifest.json: 3.0.0.0 / abi 12.0.0.0 entry - gitignore local dist/ release-artifact dir Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Extensions.Json;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Common.Net;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Jellyfin.Plugin.AnilistSync.API
|
||||
/// Anilist endpoints.
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[Authorize(Policy = "DefaultAuthorization")]
|
||||
[Route("AnilistSync")]
|
||||
public class Endpoints : ControllerBase
|
||||
{
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<AssemblyVersion>2.1.0.0</AssemblyVersion>
|
||||
<FileVersion>2.1.0.0</FileVersion>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0.0</FileVersion>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<nullable>enable</nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Jellyfin.Controller" Version="10.*-*" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.11" />
|
||||
<PackageReference Include="Jellyfin.Controller" Version="12.*-*" ExcludeAssets="runtime" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Code Analyzers-->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" PrivateAssets="All" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.100" PrivateAssets="All" />
|
||||
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
|
||||
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user