-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement ParleyNetwork library with ParleyNetworkSession so you can replace Alamofire with your own network stack #58
Implement ParleyNetwork library with ParleyNetworkSession so you can replace Alamofire with your own network stack #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @mat1th ! We'll need to review this though, bigger change overall.
With a quick look this looks like a separtion we wanna go on with. I've added a few comments while quickly looking at it.
We will respond in more detail when we also looked into it 👍
Thank you, I've resolved or replayed your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! We'll test some more though.
Few more comments during the review; also:
Seems like we don't need fileprivate
inside the Parley
class. private
should work fine since the extension is in the same file, right?
Meaning that:
- secret
- pushToken
- pushType
- pushEnabled
- referrer
- userAuthorization
- userAdditionalInformation
- configure (the one outside the extension)
- reconfigure
- clearChat
- registerDevice
- handleMessage
- handleEvent
Can remain private instead of fileprivate, correct?
(note that some of these weren't due to your changes, they werent private in the previous version either we see)
I've marked them as private now. Could you recheck because I've also re-based the branch with develop. |
Hi @alexkok what is the status on this pr? Are there things that needs to be done on my side? |
Hi @mat1th , thanks! Your PR looks good, we also tested it, no changes needed from your side currently. FYI: we'll additionally do some more changes for the 4.0.0 release, since it's a major one. We're on it, and will merge this PR soon to the |
Thanks for the update. Great that you are working on more improvements for the 4.0 release. |
This one has now been merged to the 4.0.0 will get some changes though |
@mat1th coming back to this one, with 4.0.0 we actually did a few adjustments to the calling side of this. Not sure if you've seen them already. They are not big, but wanted to let you know in advance before we release 4.0.0:
You can check with the current |
Implemented in this pr:
Parley
andParleyNetwork
. You can now use Parley with your own http network layer. To do so you can implementParleyNetworkSession
.Parley.configure
function to make the setup order more clear.ParleyNetwork
toParleyNetworkConfig
to better represent the what the struct does.let
instead ofvar
.Open tasks: