jdisho / Papr

🌁 An Unsplash app for iOS
Apache License 2.0
1.15k stars 150 forks source link

refactor models to use sourcery #70

Open vaderdan opened 5 years ago

vaderdan commented 5 years ago

@jdisho this generates protocol viewmodels in Papr/Autogenerated folder.

To generate class just have to implements AutoModel, and it will generate ModelType, ModelInput, ModelOutput protocols for it (in that folder)

I added BuldPhase that executes generate script (it's called Sourcery and runs before compilation)