Skip to content

Commit ef8edde

Browse files
authored
Merge pull request #55 from Elvenisboy/patch-2
Update Build.cs
2 parents fa7a82b + 20e2516 commit ef8edde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/Editor/Build.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public static void DoBuildAndroid(String buildPath)
5858
var build_file = Path.Combine(androidExportPath, "build.gradle");
5959
var build_text = File.ReadAllText(build_file);
6060
build_text = build_text.Replace("com.android.application", "com.android.library");
61+
build_text = build_text.Replace("bundle {", "splits {");
62+
build_text = build_text.Replace("enableSplit = false", "enable false");
63+
build_text = build_text.Replace("enableSplit = true", "enable true");
6164
build_text = build_text.Replace("implementation fileTree(dir: 'libs', include: ['*.jar'])", "implementation project(':unity-classes')");
6265
build_text = Regex.Replace(build_text, @"\n.*applicationId '.+'.*\n", "\n");
6366
File.WriteAllText(build_file, build_text);
@@ -116,4 +119,4 @@ static string[] GetEnabledScenes()
116119

117120
return scenes;
118121
}
119-
}
122+
}

0 commit comments

Comments
 (0)