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
Catty-77: Migrate UIWebView to WKWebView #1292
Conversation
Jenkins, retest this please. |
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! I left a few (minor) suggestions directly at the affected lines of code. One major thing we need to address:
- Click on "Help"
- Click on the "hamburger" menu button
- Click on Featured
- Select any project
- Click on "Download the project"
- The app is crashing:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Completion handler passed to -[Pocket_Code.HelpWebViewController webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once'
Hi Michael |
Were you able to reproduce the |
Yes, I was getting that exception but with a different reason The exception with the reason you mentioned is fixed with a return statement in Another exception that I mentioned above is fixed with various changes in the way progressBar gets hidden and unhidden, when the activityIndicator is visible. |
Hi Michael, |
I'm sorry, I have a very bad habit of force unwrapping optionals. I have updated tests again fixing that. |
Hi Michael, |
d1a7a20
to
ca48be5
Compare
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.
When you test your implementation having internet turned off (or when running into a timeout), the corresponding alert is never shown and the loading view keeps spinning for ever. For this time please do not directly squash your commits but please add another commit (makes review of the large class easier). Thanks!
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.
The app is still crashing after downloading a project from within the WKWebView
. See one of my previous comments on how to reproduce (stay in the view for another ~10 seconds or so without doing anything).
@neel-makhecha any news on that pull request? thanks! |
Yes! The first issue where the loading view kept spinning forever is resolved. I had implemented an incorrect delegate method. So that's solved. But I am still trying to figure out the the crash. I am currently working on that, it is occasional and don't happen every time. But hopefully will figure out that too very soon! |
Hi Michael, |
Thank you, looks very good! Please squash your commits, then this pull request is ready to merge. |
- Removed UIWebView from storyboard and added UIView for WKWebView - Renamed FileManager to CBFileManager to avoid conflicts - HelpWebViewController updated with new delegate methods for WKWebView - Added a new test class HelpWebViewControllerTests
Done! |
Updated UIWebView to WKWebView in HelpWebViewController.swift along with all delegates.
Your checklist for this pull request
Please review the contributing guidelines and wiki pages of this repository.