static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { bool refreshChangeFile = false; if (CheckForMatches(importedAssets)) { refreshChangeFile = true; } else if (CheckForMatches(deletedAssets)) { refreshChangeFile = true; } else if (CheckForMatches(movedAssets)) { refreshChangeFile = true; } else if (CheckForMatches(movedFromAssetPaths)) { refreshChangeFile = true; } if (refreshChangeFile) { XcodeController.Instance().Refresh(); } }
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) { if (!IsValidBuildTarget(target)) { return; } var controller = XcodeController.Instance(); if (!controller.Settings.AutoRunEnabled) { return; } controller.ModifyXcodeProject(target, pathToBuiltProject); }