fix appcenter

This commit is contained in:
Aigio Liu
2021-03-24 19:47:02 +08:00
parent e44af2601e
commit 2dfd0f3594
6 changed files with 42 additions and 6 deletions
@@ -0,0 +1,33 @@
using Foundation;
using System.Application.UI;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
namespace System.Application
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register(Name)]
public partial class AppDelegate : FormsApplicationDelegate
{
public const string Name = "AppDelegate";
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Forms.Init();
FormsMaterial.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
}
@@ -2,7 +2,7 @@
namespace System.Application
{
static class Program
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
@@ -69,7 +69,8 @@
<Compile Include="..\Common.CoreLib\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="AppDelegate.cs" />
<Compile Include="Main.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Entitlements.plist" />