public static void Remove() { string fullPath = Path.Combine(Path.Combine("Assets", soomSettingsPath), soomSettingsAssetName + soomSettingsAssetExtension); AssetDatabase.DeleteAsset(fullPath); SoomlaManifestTools.ClearManifest( ); if (EditorUtility.DisplayDialog("Confirmation", "Are you sure you want to remove SOOMLA?", "Yes", "No")) { foreach (KeyValuePair <string, string[]> attachStat in mFileList) { RemoveModule(attachStat.Value); } } }
public static void RemoveSoomlaModuleButton(GUIContent label, string value, string moduleId) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField(label, GUILayout.Width(140), FieldHeight); EditorGUILayout.SelectableLabel(value, GUILayout.Width(40), FieldHeight); GUIStyle style = new GUIStyle(GUI.skin.label); style.normal.textColor = Color.blue; if (GUILayout.Button("Remove", style, GUILayout.Width(60), FieldHeight)) { if (EditorUtility.DisplayDialog("Confirmation", "Are you sure you want to delete " + moduleId + " ?", "Yes", "No")) { SoomlaManifestTools.ClearManifest(moduleId); RemoveModule(mFileList[moduleId]); } } EditorGUILayout.EndHorizontal(); }
public void OnEnable() { // Generating AndroidManifest.xml SoomlaManifestTools.GenerateManifest(); }