Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/NodesGenerator/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public struct Config: Codable, Equatable {
public var flowImports: Set<String>
public var interfaceImports: Set<String>
public var pluginListImports: Set<String>
public var pluginListInterfaceImports: Set<String>
public var viewControllerImports: Set<String>
public var dependencies: [Variable]
public var analyticsProperties: [Variable]
Expand Down Expand Up @@ -97,6 +98,7 @@ extension Config {
flowImports = []
interfaceImports = []
pluginListImports = []
pluginListInterfaceImports = []
viewControllerImports = []
dependencies = []
analyticsProperties = []
Expand Down Expand Up @@ -176,6 +178,9 @@ extension Config {
pluginListImports =
(try? decoder.decode(CodingKeys.pluginListImports))
?? defaults.pluginListImports
pluginListInterfaceImports =
(try? decoder.decode(CodingKeys.pluginListInterfaceImports))
?? defaults.pluginListInterfaceImports
viewControllerImports =
(try? decoder.decode(CodingKeys.viewControllerImports))
?? defaults.viewControllerImports
Expand Down
1 change: 1 addition & 0 deletions Sources/NodesGenerator/StencilTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ public enum StencilTemplate: CustomStringConvertible, Equatable, Sendable {
case .pluginListInterface:
config.baseImports
.union(["Nodes"])
.union(config.pluginListInterfaceImports)
case .pluginListTests:
config.baseTestImports
.union(["NodesTesting"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
▿ pluginListImports: 2 members
- "<pluginListImports-1>"
- "<pluginListImports-2>"
- pluginListInterfaceImports: 0 members
- publisherFailureType: "<publisherFailureType>"
- publisherType: "<publisherType>"
▿ reactiveImports: 2 members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- isTestTemplatesGenerationEnabled: true
- isViewInjectedTemplateEnabled: true
- pluginListImports: 0 members
- pluginListInterfaceImports: 0 members
- publisherFailureType: "Never"
- publisherType: "AnyPublisher"
▿ reactiveImports: 1 member
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- isTestTemplatesGenerationEnabled: true
- isViewInjectedTemplateEnabled: true
- pluginListImports: 0 members
- pluginListInterfaceImports: 0 members
- publisherFailureType: "Never"
- publisherType: "AnyPublisher"
▿ reactiveImports: 1 member
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- isTestTemplatesGenerationEnabled: true
- isViewInjectedTemplateEnabled: true
- pluginListImports: 0 members
- pluginListInterfaceImports: 0 members
- publisherFailureType: "Never"
- publisherType: "AnyPublisher"
▿ reactiveImports: 1 member
Expand Down