Skip to content

Commit b0ad5ff

Browse files
authored
Set Android applicationEntry to "Activity" during export.
1 parent d910dd5 commit b0ad5ff

File tree

1 file changed

+3
-0
lines changed
  • example/unity/DemoApp/Assets/FlutterUnityIntegration/Editor

1 file changed

+3
-0
lines changed

example/unity/DemoApp/Assets/FlutterUnityIntegration/Editor/Build.cs

+3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ private static void DoBuildAndroid(String buildPath, bool isPlugin, bool isRelea
223223
#if UNITY_ANDROID && UNITY_6000_0_OR_NEWER
224224
UnityEditor.Android.UserBuildSettings.DebugSymbols.level = isReleaseBuild ? Unity.Android.Types.DebugSymbolLevel.None : Unity.Android.Types.DebugSymbolLevel.SymbolTable;
225225
UnityEditor.Android.UserBuildSettings.DebugSymbols.format = Unity.Android.Types.DebugSymbolFormat.LegacyExtensions;
226+
#endif
227+
#if UNITY_ANDROID && UNITY_2023_1_OR_NEWER
228+
PlayerSettings.Android.applicationEntry = AndroidApplicationEntry.Activity;
226229
#endif
227230
// Switch to Android standalone build.
228231
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android);

0 commit comments

Comments
 (0)