This commit is contained in:
chenxi 2023-08-14 19:12:19 +08:00
parent 67ce4b8a54
commit 3feebb0d9d

View File

@ -10,10 +10,10 @@ using System.Collections.Generic;
public class IronSourceAdQualityManifestTools
{
#if UNITY_EDITOR
static string outputFile = Path.Combine(Application.dataPath, "Plugins/Android/AndroidManifest.xml");
public static void GenerateManifest()
{
#if UNITY_EDITOR
// only copy over a fresh copy of the AndroidManifest if one does not exist
if (!File.Exists(outputFile))
{
@ -27,6 +27,7 @@ static string outputFile = Path.Combine(Application.dataPath, "Plugins/Android/A
File.Copy(inputFile, outputFile);
}
UpdateManifest();
#endif
}
private static string _namespace = "";
@ -204,5 +205,4 @@ static string outputFile = Path.Combine(Application.dataPath, "Plugins/Android/A
}
return null;
}
#endif
}