Skip to content

Commit 606140d

Browse files
authored
bump android API level to 21 for 2020 (#2233)
1 parent db85412 commit 606140d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Scripts.Integration.Test/Editor/Builder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ public static void BuildIl2CPPPlayer(BuildTarget target, BuildTargetGroup group,
8686
Debug.Log($"Builder: Creating output directory at '{outputDir}'");
8787
Directory.CreateDirectory(outputDir);
8888

89+
#if UNITY_2020_3
90+
// The default for 2020.3 is 19. There will be no further updates to 2020.3.
91+
Debug.Log("Builder: Raising the minSdkVersion to 21");
92+
PlayerSettings.Android.minSdkVersion = AndroidSdkVersions.AndroidApiLevel21;
93+
#endif
94+
8995
Debug.Log("Builder: Enabling minify");
9096
#if UNITY_2020_1_OR_NEWER
9197
PlayerSettings.Android.minifyDebug = PlayerSettings.Android.minifyRelease = true;

0 commit comments

Comments
 (0)