Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        public static XcodeController Instance()
        {
            if (_instance == null)
            {
                _instance = new XcodeController();
            }

            return(_instance);
        }
Ejemplo n.º 3
0
        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);
        }