@@ -33,6 +33,7 @@ public class IOSResolverSettingsDialog : EditorWindow
33
33
private class Settings {
34
34
internal bool podfileGenerationEnabled ;
35
35
internal bool podToolExecutionViaShellEnabled ;
36
+ internal bool podToolShellExecutionSetLang ;
36
37
internal bool autoPodToolInstallInEditorEnabled ;
37
38
internal bool verboseLoggingEnabled ;
38
39
internal int cocoapodsIntegrationMenuIndex ;
@@ -49,6 +50,7 @@ private class Settings {
49
50
internal Settings ( ) {
50
51
podfileGenerationEnabled = IOSResolver . PodfileGenerationEnabled ;
51
52
podToolExecutionViaShellEnabled = IOSResolver . PodToolExecutionViaShellEnabled ;
53
+ podToolShellExecutionSetLang = IOSResolver . PodToolShellExecutionSetLang ;
52
54
autoPodToolInstallInEditorEnabled = IOSResolver . AutoPodToolInstallInEditorEnabled ;
53
55
verboseLoggingEnabled = IOSResolver . VerboseLoggingEnabled ;
54
56
cocoapodsIntegrationMenuIndex = FindIndexFromCocoapodsIntegrationMethod (
@@ -67,6 +69,7 @@ internal Settings() {
67
69
internal void Save ( ) {
68
70
IOSResolver . PodfileGenerationEnabled = podfileGenerationEnabled ;
69
71
IOSResolver . PodToolExecutionViaShellEnabled = podToolExecutionViaShellEnabled ;
72
+ IOSResolver . PodToolShellExecutionSetLang = podToolShellExecutionSetLang ;
70
73
IOSResolver . AutoPodToolInstallInEditorEnabled = autoPodToolInstallInEditorEnabled ;
71
74
IOSResolver . VerboseLoggingEnabled = verboseLoggingEnabled ;
72
75
IOSResolver . CocoapodsIntegrationMethodPref =
@@ -107,7 +110,7 @@ private static int FindIndexFromCocoapodsIntegrationMethod(
107
110
}
108
111
109
112
public void Initialize ( ) {
110
- minSize = new Vector2 ( 400 , 700 ) ;
113
+ minSize = new Vector2 ( 400 , 715 ) ;
111
114
position = new Rect ( UnityEngine . Screen . width / 3 , UnityEngine . Screen . height / 3 ,
112
115
minSize . x , minSize . y ) ;
113
116
}
@@ -168,9 +171,16 @@ public void OnGUI() {
168
171
settings . podToolExecutionViaShellEnabled =
169
172
EditorGUILayout . Toggle ( settings . podToolExecutionViaShellEnabled ) ;
170
173
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
+
171
177
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." ) ;
174
184
}
175
185
176
186
GUILayout . BeginHorizontal ( ) ;
@@ -280,6 +290,9 @@ public void OnGUI() {
280
290
new KeyValuePair < string , string > (
281
291
"podToolExecutionViaShellEnabled" ,
282
292
IOSResolver . PodToolExecutionViaShellEnabled . ToString ( ) ) ,
293
+ new KeyValuePair < string , string > (
294
+ "podToolShellExecutionSetLang" ,
295
+ IOSResolver . PodToolShellExecutionSetLang . ToString ( ) ) ,
283
296
new KeyValuePair < string , string > (
284
297
"autoPodToolInstallInEditorEnabled" ,
285
298
IOSResolver . AutoPodToolInstallInEditorEnabled . ToString ( ) ) ,
0 commit comments