Revert "build(android): downgrade Avalonia 12 -> 11.3.20 + Avalonia.Maui 11.3.0"
This reverts commit a4bc7b5e6a.
This commit is contained in:
parent
a4bc7b5e6a
commit
77a7693276
8 changed files with 30 additions and 74 deletions
|
|
@ -1,19 +1,21 @@
|
|||
using Android.App;
|
||||
using Android.App;
|
||||
using Android.Runtime;
|
||||
using Avalonia;
|
||||
using Avalonia.Android;
|
||||
|
||||
namespace PostIt.Android;
|
||||
|
||||
/// <summary>
|
||||
/// Bare <see cref="Android.App.Application"/> shell for Android. Avalonia
|
||||
/// 11 initialises its platform services from <see cref="MainActivity"/>
|
||||
/// (which extends <c>AvaloniaMainActivity<App></c>); no per-Application
|
||||
/// Avalonia setup is needed here. Kept only so that the [Application] entry
|
||||
/// stays present in the merged manifest, which the Android runtime expects
|
||||
/// when the manifest declares a custom android:name in the application tag.
|
||||
/// </summary>
|
||||
[Application]
|
||||
public class Application : Android.App.Application
|
||||
namespace PostIt.Android
|
||||
{
|
||||
public Application(nint javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
|
||||
[Application]
|
||||
public class Application : AvaloniaAndroidApplication<App>
|
||||
{
|
||||
protected Application(nint javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
|
||||
{
|
||||
}
|
||||
|
||||
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
|
||||
{
|
||||
return base.CustomizeAppBuilder(builder)
|
||||
.WithInterFont();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue