From 34b74d4f9958ae697a3a20bfd022340fd632a52b Mon Sep 17 00:00:00 2001 From: andy840119 Date: Tue, 20 Dec 2022 00:56:46 +0800 Subject: [PATCH] follow how o!f did. --- osu.Framework.Microphone.Tests.iOS/AppDelegate.cs | 15 +-------------- osu.Framework.Microphone.Tests.iOS/Application.cs | 6 +----- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/osu.Framework.Microphone.Tests.iOS/AppDelegate.cs b/osu.Framework.Microphone.Tests.iOS/AppDelegate.cs index ece902b..5b13f12 100644 --- a/osu.Framework.Microphone.Tests.iOS/AppDelegate.cs +++ b/osu.Framework.Microphone.Tests.iOS/AppDelegate.cs @@ -2,26 +2,13 @@ // See the LICENCE file in the repository root for full licence text. using Foundation; -using osu.Framework.Input.Handlers.Microphone; using osu.Framework.iOS; -using osu.Framework.iOS.Input; namespace osu.Framework.Tests { [Register("AppDelegate")] public class AppDelegate : GameAppDelegate { - protected override Game CreateGame() => new TestingVisualTestGame(); - - internal class TestingVisualTestGame : VisualTestGame - { - protected override void LoadComplete() - { - base.LoadComplete(); - - // Need to cache IOSMicrophoneHandler in here to let MicrophoneInputManager knows. - Host.Dependencies.CacheAs(typeof(MicrophoneHandler), new IOSMicrophoneHandler()); - } - } + protected override Game CreateGame() => new VisualTestGame(); } } diff --git a/osu.Framework.Microphone.Tests.iOS/Application.cs b/osu.Framework.Microphone.Tests.iOS/Application.cs index 3b12975..6eda2af 100644 --- a/osu.Framework.Microphone.Tests.iOS/Application.cs +++ b/osu.Framework.Microphone.Tests.iOS/Application.cs @@ -1,19 +1,15 @@ // Copyright (c) karaoke.dev . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -using osu.Framework.iOS; using UIKit; namespace osu.Framework.Tests { public static class Application { - // This is the main entry point of the application. public static void Main(string[] args) { - // if you want to use a different Application Delegate class from "AppDelegate" - // you can specify it here. - UIApplication.Main(args, typeof(GameUIApplication), typeof(AppDelegate)); + UIApplication.Main(args, null, typeof(AppDelegate)); } } }