-
Notifications
You must be signed in to change notification settings - Fork 796
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
Implementation should be explicit #108
Comments
Slowly getting there: #131 I think having an |
@bizz84 you did a really great job. from the development perspective it would be greate to refactor a little. I did already in my fork because without these changes i got a crash in release configuration with RxSwift wrapper around your library. We can discuss even more deep refactoring to avoid singleton instance. |
I think it's nicer to write:
rather than:
In the By exposing a The question is: is this desirable from an API usage standpoint? This would mean that client code would have to create and retain an instance of Feedback? |
@astrokin I'm slowly making all components inside SwiftyStoreKit testable and adding unit tests. Eventually I would like SwiftyStoreKit to be just a facade that forwards all the method calls to the right components via composition. |
Closing this issue due to inactivity. Thanks for the feedback @astrokin, more suggestions are welcome. |
There is no any reason to do this. Please think about about it in unit-tests perspective and Open/closed principle. I would recommend to let users of your software have more control and modify it's state.
The text was updated successfully, but these errors were encountered: