Skip to content
Merged
Changes from all commits
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
16 changes: 9 additions & 7 deletions genesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,20 +294,22 @@ files:
@main
internal final class AppDelegate: UIResponder, UIApplicationDelegate {

private let appFlow: AppFlow

override internal init() {
registerProviderFactories()
appFlow = AppBuilderImp { AppComponent() }.build()
}
private lazy var appFlow: AppFlow = AppBuilderImp { AppComponent() }.build()

internal func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
appFlow.start()
bootstrap()
return true
}

private func bootstrap() {
guard NSClassFromString("XCTestCase") == nil
else { return }
registerProviderFactories()
appFlow.start()
}
}

- path: "{{ project|split:' '|join:'_' }}/Sources/SceneDelegate.swift"
Expand Down