mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-06 03:38:02 -05:00
- Introduce Android app - Migrate project files to .NET 10, updating dependencies and workflows. - Migrate project to Avalonia 12 - Refactor App.axaml to include a ResourceDictionary for theme management. - Introduce new styles for gamepad navigation and focus rings. - Implement hosted main view management for better application lifecycle handling. - Remove deprecated MainWindow.Mods.cs file and related code. - Update README to reflect changes in project structure and requirements. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
902 B
C#
28 lines
902 B
C#
using Android.App;
|
|
using Android.Content.PM;
|
|
using Android.OS;
|
|
using Android.Views;
|
|
using Avalonia.Android;
|
|
using QuiverLauncher.Services;
|
|
|
|
namespace QuiverLauncher.Android;
|
|
|
|
[Activity(
|
|
Label = "Quiver Launcher",
|
|
Theme = "@style/MyTheme.NoActionBar",
|
|
Icon = "@mipmap/ic_launcher",
|
|
MainLauncher = true,
|
|
LaunchMode = LaunchMode.SingleTop,
|
|
WindowSoftInputMode = SoftInput.AdjustResize,
|
|
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)]
|
|
public class MainActivity : AvaloniaMainActivity
|
|
{
|
|
protected override void OnCreate(Bundle? savedInstanceState)
|
|
{
|
|
QuiverLauncherPaths.AndroidFilesDirProvider = () => FilesDir?.AbsolutePath;
|
|
AppInstallLaunch.Current = new AndroidAppInstallLaunchService(this);
|
|
QuiverLauncherPaths.EnsureUserDataRootExists();
|
|
base.OnCreate(savedInstanceState);
|
|
}
|
|
}
|