-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swift
69 lines (47 loc) · 1.56 KB
/
.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
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 RootDependency82f254bdb0601b002a2cProvider: RootDependency {
init() {
}
}
/// ^->AppComponent2->RootComponent
private func factory827760ebdc24ef5a7085e3b0c44298fc1c149afb(_ component: NeedleFoundation.Scope) -> AnyObject {
return RootDependency82f254bdb0601b002a2cProvider()
}
#else
extension AppComponent2: Registration {
public func registerItems() {
}
}
extension RootComponent: 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("^->AppComponent2", factoryEmptyDependencyProvider)
registerProviderFactory("^->AppComponent2->RootComponent", factory827760ebdc24ef5a7085e3b0c44298fc1c149afb)
}
#endif
public func registerProviderFactories() {
#if !NEEDLE_DYNAMIC
register1()
#endif
}