/// <summary>
        /// Draws the ios settings.
        /// </summary>
        public void DrawSetting(SerializedObject serializedObject)
        {
            var settings = serializedObject.FindProperty("iosSettings");

            using (new EditorGUIEx.GroupScope("iOS Settings"))
            {
                // XCode Project.
                EditorGUILayout.LabelField("XCode Project", EditorStyles.boldLabel);
                EditorGUI.indentLevel++;
                {
                    EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("languages"), s_AvailableLanguages, true);
                    EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("frameworks"), s_AvailableFrameworks, true);
                    EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("services"), s_AvailableServices, true);
                    EditorGUIEx.FilePathField(settings.FindPropertyRelative("entitlementsFile"), "Select entitlement file.", "", "entitlements");
                }
                EditorGUI.indentLevel--;

                // Signing.
                EditorGUILayout.LabelField("Signing", EditorStyles.boldLabel);
                var spAutomaticallySign = settings.FindPropertyRelative("automaticallySign");
                EditorGUI.indentLevel++;
                {
                    EditorGUILayout.PropertyField(spAutomaticallySign);
                    EditorGUILayout.PropertyField(settings.FindPropertyRelative("developerTeamId"));
                    if (!spAutomaticallySign.boolValue)
                    {
                        EditorGUILayout.PropertyField(settings.FindPropertyRelative("codeSignIdentity"));
                        EditorGUILayout.PropertyField(settings.FindPropertyRelative("profileId"));
                        EditorGUILayout.PropertyField(settings.FindPropertyRelative("profileSpecifier"));
                    }
                }
                EditorGUI.indentLevel--;


                // exportOptions.plist.
                EditorGUILayout.LabelField("exportOptions.plist Setting", EditorStyles.boldLabel);
                EditorGUI.indentLevel++;
                {
                    var spGenerate = settings.FindPropertyRelative("generateExportOptionPlist");
                    EditorGUILayout.PropertyField(spGenerate, new GUIContent("Generate Automatically"));
                    if (spGenerate.boolValue)
                    {
                        EditorGUIEx.TextFieldWithTemplate(settings.FindPropertyRelative("exportMethod"), s_AvailableExportMethods, false);
                        EditorGUILayout.PropertyField(settings.FindPropertyRelative("uploadBitcode"));
                        EditorGUILayout.PropertyField(settings.FindPropertyRelative("uploadSymbols"));
                    }
                }
                EditorGUI.indentLevel--;
            }
        }
Пример #2
0
        /// <summary>
        /// Draws the ios settings.
        /// </summary>
        public void DrawSetting(SerializedObject serializedObject)
        {
            var settings = serializedObject.FindProperty("androidSettings");

            using (new EditorGUIEx.GroupScope("Android Settings"))
            {
                EditorGUILayout.LabelField("Keystore", EditorStyles.boldLabel);
                EditorGUI.indentLevel++;
                {
                    EditorGUIEx.FilePathField(settings.FindPropertyRelative("keystoreFile"), "Select keystore file.", "", "");
                    EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystorePassword"));
                    EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystoreAliasName"), new GUIContent("Alias"));
                    EditorGUILayout.PropertyField(settings.FindPropertyRelative("keystoreAliasPassword"), new GUIContent("Alias Password"));
                }
                EditorGUI.indentLevel--;
            }
        }