-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from faberNovel/feature/allow_user_templates
Allow user to override templates with their own
- Loading branch information
Showing
35 changed files
with
377 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
// Created by {{full_username}} on {{date}}. | ||
// | ||
// | ||
// | ||
|
||
import Foundation | ||
import Core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// {{name}}Coordinator.swift | ||
// {{project_name}} | ||
// | ||
// Created by {{full_username}} on {{date}}. | ||
// | ||
// | ||
|
||
import Foundation | ||
import ADCoordinator | ||
|
||
{{#generate_delegate}} | ||
@MainActor | ||
protocol {{name}}CoordinatorDelegate: AnyObject { | ||
} | ||
|
||
{{/generate_delegate}} | ||
@MainActor | ||
class {{name}}Coordinator: Coordinator { | ||
{{#generate_delegate}} | ||
weak var delegate: {{name}}CoordinatorDelegate? | ||
{{/generate_delegate}} | ||
private let dependencyProvider: ApplicationDependencyProvider | ||
private unowned var navigationController: UINavigationController | ||
|
||
nonisolated init(navigationController: UINavigationController, | ||
dependencyProvider: ApplicationDependencyProvider) { | ||
self.navigationController = navigationController | ||
self.dependencyProvider = dependencyProvider | ||
} | ||
|
||
// MARK: - Public | ||
|
||
func start() { | ||
let viewController = UIViewController() | ||
navigationController.pushViewController(viewController, animated: false) | ||
bindToLifecycle(of: viewController) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{#generate_delegate}} | ||
func {{lowercased_name}}Presenter(viewContract: {{name}}ViewContract, presenterDelegate: {{name}}PresenterDelegate) -> {{name}}Presenter? { | ||
return presenterAssembler | ||
.resolver | ||
.resolve({{name}}Presenter.self, arguments: viewContract, presenterDelegate) | ||
} | ||
{{/generate_delegate}} | ||
{{^generate_delegate}} | ||
func {{lowercased_name}}Presenter(viewContract: {{name}}ViewContract) -> {{name}}Presenter? { | ||
return presenterAssembler | ||
.resolver | ||
.resolve({{name}}Presenter.self, argument: viewContract) | ||
} | ||
{{/generate_delegate}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// {{name}}Interactor.swift | ||
// {{project_name}} | ||
// | ||
// Created by {{full_username}} on {{date}}. | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol {{name}}Interactor { | ||
func execute() async throws | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
container.register({{name}}Interactor.self) { _ in | ||
{{name}}InteractorImplementation( | ||
|
||
) | ||
} |
Oops, something went wrong.