@@ -38,6 +38,7 @@ private class Settings {
38
38
internal bool verboseLoggingEnabled ;
39
39
internal int cocoapodsIntegrationMenuIndex ;
40
40
internal bool podfileAddUseFrameworks ;
41
+ internal bool podfileAddUseModularHeaders ;
41
42
internal bool podfileStaticLinkFrameworks ;
42
43
internal bool swiftFrameworkSupportWorkaroundEnabled ;
43
44
internal string swiftLanguageVersion ;
@@ -58,6 +59,7 @@ internal Settings() {
58
59
cocoapodsIntegrationMenuIndex = FindIndexFromCocoapodsIntegrationMethod (
59
60
IOSResolver . CocoapodsIntegrationMethodPref ) ;
60
61
podfileAddUseFrameworks = IOSResolver . PodfileAddUseFrameworks ;
62
+ podfileAddUseModularHeaders = IOSResolver . PodfileAddUseModularHeaders ;
61
63
podfileStaticLinkFrameworks = IOSResolver . PodfileStaticLinkFrameworks ;
62
64
swiftFrameworkSupportWorkaroundEnabled =
63
65
IOSResolver . SwiftFrameworkSupportWorkaroundEnabled ;
@@ -80,6 +82,7 @@ internal void Save() {
80
82
IOSResolver . CocoapodsIntegrationMethodPref =
81
83
integrationMapping [ cocoapodsIntegrationMenuIndex ] ;
82
84
IOSResolver . PodfileAddUseFrameworks = podfileAddUseFrameworks ;
85
+ IOSResolver . PodfileAddUseModularHeaders = podfileAddUseModularHeaders ;
83
86
IOSResolver . PodfileStaticLinkFrameworks = podfileStaticLinkFrameworks ;
84
87
IOSResolver . SwiftFrameworkSupportWorkaroundEnabled =
85
88
swiftFrameworkSupportWorkaroundEnabled ;
@@ -213,7 +216,13 @@ public void OnGUI() {
213
216
GUILayout . Box ( "" , GUILayout . ExpandWidth ( true ) , GUILayout . Height ( 1 ) ) ;
214
217
GUILayout . Label ( "Podfile Configurations" , EditorStyles . largeLabel ) ;
215
218
EditorGUILayout . Separator ( ) ;
216
-
219
+
220
+ GUILayout . BeginHorizontal ( ) ;
221
+ GUILayout . Label ( "Add use_modular_headers! to Podfile" , EditorStyles . boldLabel ) ;
222
+ settings . podfileAddUseModularHeaders =
223
+ EditorGUILayout . Toggle ( settings . podfileAddUseModularHeaders ) ;
224
+ GUILayout . EndHorizontal ( ) ;
225
+
217
226
GUILayout . BeginHorizontal ( ) ;
218
227
GUILayout . Label ( "Add use_frameworks! to Podfile" , EditorStyles . boldLabel ) ;
219
228
settings . podfileAddUseFrameworks =
@@ -348,6 +357,9 @@ public void OnGUI() {
348
357
new KeyValuePair < string , string > (
349
358
"podfileAddUseFrameworks" ,
350
359
IOSResolver . PodfileAddUseFrameworks . ToString ( ) ) ,
360
+ new KeyValuePair < string , string > (
361
+ "podfileAddUseModularHeaders" ,
362
+ IOSResolver . PodfileAddUseModularHeaders . ToString ( ) ) ,
351
363
new KeyValuePair < string , string > (
352
364
"podfileStaticLinkFrameworks" ,
353
365
IOSResolver . PodfileStaticLinkFrameworks . ToString ( ) ) ,
0 commit comments