private void AndroidUtilGUI()

in Facebook.Unity.Editor/FacebookSettingsEditor.cs [277:323]


        private void AndroidUtilGUI()
        {
            this.showAndroidUtils = EditorGUILayout.Foldout(this.showAndroidUtils, "Android Build Facebook Settings");
            if (this.showAndroidUtils)
            {
                if (!FacebookAndroidUtil.SetupProperly)
                {
                    var msg = "Your Android setup is not right. Check the documentation.";
                    switch (FacebookAndroidUtil.SetupError)
                    {
                        case FacebookAndroidUtil.ErrorNoSDK:
                            msg = "You don't have the Android SDK setup!  Go to " + (Application.platform == RuntimePlatform.OSXEditor ? "Unity" : "Edit") + "->Preferences... and set your Android SDK Location under External Tools";
                            break;
                        case FacebookAndroidUtil.ErrorNoKeystore:
                            msg = "Your android debug keystore file is missing! You can create new one by creating and building empty Android project in Ecplise.";
                            break;
                        case FacebookAndroidUtil.ErrorNoKeytool:
                            msg = "Keytool not found. Make sure that Java is installed, and that Java tools are in your path.";
                            break;
                        case FacebookAndroidUtil.ErrorNoOpenSSL:
                            msg = "OpenSSL not found. Make sure that OpenSSL is installed, and that it is in your path.";
                            break;
                        case FacebookAndroidUtil.ErrorKeytoolError:
                            msg = "Unkown error while getting Debug Android Key Hash.";
                            break;
                    }

                    EditorGUILayout.HelpBox(msg, MessageType.Warning);
                }

                EditorGUILayout.BeginHorizontal();
                EditorGUILayout.LabelField(this.androidKeystorePathLabel, GUILayout.Width(180), GUILayout.Height(16));
                FacebookSettings.AndroidKeystorePath = EditorGUILayout.TextField(FacebookSettings.AndroidKeystorePath);
                EditorGUILayout.EndHorizontal();
                EditorGUILayout.LabelField(
                    "Copy and Paste these into your \"Native Android App\" Settings on developers.facebook.com/apps");
                this.SelectableLabelField(this.packageNameLabel, Utility.GetApplicationIdentifier());
                this.SelectableLabelField(this.classNameLabel, ManifestMod.DeepLinkingActivityName);
                this.SelectableLabelField(this.debugAndroidKeyLabel, FacebookAndroidUtil.DebugKeyHash);
                if (GUILayout.Button("Regenerate Android Manifest"))
                {
                    ManifestMod.GenerateManifest();
                }
            }

            EditorGUILayout.Space();
        }