From 2cdc8700ba3a418c52839021b80d4b8e0053c47a Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 25 Jul 2020 14:17:06 +0800 Subject: [PATCH] TODO : deal with Attempting to JIT compile method --- osu.Framework.Microphone.Tests.iOS/Info.plist | 18 ++++++++++-------- osu.Framework.Microphone.Tests.iOS/Linker.xml | 6 ++++++ .../Input/IOSMicrophoneHandler.cs | 4 ++-- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/osu.Framework.Microphone.Tests.iOS/Info.plist b/osu.Framework.Microphone.Tests.iOS/Info.plist index c73d92a..d3603c7 100644 --- a/osu.Framework.Microphone.Tests.iOS/Info.plist +++ b/osu.Framework.Microphone.Tests.iOS/Info.plist @@ -2,10 +2,10 @@ + CFBundleIdentifier + ppy.osu-Framework-Microphone-Tests-iOS CFBundleName osu.Framework.Tests.iOS - CFBundleIdentifier - ppy.osu-Framework-Tests-iOS CFBundleShortVersionString 1.0 CFBundleVersion @@ -14,6 +14,10 @@ MinimumOSVersion 11.0 + NSMicrophoneUsageDescription + Ask for microphone permission + UIApplicationSupportsIndirectInputEvents + UIDeviceFamily 1 @@ -25,6 +29,10 @@ armv7 + UIRequiresFullScreen + + UIStatusBarHidden + UISupportedInterfaceOrientations UIInterfaceOrientationPortrait @@ -34,11 +42,5 @@ XSAppIconAssets Assets.xcassets/AppIcon.appiconset - UIStatusBarHidden - - UIRequiresFullScreen - - UIApplicationSupportsIndirectInputEvents - diff --git a/osu.Framework.Microphone.Tests.iOS/Linker.xml b/osu.Framework.Microphone.Tests.iOS/Linker.xml index 51e6f60..be5441a 100644 --- a/osu.Framework.Microphone.Tests.iOS/Linker.xml +++ b/osu.Framework.Microphone.Tests.iOS/Linker.xml @@ -6,6 +6,12 @@ + + + + + + diff --git a/osu.Framework.Microphone.iOS/Input/IOSMicrophoneHandler.cs b/osu.Framework.Microphone.iOS/Input/IOSMicrophoneHandler.cs index 41dd895..fce5285 100644 --- a/osu.Framework.Microphone.iOS/Input/IOSMicrophoneHandler.cs +++ b/osu.Framework.Microphone.iOS/Input/IOSMicrophoneHandler.cs @@ -23,7 +23,7 @@ public override bool Initialize(GameHost host) session.RequestRecordPermission((granted) => { - Logger.Log($"Audio Permission: {granted}", LoggingTarget.Information, LogLevel.Verbose); + Logger.Log($"Audio Permission: {granted}", LoggingTarget.Information); if (granted) { @@ -38,7 +38,7 @@ public override bool Initialize(GameHost host) else { success = base.Initialize(host); - Logger.Log($"Microphone get permission status : {success}", LoggingTarget.Information, LogLevel.Verbose); + Logger.Log($"Microphone get permission status : {success}", LoggingTarget.Information); } } else