Skip to content

Commit

Permalink
Set Android applicationEntry to "Activity" during export.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbotimbo authored Sep 6, 2024
1 parent d910dd5 commit b0ad5ff
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ private static void DoBuildAndroid(String buildPath, bool isPlugin, bool isRelea
#if UNITY_ANDROID && UNITY_6000_0_OR_NEWER
UnityEditor.Android.UserBuildSettings.DebugSymbols.level = isReleaseBuild ? Unity.Android.Types.DebugSymbolLevel.None : Unity.Android.Types.DebugSymbolLevel.SymbolTable;
UnityEditor.Android.UserBuildSettings.DebugSymbols.format = Unity.Android.Types.DebugSymbolFormat.LegacyExtensions;
#endif
#if UNITY_ANDROID && UNITY_2023_1_OR_NEWER
PlayerSettings.Android.applicationEntry = AndroidApplicationEntry.Activity;
#endif
// Switch to Android standalone build.
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android);
Expand Down

0 comments on commit b0ad5ff

Please sign in to comment.