public static void DrawRequirementsUI(ISN_XcodeRequirements xcodeRequirements) { if (xcodeRequirements.Frameworks.Count > 0) { using (new SA_H2WindowBlockWithSpace(new GUIContent("FRAMEWORKS"))) { foreach (var freamwork in xcodeRequirements.Frameworks) { SA_EditorGUILayout.SelectableLabel(new GUIContent(freamwork.Type.ToString() + ".framework", ISD_Skin.GetIcon("frameworks.png"))); } } } if (xcodeRequirements.Libraries.Count > 0) { using (new SA_H2WindowBlockWithSpace(new GUIContent("LIBRARIES"))) { foreach (var freamwork in xcodeRequirements.Libraries) { SA_EditorGUILayout.SelectableLabel(new GUIContent(freamwork.Type.ToString() + ".framework", ISD_Skin.GetIcon("frameworks.png"))); } } } if (xcodeRequirements.Capabilities.Count > 0) { using (new SA_H2WindowBlockWithSpace(new GUIContent("CAPABILITIES"))) { foreach (var capability in xcodeRequirements.Capabilities) { SA_EditorGUILayout.SelectableLabel(new GUIContent(capability + " Capability", ISD_Skin.GetIcon("capability.png"))); } } } if (xcodeRequirements.PlistKeys.Count > 0) { using (new SA_H2WindowBlockWithSpace(new GUIContent("PLIST KEYS"))) { foreach (var key in xcodeRequirements.PlistKeys) { SA_EditorGUILayout.SelectableLabel(new GUIContent(key.Name, ISD_Skin.GetIcon("plistVariables.png"))); } } } if (xcodeRequirements.Properties.Count > 0) { using (new SA_H2WindowBlockWithSpace(new GUIContent("BUILD PROPERTIES"))) { foreach (var property in xcodeRequirements.Properties) { SA_EditorGUILayout.SelectableLabel(new GUIContent(property.Name + " | " + property.Value, ISD_Skin.GetIcon("buildSettings.png"))); } } } }
protected override void DrawServiceRequirements() { var resolver = (ISN_APIResolver)Resolver; if (!HasRequirements(resolver)) { return; } using (new SA_WindowBlockWithSpace(new GUIContent("Requirements"))) { foreach (var freamwork in resolver.XcodeRequirements.Frameworks) { EditorGUILayout.LabelField(new GUIContent(" " + freamwork.Type.ToString() + ".framework", ISD_Skin.GetIcon("frameworks.png"))); } foreach (var lib in resolver.XcodeRequirements.Libraries) { EditorGUILayout.LabelField(new GUIContent(" " + lib.Type.ToString(), ISD_Skin.GetIcon("frameworks.png"))); } foreach (var capability in resolver.XcodeRequirements.Capabilities) { EditorGUILayout.LabelField(new GUIContent(" " + capability + " Capability", ISD_Skin.GetIcon("capability.png"))); } foreach (var key in resolver.XcodeRequirements.PlistKeys) { EditorGUILayout.LabelField(new GUIContent(" " + key.Name, ISD_Skin.GetIcon("plistVariables.png"))); } foreach (var property in resolver.XcodeRequirements.Properties) { EditorGUILayout.LabelField(new GUIContent(" " + property.Name + " | " + property.Value, ISD_Skin.GetIcon("buildSettings.png"))); } } }