Skip to content

Commit fa10863

Browse files
committed
Update
1 parent 38de430 commit fa10863

File tree

26 files changed

+3664
-27750
lines changed

26 files changed

+3664
-27750
lines changed

build/Build.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Nuke.Common.Tools.DotNet;
77
using Nuke.Common.Tools.MSBuild;
88
using Nuke.Common.Utilities.Collections;
9-
using static Nuke.Common.IO.FileSystemTasks;
109
using static Nuke.Common.Tools.DotNet.DotNetTasks;
1110
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
1211

@@ -135,7 +134,7 @@ void BuildApp(MSBuildTargetPlatform platform)
135134
Serilog.Log.Information("Moving APK files to artifacts directory...");
136135
SourceDirectory
137136
.GlobFiles("**/bin/**/*-Signed.apk")
138-
.ForEach(file => MoveFileToDirectory(file, ArtifactsDirectory));
137+
.ForEach(file => file.MoveToDirectory(ArtifactsDirectory));
139138
Serilog.Log.Information("Successfully moved APK files.");
140139
});
141140

build/Configuration.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@ public class Configuration : Enumeration
99
public static Configuration Debug = new Configuration { Value = nameof(Debug) };
1010
public static Configuration Release = new Configuration { Value = nameof(Release) };
1111

12-
public static implicit operator string(Configuration configuration)
13-
{
14-
return configuration.Value;
15-
}
12+
public static implicit operator string(Configuration configuration) => configuration.Value;
1613
}

build/build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Nuke.Common" Version="9.0.4" />
14+
<PackageReference Include="Nuke.Common" Version="8.1.4" />
1515
<PackageDownload Include="GitVersion.Tool" Version="[5.10.3]" />
1616
</ItemGroup>
1717

src/Camelotia.Presentation.Avalonia/Services/AvaloniaFileManager.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using System;
2-
using System.IO;
3-
using System.Linq;
4-
using System.Threading.Tasks;
51
using Avalonia.Controls;
62
using Camelotia.Services.Interfaces;
73

@@ -25,7 +21,7 @@ public async Task<Stream> OpenWrite(string name)
2521
{
2622
var fileDialog = new OpenFileDialog { AllowMultiple = false };
2723
var files = await fileDialog.ShowAsync(_window).ConfigureAwait(false);
28-
var path = files.First();
24+
var path = files[0];
2925

3026
var attributes = File.GetAttributes(path);
3127
var isFolder = attributes.HasFlag(FileAttributes.Directory);
@@ -35,4 +31,4 @@ public async Task<Stream> OpenWrite(string name)
3531
var name = Path.GetFileName(path);
3632
return (name, stream);
3733
}
38-
}
34+
}

src/Camelotia.Presentation.Avalonia/Services/AvaloniaYandexAuthenticator.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using System;
2-
using System.Diagnostics;
1+
using System.Diagnostics;
32
using System.Net;
43
using System.Text;
5-
using System.Threading.Tasks;
64
using Camelotia.Services.Interfaces;
75

86
namespace Camelotia.Presentation.Avalonia.Services;
@@ -42,4 +40,4 @@ public async Task<string> ReceiveCode(Uri uri, Uri returnUrl)
4240
listener.Close();
4341
return code;
4442
}
45-
}
43+
}

src/Camelotia.Presentation.Xamarin.Android/Camelotia.Presentation.Xamarin.Droid.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@
6262
<PackageReference Include="Xamarin.Android.Support.Compat" Version="28.0.0.3" />
6363
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.3" />
6464
</ItemGroup>
65-
<ItemGroup>
66-
<Reference Include="System.Threading.Tasks.Extensions">
67-
<HintPath>$(UserProfile)\.nuget\packages\system.threading.tasks.extensions\4.5.1\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
68-
</Reference>
69-
</ItemGroup>
7065
<ItemGroup>
7166
<Compile Include="MainActivity.cs" />
7267
<Compile Include="Renderers\AccentButtonRenderer.cs" />
@@ -77,7 +72,6 @@
7772
<Compile Include="WebActivity.cs" />
7873
</ItemGroup>
7974
<ItemGroup>
80-
<None Include="Assets\AboutAssets.txt" />
8175
<None Include="Properties\AndroidManifest.xml" />
8276
</ItemGroup>
8377
<ItemGroup>
@@ -126,4 +120,4 @@
126120
<Target Name="Pack">
127121
</Target>
128122
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
129-
</Project>
123+
</Project>

src/Camelotia.Presentation.Xamarin.Android/MainActivity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Camelotia.Presentation.Xamarin.Droid.Services;
1212
using Camelotia.Services;
1313
using ReactiveUI;
14+
using ReactiveUI.XamForms;
1415

1516
namespace Camelotia.Presentation.Xamarin.Droid
1617
{

src/Camelotia.Presentation.Xamarin.Android/Renderers/AccentButtonRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ private void ApplyColors(VisualElement control)
5656
Control.SetTextColor(foreground);
5757
}
5858
}
59-
}
59+
}

src/Camelotia.Presentation.Xamarin.Android/Resources/Resource.designer.cs

Lines changed: 3647 additions & 27636 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Camelotia.Presentation.Xamarin.Android/Resources/layout/Tabbar.axml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
77
android:background="?attr/colorPrimary"
8-
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
9-
app:tabIndicatorColor="@android:color/white"
10-
app:tabGravity="fill"
11-
app:tabMode="fixed" />
8+
android:theme="@android:style/Theme.DeviceDefault.Light.DarkActionBar" />

0 commit comments

Comments
 (0)