release: 1.4.12

This commit is contained in:
2026-05-16 13:16:59 +08:00
parent 212fec1d1d
commit 19615385ec
3 changed files with 19 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ namespace Topon_Adapter.Editor
elementlauncherApplication.Add (CreateCSJGromore ());
SetOrAddAttribute (elementlauncherApplication, AndroidNamespace + "allowBackup", "false");
MergeToolsReplaceAttribute (elementlauncherApplication, "android:allowBackup");
MergeToolsReplaceAttribute (elementlauncherApplication, GetLauncherApplicationReplaceValues (elementlauncherApplication));
var elementMainManifest = manifest.Element ("manifest");
var elementMainApplication = elementMainManifest.Element ("application");
@@ -263,6 +263,17 @@ namespace Topon_Adapter.Editor
attribute.SetValue (value);
}
private static string[] GetLauncherApplicationReplaceValues (XElement element)
{
List<string> replaceValues = new List<string> { "android:allowBackup" };
if (element.Attribute (AndroidNamespace + "appComponentFactory") != null)
{
replaceValues.Add ("android:appComponentFactory");
}
return replaceValues.ToArray ();
}
private static void MergeToolsReplaceAttribute (XElement element, params string[] replaceValues)
{
XName replaceAttributeName = ToolsNamespace + "replace";