-
Notifications
You must be signed in to change notification settings - Fork 0
/
NeedleGenerated.swift
174 lines (143 loc) · 5.67 KB
/
NeedleGenerated.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import Foundation
import NeedleFoundation
import UIKit
// swiftlint:disable unused_declaration
private let needleDependenciesHash : String? = nil
// MARK: - Traversal Helpers
private func parent1(_ component: NeedleFoundation.Scope) -> NeedleFoundation.Scope {
return component.parent
}
// MARK: - Providers
#if !NEEDLE_DYNAMIC
private class HomeDependency6a4768fde0821c25ee2fProvider: HomeDependency {
var confirmComponent: ConfirmComponent {
return aPPComponent.confirmComponent
}
var resultComponent: ResultComponent {
return aPPComponent.resultComponent
}
private let aPPComponent: APPComponent
init(aPPComponent: APPComponent) {
self.aPPComponent = aPPComponent
}
}
/// ^->APPComponent->HomeComponent
private func factorya2f9f0db50be357ca85b6684ac6e6465fdd85074(_ component: NeedleFoundation.Scope) -> AnyObject {
return HomeDependency6a4768fde0821c25ee2fProvider(aPPComponent: parent1(component) as! APPComponent)
}
private class ResultDependenvy4793e3474137db83a995Provider: ResultDependenvy {
init() {
}
}
/// ^->APPComponent->ResultComponent
private func factory9658e9585f10fd5f8c64e3b0c44298fc1c149afb(_ component: NeedleFoundation.Scope) -> AnyObject {
return ResultDependenvy4793e3474137db83a995Provider()
}
private class CustomCameraDependencyb005a80e3a9dddafe7cfProvider: CustomCameraDependency {
init() {
}
}
/// ^->APPComponent->CustomCameraComponent
private func factorye700d9ab4cf1759d7c60e3b0c44298fc1c149afb(_ component: NeedleFoundation.Scope) -> AnyObject {
return CustomCameraDependencyb005a80e3a9dddafe7cfProvider()
}
private class ConfirmDependency59f22d4c63227594ea1dProvider: ConfirmDependency {
var customCameraComponent: CustomCameraComponent {
return aPPComponent.customCameraComponent
}
private let aPPComponent: APPComponent
init(aPPComponent: APPComponent) {
self.aPPComponent = aPPComponent
}
}
/// ^->APPComponent->ConfirmComponent
private func factory2098926d2a8f9bf54d536684ac6e6465fdd85074(_ component: NeedleFoundation.Scope) -> AnyObject {
return ConfirmDependency59f22d4c63227594ea1dProvider(aPPComponent: parent1(component) as! APPComponent)
}
private class RootDependency42ce9302f32437bf7962Provider: RootDependency {
var permissionComponent: PermissionComponent {
return aPPComponent.permissionComponent
}
var homeComponent: HomeComponent {
return aPPComponent.homeComponent
}
private let aPPComponent: APPComponent
init(aPPComponent: APPComponent) {
self.aPPComponent = aPPComponent
}
}
/// ^->APPComponent->RootComponent
private func factory9efd9cab81bfb71851d76684ac6e6465fdd85074(_ component: NeedleFoundation.Scope) -> AnyObject {
return RootDependency42ce9302f32437bf7962Provider(aPPComponent: parent1(component) as! APPComponent)
}
private class PermissionDependency7a254bf5a3212ac9114cProvider: PermissionDependency {
init() {
}
}
/// ^->APPComponent->PermissionComponent
private func factory746bb6c0e6f49b95a2e0e3b0c44298fc1c149afb(_ component: NeedleFoundation.Scope) -> AnyObject {
return PermissionDependency7a254bf5a3212ac9114cProvider()
}
#else
extension AppComponent: Registration {
public func registerItems() {
}
}
extension APPComponent: Registration {
public func registerItems() {
}
}
extension HomeComponent: Registration {
public func registerItems() {
keyPathToName[\HomeDependency.confirmComponent] = "confirmComponent-ConfirmComponent"
keyPathToName[\HomeDependency.resultComponent] = "resultComponent-ResultComponent"
}
}
extension ResultComponent: Registration {
public func registerItems() {
}
}
extension CustomCameraComponent: Registration {
public func registerItems() {
}
}
extension ConfirmComponent: Registration {
public func registerItems() {
keyPathToName[\ConfirmDependency.customCameraComponent] = "customCameraComponent-CustomCameraComponent"
}
}
extension RootComponent: Registration {
public func registerItems() {
keyPathToName[\RootDependency.permissionComponent] = "permissionComponent-PermissionComponent"
keyPathToName[\RootDependency.homeComponent] = "homeComponent-HomeComponent"
}
}
extension PermissionComponent: Registration {
public func registerItems() {
}
}
#endif
private func factoryEmptyDependencyProvider(_ component: NeedleFoundation.Scope) -> AnyObject {
return EmptyDependencyProvider(component: component)
}
// MARK: - Registration
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (NeedleFoundation.Scope) -> AnyObject) {
__DependencyProviderRegistry.instance.registerDependencyProviderFactory(for: componentPath, factory)
}
#if !NEEDLE_DYNAMIC
@inline(never) private func register1() {
registerProviderFactory("^->AppComponent", factoryEmptyDependencyProvider)
registerProviderFactory("^->APPComponent", factoryEmptyDependencyProvider)
registerProviderFactory("^->APPComponent->HomeComponent", factorya2f9f0db50be357ca85b6684ac6e6465fdd85074)
registerProviderFactory("^->APPComponent->ResultComponent", factory9658e9585f10fd5f8c64e3b0c44298fc1c149afb)
registerProviderFactory("^->APPComponent->CustomCameraComponent", factorye700d9ab4cf1759d7c60e3b0c44298fc1c149afb)
registerProviderFactory("^->APPComponent->ConfirmComponent", factory2098926d2a8f9bf54d536684ac6e6465fdd85074)
registerProviderFactory("^->APPComponent->RootComponent", factory9efd9cab81bfb71851d76684ac6e6465fdd85074)
registerProviderFactory("^->APPComponent->PermissionComponent", factory746bb6c0e6f49b95a2e0e3b0c44298fc1c149afb)
}
#endif
public func registerProviderFactories() {
#if !NEEDLE_DYNAMIC
register1()
#endif
}