public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject) { if (buildTarget == BuildTarget.iOS) { #if UNITY_IOS Yodo1AdSettings settings = Yodo1AdSettingsSave.Load(); if (CheckConfiguration_iOS(settings)) { UpdateIOSPlist(pathToBuiltProject, settings); UpdateIOSProject(pathToBuiltProject); } #endif } if (buildTarget == BuildTarget.Android) { #if UNITY_ANDROID Yodo1AdSettings settings = Yodo1AdSettingsSave.Load(); if (CheckConfiguration_Android(settings)) { #if UNITY_2019_1_OR_NEWER #else ValidateManifest(settings); #endif } #endif } }
void OnPreprocessAsset() { if (assetPath.Contains("Version.md")) { //DeleteFiles_Deprecated(); Yodo1AdSettings settings = Yodo1AdSettingsSave.Load(); Yodo1AdSettingsSave.UpdateDependencies(settings); } }
static void Yodo1ValidateManifest(string path) { var mainfestPath = Path.Combine(path, "src/main/AndroidManifest.xml"); if (mainfestPath.Contains("unityLibrary")) { mainfestPath = mainfestPath.Replace("unityLibrary", "launcher"); } if (File.Exists(mainfestPath)) { Yodo1AdSettings settings = Yodo1AdSettingsSave.Load(); if (Yodo1PostProcess.CheckConfiguration_Android(settings)) { ValidateManifest(mainfestPath, settings); } } }
private void OnEnable() { this.adSettings = Yodo1AdSettingsSave.Load(); }