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
{ | |
"rating": 121 | |
} |
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
{ | |
"cities": [ | |
{ | |
"id": "1", | |
"name": "London", | |
"imageURL": "https://cdn130.picsart.com/300983032207201.jpg?to=crop&r=512" | |
}, | |
{ | |
"id": "2", | |
"name": "Berlin", |
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
SBG clean_module --module_name SomeModuleName --main_target SomeOtherTargetName --connectors_path SomeNewPath |
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
SBG clean_module --module_name SomeModuleName --main_target SomeOtherTargetName --connectors_path SomeNewPath |
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
SBG clean_module --module_name SomeModuleName |
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
{ | |
"main_target": "SomeTargetName", | |
"connectors_path": "SomeTargetName/Connectors", | |
"presenters_path": "SomeTargetName/Presenters", | |
"view_controllers_path": "SomeTargetName/Controllers" | |
} |
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
{ | |
"name": "clean_module", | |
"steps": [ | |
{ | |
"template": "connector.stencil", | |
"file_name": "{{module_name}}Connector.swift", | |
"group": "{{connectors_path}}", | |
"target": "{{main_target}}" | |
}, | |
{ |
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
import UIKit | |
protocol {{module_name}}View: class { } | |
final class {{module_name}}ViewController: BaseViewController, {{module_name}}View { | |
fileprivate var _presenter: {{module_name}}Presenter { | |
return presenter as! {{module_name}}Presenter | |
} | |
} |
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
final class {{module_name}}Connector: BaseConnector { | |
} |
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
final class {{module_name}}Presenter { | |
private let connector: BaseConnector | |
private weak var view: {{module_name}}View? | |
init(connector: BaseConnector, view: {{module_name}}View) { | |
self.connector = connector | |
self.view = view | |
} | |
} |
NewerOlder