Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
清理代码引用及更新依赖 (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy committed Jun 29, 2022
1 parent abbfc0f commit 2db0a4c
Show file tree
Hide file tree
Showing 37 changed files with 19 additions and 51 deletions.
1 change: 1 addition & 0 deletions App.ruleset
Expand Up @@ -78,6 +78,7 @@
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA0001" Action="None" />
<Rule Id="SA1000" Action="None" />
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1309" Action="None" />
<Rule Id="SA1402" Action="None" />
Expand Down
2 changes: 1 addition & 1 deletion src/App/App.csproj
Expand Up @@ -1357,7 +1357,7 @@
<Version>1.1.150</Version>
</PackageReference>
<PackageReference Include="Splat">
<Version>14.3.1</Version>
<Version>14.3.4</Version>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers">
<Version>1.1.118</Version>
Expand Down
2 changes: 0 additions & 2 deletions src/App/Controls/App/TipPopup.xaml.cs
@@ -1,7 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using System.Threading.Tasks;
using Bili.App.Pages.Desktop;
using Bili.Models.Enums.App;
using Windows.UI.Xaml;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Controls/Article/ArticleItem/ArticleItem.cs
Expand Up @@ -20,7 +20,7 @@ public sealed class ArticleItem : ReactiveControl<ArticleItemViewModel>, IRepeat
public ArticleItem() => DefaultStyleKey = typeof(ArticleItem);

/// <inheritdoc/>
public Size GetHolderSize() => new (210, 248);
public Size GetHolderSize() => new(210, 248);

/// <inheritdoc/>
public void ChangeLayout(Orientation orientation)
Expand Down
1 change: 0 additions & 1 deletion src/App/Controls/Common/HorizontalRepeaterView.xaml.cs
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using Bili.ViewModels.Uwp;
using Bili.ViewModels.Uwp.Core;
using Splat;
using Windows.UI.Xaml;
Expand Down
2 changes: 0 additions & 2 deletions src/App/Controls/Community/CommentMainView/CommentMainView.cs
Expand Up @@ -3,9 +3,7 @@
using System;
using Bili.Models.App.Other;
using Bili.ViewModels.Uwp.Community;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;

namespace Bili.App.Controls.Community
{
Expand Down
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using System.Collections.Generic;
using Atelier39;
using Microsoft.Graphics.Canvas.UI.Xaml;
Expand Down
1 change: 0 additions & 1 deletion src/App/Controls/Favorite/PgcFavoritePanel.xaml.cs
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Linq;
using Bili.ViewModels.Uwp;
using Bili.ViewModels.Uwp.Base;
using Bili.ViewModels.Uwp.Core;
using Bili.ViewModels.Uwp.Pgc;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Controls/Live/LiveItem/LiveItem.cs
Expand Up @@ -21,7 +21,7 @@ public LiveItem()
=> DefaultStyleKey = typeof(LiveItem);

/// <inheritdoc/>
public Size GetHolderSize() => new (210, 248);
public Size GetHolderSize() => new(210, 248);

/// <inheritdoc/>
public void ChangeLayout(Orientation orientation)
Expand Down
1 change: 0 additions & 1 deletion src/App/Controls/Player/BiliMediaPlayer/BiliMediaPlayer.cs
@@ -1,7 +1,6 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using System.Diagnostics;
using Bili.App.Controls.Danmaku;
using Bili.ViewModels.Uwp.Core;
using Windows.UI.Input;
Expand Down
1 change: 0 additions & 1 deletion src/App/Controls/Player/DownloadOptionsPanel.xaml.cs
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using Bili.ViewModels.Uwp.Common;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
Expand Down
1 change: 0 additions & 1 deletion src/App/Controls/Player/PgcExtraView.xaml.cs
@@ -1,7 +1,6 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using Bili.ViewModels.Uwp;
using Bili.ViewModels.Uwp.Pgc;
using ReactiveUI;
using Splat;
Expand Down
2 changes: 0 additions & 2 deletions src/App/Controls/Search/SearchVideoView.xaml.cs
@@ -1,7 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using Windows.UI.Xaml;

namespace Bili.App.Controls
{
/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/App/Pages/Desktop/Overlay/FansPage.xaml.cs
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using Bili.Models.Data.User;
using Bili.ViewModels.Uwp.Community;
using Windows.UI.Xaml.Navigation;
Expand Down
4 changes: 0 additions & 4 deletions src/App/Pages/Desktop/Overlay/FollowsPage.xaml.cs
@@ -1,11 +1,7 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using Bili.App.Controls;
using Bili.Models.Data.User;
using Bili.ViewModels.Uwp;
using Bili.ViewModels.Uwp.Community;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Navigation;

namespace Bili.App.Pages.Desktop.Overlay
Expand Down
1 change: 0 additions & 1 deletion src/App/Pages/RootPage.xaml.cs
Expand Up @@ -11,7 +11,6 @@
using Bili.App.Controls.Dialogs;
using Bili.App.Pages.Desktop.Overlay;
using Bili.Models.App.Args;
using Bili.Models.Data.Video;
using Bili.Models.Enums;
using Bili.Models.Enums.App;
using Bili.ViewModels.Uwp.Account;
Expand Down
1 change: 0 additions & 1 deletion src/App/Pages/Xbox/Overlay/VideoPlayerPage.xaml.cs
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using Bili.App.Pages.Base;
using Bili.Models.Data.Local;
using Bili.Models.Data.Video;
Expand Down
4 changes: 2 additions & 2 deletions src/Lib/DI.App/DI.App.csproj
Expand Up @@ -129,12 +129,12 @@
<Version>6.2.14</Version>
</PackageReference>
<PackageReference Include="Splat.DependencyInjection.SourceGenerator">
<Version>1.1.33</Version>
<Version>1.1.69</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Splat.NLog">
<Version>14.3.1</Version>
<Version>14.3.4</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Lib/DI.Task/DI.Task.csproj
Expand Up @@ -129,7 +129,7 @@
<Version>6.2.14</Version>
</PackageReference>
<PackageReference Include="Splat.DependencyInjection.SourceGenerator">
<Version>1.1.33</Version>
<Version>1.1.69</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
Expand Down
Expand Up @@ -170,7 +170,7 @@ public async Task<DynamicView> GetDynamicComprehensiveListAsync()
var request = await _httpProvider.GetRequestMessageAsync(Community.DynamicAll, req, true);
var response = await _httpProvider.SendAsync(request);
var result = await _httpProvider.ParseAsync(response, DynAllReply.Parser);
_comprehensiveDynamicOffset = new (result.DynamicList.HistoryOffset, result.DynamicList.UpdateBaseline);
_comprehensiveDynamicOffset = new(result.DynamicList.HistoryOffset, result.DynamicList.UpdateBaseline);
return _dynamicAdapter.ConvertToDynamicView(result);
}

Expand All @@ -189,7 +189,7 @@ public async Task<DynamicView> GetDynamicVideoListAsync()
var request = await _httpProvider.GetRequestMessageAsync(Community.DynamicVideo, req, true);
var response = await _httpProvider.SendAsync(request);
var result = await _httpProvider.ParseAsync(response, DynVideoReply.Parser);
_videoDynamicOffset = new (result.DynamicList.HistoryOffset, result.DynamicList.UpdateBaseline);
_videoDynamicOffset = new(result.DynamicList.HistoryOffset, result.DynamicList.UpdateBaseline);
return _dynamicAdapter.ConvertToDynamicView(result);
}

Expand Down Expand Up @@ -218,11 +218,11 @@ public async Task<bool> LikeDynamicAsync(string dynamicId, bool isLike, string u

/// <inheritdoc/>
public void ResetVideoDynamicStatus()
=> _videoDynamicOffset = new (string.Empty, string.Empty);
=> _videoDynamicOffset = new(string.Empty, string.Empty);

/// <inheritdoc/>
public void ResetComprehensiveDynamicStatus()
=> _comprehensiveDynamicOffset = new (string.Empty, string.Empty);
=> _comprehensiveDynamicOffset = new(string.Empty, string.Empty);

/// <inheritdoc/>
public void ResetMainCommentsStatus()
Expand Down
2 changes: 1 addition & 1 deletion src/Lib/Lib.Implementation/Lib.Implementation.csproj
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.21.1" />
<PackageReference Include="Google.Protobuf" Version="3.21.2" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.43" />
<PackageReference Include="Websocket.Client" Version="4.4.43" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/Lib/Lib.Interfaces/IFavoriteProvider.cs
Expand Up @@ -2,7 +2,6 @@

using System.Collections.Generic;
using System.Threading.Tasks;
using Bili.Models.BiliBili;
using Bili.Models.Data.Article;
using Bili.Models.Data.Pgc;
using Bili.Models.Data.Video;
Expand Down
1 change: 0 additions & 1 deletion src/Lib/Lib.Interfaces/IPgcProvider.cs
Expand Up @@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Bili.Models.App;
using Bili.Models.BiliBili;
using Bili.Models.Data.Appearance;
using Bili.Models.Data.Pgc;
using Bili.Models.Enums;
Expand Down
2 changes: 1 addition & 1 deletion src/Lib/SignIn.Uwp/SignIn.Uwp.csproj
Expand Up @@ -137,7 +137,7 @@
<Version>1.0.0</Version>
</PackageReference>
<PackageReference Include="Splat.SimpleInjector">
<Version>14.3.1</Version>
<Version>14.3.4</Version>
</PackageReference>
<PackageReference Include="ZXing.Net">
<Version>0.16.8</Version>
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Models.Data/Appearance/Image.cs
Expand Up @@ -75,7 +75,7 @@ public Image()
/// </summary>
/// <returns>图片地址. 如果没有修改过图片链接则返回 <see cref="Uri"/>.</returns>
public Uri GetSourceUri()
=> new (_sourceUri ?? Uri);
=> new(_sourceUri ?? Uri);

/// <inheritdoc/>
public override bool Equals(object obj) => obj is Image image && _sourceUri == image._sourceUri;
Expand Down
2 changes: 0 additions & 2 deletions src/Models/Models.Data/Video/VideoFavoriteFolderGroup.cs
@@ -1,7 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System.Collections.Generic;

namespace Bili.Models.Data.Video
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Models.gRPC/Models.gRPC.csproj
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.21.1" />
<PackageReference Include="Google.Protobuf" Version="3.21.2" />
<PackageReference Include="Grpc.Net.Client" Version="2.46.0" />
<PackageReference Include="Grpc.Tools" Version="2.47.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks/Tasks.csproj
Expand Up @@ -126,7 +126,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf">
<Version>3.21.1</Version>
<Version>3.21.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.14</Version>
Expand Down
Expand Up @@ -5,7 +5,6 @@
using System.Reactive;
using Bili.Lib.Interfaces;
using Bili.Models.Data.Community;
using Bili.Models.Data.User;
using Bili.Toolkit.Interfaces;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
Expand Down
@@ -1,7 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System;
using System.Collections.ObjectModel;
using Bili.Lib.Interfaces;
using Bili.Toolkit.Interfaces;
using ReactiveUI.Fody.Helpers;
Expand Down
@@ -1,7 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System.Reactive;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;

namespace Bili.ViewModels.Uwp.Community
Expand Down
Expand Up @@ -95,7 +95,7 @@ protected override async Task GetDataAsync()
}

_caches.Remove(CurrentType.Type);
_caches.Add(CurrentType.Type, new (Items.Select(p => p.Information).ToList(), _isEnd));
_caches.Add(CurrentType.Type, new(Items.Select(p => p.Information).ToList(), _isEnd));
IsEmpty = Items.Count == 0;
_accountViewModel.InitializeUnreadCommand.Execute().Subscribe();
}
Expand Down
Expand Up @@ -6,9 +6,7 @@
using Bili.Lib.Interfaces;
using Bili.Models.App.Args;
using Bili.Models.Data.Local;
using Bili.Models.Data.Video;
using Bili.Toolkit.Interfaces;
using Bili.ViewModels.Uwp.Account;
using Bili.ViewModels.Uwp.Article;
using Bili.ViewModels.Uwp.Pgc;
using Microsoft.Toolkit.Uwp.Connectivity;
Expand Down
@@ -1,6 +1,5 @@
// Copyright (c) Richasy. All rights reserved.

using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reactive;
using Bili.Lib.Interfaces;
Expand Down
Expand Up @@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Linq;
using Bili.Models.Data.Appearance;
using Bili.Models.Enums;
using ReactiveUI.Fody.Helpers;

namespace Bili.ViewModels.Uwp.Search
Expand Down
4 changes: 2 additions & 2 deletions src/ViewModels/ViewModels.Uwp/ViewModels.Uwp.csproj
Expand Up @@ -230,10 +230,10 @@
<Version>18.2.5</Version>
</PackageReference>
<PackageReference Include="Splat">
<Version>14.3.1</Version>
<Version>14.3.4</Version>
</PackageReference>
<PackageReference Include="Splat.DependencyInjection.SourceGenerator">
<Version>1.1.33</Version>
<Version>1.1.69</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 2db0a4c

Please sign in to comment.