Skip to content

Commit

Permalink
Merge pull request #8 from ahmed-abdelrazek/nugets
Browse files Browse the repository at this point in the history
Update All Nuget and now project uses .net7
  • Loading branch information
ahmed-abdelrazek committed May 16, 2023
2 parents 8439f81 + 259dc22 commit a0b718c
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 322 deletions.
6 changes: 4 additions & 2 deletions src/PostDroid/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public override void OnFrameworkInitializationCompleted()
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
_notificationManager = new WindowNotificationManager(desktop.MainWindow);
_notificationManager.Position = NotificationPosition.BottomRight;
_notificationManager = new WindowNotificationManager(desktop.MainWindow)
{
Position = NotificationPosition.BottomRight
};
desktop.MainWindow.DataContext = new MainWindowViewModel(_notificationManager);
}

Expand Down
7 changes: 7 additions & 0 deletions src/PostDroid/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Avalonia;
using Avalonia.ReactiveUI;
using Xilium.CefGlue;
using Xilium.CefGlue.Common;

namespace SuperPostDroidPunk
{
Expand All @@ -15,6 +17,11 @@ public static void Main(string[] args) => BuildAvaloniaApp()
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
{
UseWindowsUIComposition = false
})
.AfterSetup(_ => CefRuntimeLoader.Initialize(new CefSettings()))
.LogToTrace()
.UseReactiveUI();
}
Expand Down
18 changes: 9 additions & 9 deletions src/PostDroid/SuperPostDroidPunk.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Nullable>enable</Nullable>
<PackageIcon>SuperPostDroidPunk-Logo.png</PackageIcon>
Expand All @@ -20,14 +20,14 @@
<None Remove="Assets\SuperPostDroidPunk-mac.icns" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.10" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.10" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.10" />
<PackageReference Include="CefGlue.Avalonia" Version="91.4472.15" />
<PackageReference Include="Flurl" Version="3.0.2" />
<PackageReference Include="LiteDB" Version="5.0.13" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="Avalonia" Version="0.10.19" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.19" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.19" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.19" />
<PackageReference Include="CefGlue.Avalonia" Version="106.5249.7" />
<PackageReference Include="Flurl" Version="3.0.7" />
<PackageReference Include="LiteDB" Version="5.0.16" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<None Include="Assets\SuperPostDroidPunk-Logo.png">
Expand Down
Loading

0 comments on commit a0b718c

Please sign in to comment.