Esempio n. 1
0
        private static bool CheckIfAllDependencyLibsPresent()
        {
            var dependencies = new [] { "gson*.jar" };
            var libJars      = GetSocialEditorUtils.GetFiles(PluginsPathInProject, string.Join(";", dependencies), SearchOption.AllDirectories);

            return(libJars.Length >= dependencies.Length);
        }
        void DrawAdditionalInfo()
        {
            GetSocialEditorUtils.BeginSetSmallIconSize();
            EditorGUILayout.LabelField(new GUIContent(" SDK Info", GetSocialEditorUtils.InfoIcon), EditorStyles.boldLabel);
            GetSocialEditorUtils.EndSetSmallIconSize();

            EditorGUILayout.BeginHorizontal(GUI.skin.box);
            EditorGUILayout.BeginVertical();
            SelectableLabelField(new GUIContent("SDK Version [?]", "GetSocial SDK Version"), BuildConfig.UnitySdkVersion);
            EditorGUILayout.EndVertical();
            EditorGUILayout.EndHorizontal();
        }
        private void DrawAndroidSettings()
        {
            var androidSettingsText = GetBoldLabel(" AndroidManifest.xml and other Android Settings [?]", "These settings will modify your AndroidManifest.xml", GetSocialEditorUtils.AndroidIcon);

            GetSocialEditorUtils.BeginSetSmallIconSize();
            ShowAndroidSettings = EditorGUILayout.Foldout(ShowAndroidSettings, androidSettingsText);
            GetSocialEditorUtils.EndSetSmallIconSize();
            if (ShowAndroidSettings)
            {
                AndroidManifestHelper.DrawManifestCheckerGUI();
            }
        }
 private void DrawAdvancedSettings()
 {
     GetSocialEditorUtils.BeginSetSmallIconSize();
     ShowAdvancedSettings = EditorGUILayout.Foldout(ShowAdvancedSettings, GetBoldLabel(" Advanced Settings", string.Empty, GetSocialEditorUtils.SettingsIcon));
     GetSocialEditorUtils.EndSetSmallIconSize();
     if (ShowAdvancedSettings)
     {
         EditorGUILayout.BeginVertical(GUI.skin.box);
         var newLogMethodCallsValue = EditorGUILayout.ToggleLeft(" Enable Debug Logs", GetSocialSettings.IsDebugLogsEnabled);
         SetLogMethodCallsInEditor(newLogMethodCallsValue);
         EditorGUILayout.EndVertical();
     }
 }
        void DrawGeneralSettings()
        {
            GetSocialEditorUtils.BeginSetSmallIconSize();
            EditorGUILayout.LabelField(new GUIContent(" General Settings", GetSocialEditorUtils.GetSocialIcon), EditorStyles.boldLabel);
            GetSocialEditorUtils.EndSetSmallIconSize();
            EditorGUILayout.BeginVertical(GUI.skin.box);

            DrawAppKeySettings();

            GUILayout.Space(15);
            DrawModuleSettings();

            EditorGUILayout.EndVertical();
        }
        void DrawIOSSettings()
        {
            var iosSettingsText = GetBoldLabel(" IOS Specific Settings [?]", "These are settings specific to IOS", GetSocialEditorUtils.IOSIcon);

            GetSocialEditorUtils.BeginSetSmallIconSize();
            ShowIOSSettings = EditorGUILayout.Foldout(ShowIOSSettings, iosSettingsText);
            GetSocialEditorUtils.EndSetSmallIconSize();
            if (ShowIOSSettings)
            {
                EditorGUILayout.BeginVertical(GUI.skin.box);
                var isAutoRegisrationForPushesEnabledIOS = EditorGUILayout.ToggleLeft(" Enable automatic registration for push notifications on GetSocial initialization", GetSocialSettings.IsAutoRegisrationForPushesEnabledIOS);
                SetIsAutomaticRegistrationForPushesOnIOSEnabled(isAutoRegisrationForPushesEnabledIOS);
                EditorGUILayout.EndVertical();
            }
        }