@@ -33,6 +33,7 @@ public class IOSResolverSettingsDialog : EditorWindow
3333 private class Settings {
3434 internal bool podfileGenerationEnabled ;
3535 internal bool podToolExecutionViaShellEnabled ;
36+ internal bool podToolShellExecutionSetLang ;
3637 internal bool autoPodToolInstallInEditorEnabled ;
3738 internal bool verboseLoggingEnabled ;
3839 internal int cocoapodsIntegrationMenuIndex ;
@@ -49,6 +50,7 @@ private class Settings {
4950 internal Settings ( ) {
5051 podfileGenerationEnabled = IOSResolver . PodfileGenerationEnabled ;
5152 podToolExecutionViaShellEnabled = IOSResolver . PodToolExecutionViaShellEnabled ;
53+ podToolShellExecutionSetLang = IOSResolver . PodToolShellExecutionSetLang ;
5254 autoPodToolInstallInEditorEnabled = IOSResolver . AutoPodToolInstallInEditorEnabled ;
5355 verboseLoggingEnabled = IOSResolver . VerboseLoggingEnabled ;
5456 cocoapodsIntegrationMenuIndex = FindIndexFromCocoapodsIntegrationMethod (
@@ -67,6 +69,7 @@ internal Settings() {
6769 internal void Save ( ) {
6870 IOSResolver . PodfileGenerationEnabled = podfileGenerationEnabled ;
6971 IOSResolver . PodToolExecutionViaShellEnabled = podToolExecutionViaShellEnabled ;
72+ IOSResolver . PodToolShellExecutionSetLang = podToolShellExecutionSetLang ;
7073 IOSResolver . AutoPodToolInstallInEditorEnabled = autoPodToolInstallInEditorEnabled ;
7174 IOSResolver . VerboseLoggingEnabled = verboseLoggingEnabled ;
7275 IOSResolver . CocoapodsIntegrationMethodPref =
@@ -107,7 +110,7 @@ private static int FindIndexFromCocoapodsIntegrationMethod(
107110 }
108111
109112 public void Initialize ( ) {
110- minSize = new Vector2 ( 400 , 700 ) ;
113+ minSize = new Vector2 ( 400 , 715 ) ;
111114 position = new Rect ( UnityEngine . Screen . width / 3 , UnityEngine . Screen . height / 3 ,
112115 minSize . x , minSize . y ) ;
113116 }
@@ -168,9 +171,16 @@ public void OnGUI() {
168171 settings . podToolExecutionViaShellEnabled =
169172 EditorGUILayout . Toggle ( settings . podToolExecutionViaShellEnabled ) ;
170173 GUILayout . EndHorizontal ( ) ;
174+ GUILayout . Label ( "Shell execution is useful when configuration in the shell " +
175+ "environment (e.g ~/.profile) is required to execute Cocoapods tools." ) ;
176+
171177 if ( settings . podToolExecutionViaShellEnabled ) {
172- GUILayout . Label ( "Shell execution is useful when configuration in the shell " +
173- "environment (e.g ~/.profile) is required to execute Cocoapods tools." ) ;
178+ GUILayout . BeginHorizontal ( ) ;
179+ GUILayout . Label ( "Set LANG When Using Shell to Execute Cocoapod Tool" , EditorStyles . boldLabel ) ;
180+ settings . podToolShellExecutionSetLang =
181+ EditorGUILayout . Toggle ( settings . podToolShellExecutionSetLang ) ;
182+ GUILayout . EndHorizontal ( ) ;
183+ GUILayout . Label ( "Useful for versions of cocoapods that depend on the value of LANG." ) ;
174184 }
175185
176186 GUILayout . BeginHorizontal ( ) ;
@@ -280,6 +290,9 @@ public void OnGUI() {
280290 new KeyValuePair < string , string > (
281291 "podToolExecutionViaShellEnabled" ,
282292 IOSResolver . PodToolExecutionViaShellEnabled . ToString ( ) ) ,
293+ new KeyValuePair < string , string > (
294+ "podToolShellExecutionSetLang" ,
295+ IOSResolver . PodToolShellExecutionSetLang . ToString ( ) ) ,
283296 new KeyValuePair < string , string > (
284297 "autoPodToolInstallInEditorEnabled" ,
285298 IOSResolver . AutoPodToolInstallInEditorEnabled . ToString ( ) ) ,
0 commit comments