Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions osu.Android/Linker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</type>
<type fullname="osu.Framework.Audio.Mixing.AudioMixer" preserve="all" />
<type fullname="osu.Framework.Platform.Android.AndroidGameActivity" preserve="all" />
<type fullname="osu.Framework.Android.AndroidGameActivity" preserve="all" />
</assembly>
<assembly fullname="osu.Game">
<type fullname="osu.Game.OsuGameBase" preserve="all" />
Expand All @@ -52,9 +53,7 @@
<assembly fullname="osu.Game.Rulesets.Catch" preserve="all" />
<assembly fullname="osu.Game.Rulesets.Mania" preserve="all" />
<assembly fullname="osu.Android">
<type fullname="osu.Android.OsuGameActivity" preserve="all" />
<type fullname="osu.Android.OsuGameAndroid" preserve="all" />
<type fullname="osu.Android.OboeAudioRedirector" preserve="all" />
<type fullname="*" preserve="all" />
</assembly>
<assembly fullname="AutoMapper" preserve="all" />
<assembly fullname="Newtonsoft.Json" preserve="all" />
Expand Down
3 changes: 3 additions & 0 deletions osu.Android/OsuGameActivity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System.Diagnostics.CodeAnalysis;
using Android.App;
using Android.Content.PM;
using Android.Content;
Expand Down Expand Up @@ -45,6 +46,7 @@ namespace osu.Android
"application/x-osu-replay",
})]
[IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault }, DataSchemes = new[] { "osu", "osump" })]
[UnconditionalSuppressMessage("Trimming", "IL2067, IL2070, IL2072, IL2075, IL2080, IL2106", Justification = "Preserved in Linker.xml")]
public class OsuGameActivity : AndroidGameActivity, ISurfaceHolderCallback
{
private static readonly string[] osu_url_schemes = { "osu", "osump" };
Expand Down Expand Up @@ -73,6 +75,7 @@ protected override osu.Framework.Game CreateGame()
return game;
}


public OsuGameActivity()
{
game = new OsuGameAndroid(this);
Expand Down
Loading