smallscript commented on issue #1288: URL: https://github.com/apache/cordova-ios/issues/1288#issuecomment-1435771220
Well. Unless Cordova uses `init` properly, it is a broken model. Try any Swift based CDVPlugin example and you will clearly see that the Swift class is NEVER initialized properly and leaves illegal null pointers instead. Which is 100% broken. Fundamentally you're asking a plugin designer for Cordova on an iOS platform to subclass from CDVPlugin. The primary language of choice from Apple for iOS is Swift. Right now, the Cordova iOS design of CDVPlugin is violating the Swift `init` model for subclassing. That worked for Objective-C because it operates as effectively unsafe C/C++ and allowed calling an `init` function at any time from any place which safe Swift does not. The statement that `WebViewEngine` will be left with a null value is 100% wrong. Please review and try the code change I provided and you will see that it DOES NOT leave it null, and it will NOT leave it null. That code is tested and being used in products we have now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org