Example #1
0
        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);
                }
            }
        }
Example #2
0
        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();
        }
Example #3
0
 public void OnEnable()
 {
     // Generating AndroidManifest.xml
     SoomlaManifestTools.GenerateManifest();
 }