@@ -8,7 +8,9 @@ public struct PluginStencilContext: StencilContext {
8
8
private let pluginName : String
9
9
private let returnType : String ?
10
10
private let pluginImports : [ String ]
11
+ private let pluginTestsImports : [ String ]
11
12
private let isPeripheryCommentEnabled : Bool
13
+ private let isNimbleEnabled : Bool
12
14
13
15
internal var dictionary : [ String : Any ] {
14
16
let dictionary : [ String : Any ]
@@ -18,14 +20,18 @@ public struct PluginStencilContext: StencilContext {
18
20
" plugin_name " : pluginName,
19
21
" return_type " : returnType,
20
22
" plugin_imports " : pluginImports,
21
- " is_periphery_comment_enabled " : isPeripheryCommentEnabled
23
+ " plugin_tests_imports " : pluginTestsImports,
24
+ " is_periphery_comment_enabled " : isPeripheryCommentEnabled,
25
+ " is_nimble_enabled " : isNimbleEnabled
22
26
]
23
27
} else {
24
28
dictionary = [
25
29
" file_header " : fileHeader,
26
30
" plugin_name " : pluginName,
27
31
" plugin_imports " : pluginImports,
28
- " is_periphery_comment_enabled " : isPeripheryCommentEnabled
32
+ " plugin_tests_imports " : pluginTestsImports,
33
+ " is_periphery_comment_enabled " : isPeripheryCommentEnabled,
34
+ " is_nimble_enabled " : isNimbleEnabled
29
35
]
30
36
}
31
37
return dictionary
@@ -35,26 +41,34 @@ public struct PluginStencilContext: StencilContext {
35
41
fileHeader: String ,
36
42
pluginName: String ,
37
43
pluginImports: Set < String > ,
38
- isPeripheryCommentEnabled: Bool
44
+ pluginTestsImports: Set < String > ,
45
+ isPeripheryCommentEnabled: Bool ,
46
+ isNimbleEnabled: Bool
39
47
) {
40
48
self . fileHeader = fileHeader
41
49
self . pluginName = pluginName
42
50
self . returnType = nil
43
51
self . pluginImports = pluginImports. sortedImports ( )
52
+ self . pluginTestsImports = pluginTestsImports. sortedImports ( )
44
53
self . isPeripheryCommentEnabled = isPeripheryCommentEnabled
54
+ self . isNimbleEnabled = isNimbleEnabled
45
55
}
46
56
47
57
public init (
48
58
fileHeader: String ,
49
59
pluginName: String ,
50
60
returnType: String ,
51
61
pluginImports: Set < String > ,
52
- isPeripheryCommentEnabled: Bool
62
+ pluginTestsImports: Set < String > ,
63
+ isPeripheryCommentEnabled: Bool ,
64
+ isNimbleEnabled: Bool
53
65
) {
54
66
self . fileHeader = fileHeader
55
67
self . pluginName = pluginName
56
68
self . returnType = returnType
57
69
self . pluginImports = pluginImports. sortedImports ( )
70
+ self . pluginTestsImports = pluginTestsImports. sortedImports ( )
58
71
self . isPeripheryCommentEnabled = isPeripheryCommentEnabled
72
+ self . isNimbleEnabled = isNimbleEnabled
59
73
}
60
74
}
0 commit comments