private void FillViewContent()
        {
            var data = BuildObjectRemoverSettingsProvider.LoadSettings();

            foreach (var item in data)
            {
                buildTypesConteiners.TryGetValue(item.buildTarget, out VisualElement container);
                AddValue((container ?? AddBuildTargetContainer(item.buildTarget)).Q("contentTags"), item);
            }
        }
Ejemplo n.º 2
0
        private List <RemoveTagData> GetTagsToRemove(BuildReport report)
        {
            var buildType    = GetBuildType(report);
            var buildTarget  = GetBuildTarget(report);
            var tagsToRemove = BuildObjectRemoverSettingsProvider.LoadSettings()
                               .Where(x => (x.enable &&
                                            ((RemoverState)x.runType).HasFlag(buildType) &&
                                            (x.buildTarget == buildTarget || x.buildTarget == BuildTarget.NoTarget)))
                               .GroupBy(x => x.tag)
                               .Select(x => x.First()).ToList();

            return(tagsToRemove);
        }