You've already forked Commercialization.topon
release: 1.4.12
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user