Skip to content

Commit 20b9d5e

Browse files
Copilotwinnerspiros
andcommitted
Android optimization: AOT compilation, profiled AOT, targetSdkVersion 34→36
- Enable RunAOTCompilation + AndroidEnableProfiledAot in Release for lower latency gameplay on Samsung S23 Ultra and similar devices - Suppress trim analysis warnings in Release (reflection-heavy codebase) - Upgrade AndroidManifest targetSdkVersion from 34 to 36 across all 6 Android projects to match .NET 10 Android SDK 36 and eliminate XA4211 Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/033e5847-1348-4d63-b60a-24a3b90f89ea Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 6005694 commit 20b9d5e

7 files changed

Lines changed: 14 additions & 6 deletions

File tree

osu.Android.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
<NullabilityInfoContextSupport>true</NullabilityInfoContextSupport>
1010
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
1111
</PropertyGroup>
12+
<!-- Release-only optimisations: AOT for low-latency gameplay, trimming for smaller APK.
13+
Suppress trim analysis warnings because the project uses reflection extensively
14+
(Newtonsoft.Json, Realm, AutoMapper, RuntimeBinder). -->
15+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
16+
<RunAOTCompilation>true</RunAOTCompilation>
17+
<AndroidEnableProfiledAot>true</AndroidEnableProfiledAot>
18+
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
19+
</PropertyGroup>
1220
<ItemGroup>
1321
<PackageReference Include="ppy.osu.Framework.Android" Version="2026.318.0" />
1422
</ItemGroup>

osu.Android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="sh.ppy.osulazer" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
3+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
44
<application android:allowBackup="true"
55
android:supportsRtl="true"
66
android:label="osu!"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- using a different name because package name cannot contain 'catch' -->
33
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Catch_Tests.Android" android:installLocation="auto">
4-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
4+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
55
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!catch Test" />
66
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Mania.Tests.Android" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
3+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
44
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!mania Test" />
55
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Osu.Tests.Android" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
3+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
44
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!standard Test" />
55
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Rulesets.Taiko.Tests.Android" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
3+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
44
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!taiko Test" />
55
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="osu.Game.Tests.Android" android:installLocation="auto">
3-
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34" />
3+
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="36" />
44
<application android:allowBackup="true" android:supportsRtl="true" android:label="osu!visual Test" />
55
</manifest>

0 commit comments

Comments
 (0)