-
Notifications
You must be signed in to change notification settings - Fork 47
Updates to Workflow Templates #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
b456e4b
067a285
0e42d35
733177f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ___FILEHEADER___ | ||
|
||
import ReactiveSwift | ||
import Workflow | ||
import WorkflowReactiveSwift | ||
import WorkflowUI | ||
|
||
// MARK: Workers | ||
|
||
extension ___VARIABLE_productName___Workflow { | ||
struct ___VARIABLE_productName___Worker: Worker { | ||
enum Output {} | ||
|
||
func run() -> SignalProducer<Output, Never> { | ||
fatalError() | ||
} | ||
|
||
func isEquivalent(to otherWorker: ___VARIABLE_productName___Worker) -> Bool { | ||
return true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/monishsyed/Development/Personal/workflow-swift/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// ___FILEHEADER___ | ||
|
||
import RxSwift | ||
import Workflow | ||
import WorkflowRxSwift | ||
import WorkflowUI | ||
|
||
// MARK: Workers | ||
|
||
extension ___VARIABLE_productName___Workflow { | ||
struct ___VARIABLE_productName___Worker: Worker { | ||
enum Output {} | ||
|
||
func run() -> Observable<Output> { | ||
fatalError() | ||
} | ||
|
||
func isEquivalent(to otherWorker: ___VARIABLE_productName___Worker) -> Bool { | ||
return true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/monishsyed/Development/Personal/workflow-swift/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this file? The pathname should be relative. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the symlink for the original file that resides under
It was created to overcome a limitation that we have with xcode files templates i.e files templates cannot be inherited from other templates (project templates can have ancestors though but not file templates) and therefore when creating a template that has RxSwift/ReactiveSwift worker enabled, both
What do you all think? P.S: For workflow template to work correctly, the file/directory structure should look like this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Went ahead and added back copies of |
Uh oh!
There was an error while loading. Please reload this page.