Skip to content

Commit

Permalink
Merge pull request #143 from Brian-Jiang/master
Browse files Browse the repository at this point in the history
Fix useAPKExpansionFiles obsolete problem
  • Loading branch information
robinnorth committed Jul 1, 2024
2 parents 99248ed + d4dd6b2 commit cf699f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Editor/Build/Platform/BuildAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ private void SetApkExpansionFilesType(string key)
{
ApkExpansionFilesType expansionFilesType = EnumValueFromKey<ApkExpansionFilesType>(key);

#if UNITY_2023_1_OR_NEWER
PlayerSettings.Android.splitApplicationBinary = expansionFilesType == ApkExpansionFilesType.SplitAppBinary;
#else
PlayerSettings.Android.useAPKExpansionFiles = expansionFilesType == ApkExpansionFilesType.SplitAppBinary;
#endif
}

private void SetBinaryType(string key)
Expand Down

0 comments on commit cf699f2

Please sign in to comment.