Skip to content

Commit 19afd93

Browse files
committed
change version
1 parent 77a62b1 commit 19afd93

File tree

13 files changed

+34
-46
lines changed

13 files changed

+34
-46
lines changed

App.axaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
43
using Avalonia;
54
using Avalonia.Controls.ApplicationLifetimes;
65
using Avalonia.Data.Core.Plugins;
76
using Avalonix.Model.Media.MediaPlayer;
8-
using Avalonix.Model.Media.PlayBox;
97
using Avalonix.Services.CacheManager;
108
using Avalonix.Services.CommandLineInitializer;
119
using Avalonix.Services.DiskLoader;
@@ -76,7 +74,7 @@ public override void OnFrameworkInitializationCompleted()
7674
DisableAvaloniaDataAnnotationValidation();
7775
desktop.MainWindow = ServiceProvider.GetRequiredService<MainWindow>();
7876
}
79-
77+
8078
base.OnFrameworkInitializationCompleted();
8179
}
8280

Avalonix.csproj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,41 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<Folder Include="github\" />
14-
<AvaloniaResource Include="Assets\**" />
15-
<Folder Include="Model\" />
16-
<Folder Include="Model\Media\Artist\" />
13+
<Folder Include="github\"/>
14+
<AvaloniaResource Include="Assets\**"/>
15+
<Folder Include="Model\"/>
16+
<Folder Include="Model\Media\Artist\"/>
1717
</ItemGroup>
1818

1919

2020
<ItemGroup>
21-
<AvaloniaResource Include="Assets\avalonix-logo.ico" />
22-
<PackageReference Include="Avalonia" Version="11.3.7" />
23-
<PackageReference Include="Avalonia.Desktop" Version="11.3.7" />
24-
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.2" />
25-
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.7" />
21+
<AvaloniaResource Include="Assets\avalonix-logo.ico"/>
22+
<PackageReference Include="Avalonia" Version="11.3.7"/>
23+
<PackageReference Include="Avalonia.Desktop" Version="11.3.7"/>
24+
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.2"/>
25+
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.7"/>
2626
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
2727
<PackageReference Include="Avalonia.Diagnostics" Version="11.3.7">
2828
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
2929
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
3030
</PackageReference>
31-
<PackageReference Include="Avalonia.ReactiveUI" Version="11.3.7" />
31+
<PackageReference Include="Avalonia.ReactiveUI" Version="11.3.7"/>
3232
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0">
3333
<PrivateAssets>all</PrivateAssets>
3434
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3535
</PackageReference>
36-
<PackageReference Include="Material.Avalonia" Version="3.13.4" />
37-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0" />
38-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0-preview.7.25380.108" />
39-
<PackageReference Include="NeoSimpleLogger" Version="1.4.0" />
40-
<PackageReference Include="radio42.Bass.Net.core" Version="2.4.17.8" />
41-
<PackageReference Include="TagLibSharp" Version="2.3.0" />
36+
<PackageReference Include="Material.Avalonia" Version="3.13.4"/>
37+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.0"/>
38+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0-preview.7.25380.108"/>
39+
<PackageReference Include="NeoSimpleLogger" Version="1.4.0"/>
40+
<PackageReference Include="radio42.Bass.Net.core" Version="2.4.17.8"/>
41+
<PackageReference Include="TagLibSharp" Version="2.3.0"/>
4242
</ItemGroup>
4343

4444

4545
<ItemGroup>
46-
<AdditionalFiles Include="Styles\Default.axaml" />
47-
<AdditionalFiles Include="View\SecondaryWindows\PlaylistCreateWindow\PlaylistCreateWindow.axaml" />
46+
<AdditionalFiles Include="Styles\Default.axaml"/>
47+
<AdditionalFiles Include="View\SecondaryWindows\PlaylistCreateWindow\PlaylistCreateWindow.axaml"/>
4848
</ItemGroup>
4949

5050

Model/Media/MediaPlayer/MediaPlayer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Avalonix.Model.Media.MediaPlayer;
99

1010
public class MediaPlayer : IMediaPlayer
1111
{
12+
private readonly Lock _lock = new();
1213
private readonly ILogger _logger;
1314
private readonly ISettingsManager _settingsManager;
1415
private int _stream;
@@ -27,7 +28,6 @@ public MediaPlayer(ILogger logger, ISettingsManager settingsManager)
2728

2829
public event Action<bool>? PlaybackStateChanged;
2930
public event Action? TrackChanged;
30-
private readonly Lock _lock = new();
3131

3232
public void Play(Track.Track track)
3333
{
@@ -57,7 +57,6 @@ public void Play(Track.Track track)
5757
PlaybackStateChanged?.Invoke(false);
5858
TrackChanged?.Invoke();
5959
}
60-
6160
}
6261

6362
public void Stop()

Program.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#define DEBUG
22
using System;
3-
using System.Linq;
4-
using System.Threading;
5-
using System.Threading.Tasks;
63
using Avalonia;
74

85
namespace Avalonix;
96

107
internal static class Program
118
{
12-
private readonly static string _avalonixPipeName = "Avalonix_FilePipe";
13-
9+
private static readonly string _avalonixPipeName = "Avalonix_FilePipe";
10+
1411
[STAThread]
1512
public static void Main(string[] args)
1613
{

Services/CommandLineInitializer/CommandLineInitializer.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.IO;
4-
using System.Reflection;
5-
using System.Runtime.InteropServices;
6-
using System.Security.AccessControl;
7-
using System.Security.Principal;
83
using System.Threading;
9-
using System.Threading.Tasks;
104
using Avalonix.Model.Media.MediaPlayer;
115
using Avalonix.Model.Media.PlayBox;
126
using Avalonix.Services.CacheManager;

Services/VersionManager/VersionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class VersionManager : IVersionManager
88
{
99
private const string ReleaseUrl = "https://github.com/AvalonixPlayer/Avalonix/blob/main/Release";
1010

11-
public Release CurrentRelease => new("2.1.2");
11+
public Release CurrentRelease => new("2.2.0");
1212

1313
public async Task<Release> GetLastRelease()
1414
{

Styles/Controls/Buttons.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Style xmlns="https://github.com/avaloniaui"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3-
3+
44
<Style Selector="Button">
55
<Setter Property="Background" Value="{DynamicResource ButtonsColor}" />
66
<Setter Property="ClipToBounds" Value="False" />

Styles/Controls/Slider.axaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Style xmlns="https://github.com/avaloniaui"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3-
<Style Selector="Slider">
4-
<Setter Property="Width" Value="120" />
5-
<Setter Property="Height" Value="30" />
6-
</Style>
3+
<Style Selector="Slider">
4+
<Setter Property="Width" Value="120" />
5+
<Setter Property="Height" Value="30" />
6+
</Style>
77
</Style>

Styles/Controls/TextBoxes.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<Setter Property="FontWeight" Value="DemiBold" />
66
<Setter Property="MinWidth" Value="250" />
77
<Setter Property="MinHeight" Value="60" />
8-
<Setter Property="MaxWidth" Value="300"></Setter>
8+
<Setter Property="MaxWidth" Value="300" />
99
</Style>
1010
</Style>

Styles/Default.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<StyleInclude Source="Controls/TextBoxes.axaml" />
1212
<StyleInclude Source="Controls/Slider.axaml" />
1313
<Style Selector="ListBox">
14-
<Setter Property="Background" Value="{DynamicResource PanelsColor}"></Setter>
15-
<Setter Property="CornerRadius" Value="10"></Setter>
14+
<Setter Property="Background" Value="{DynamicResource PanelsColor}" />
15+
<Setter Property="CornerRadius" Value="10" />
1616
</Style>
1717
</Styles>

0 commit comments

Comments
 (0)