tripodsan closed pull request #45: CB-13824: (osx) Swift 4 support
URL: https://github.com/apache/cordova-osx/pull/45
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/CordovaLib/CordovaLib/Classes/CDVViewController.m
b/CordovaLib/CordovaLib/Classes/CDVViewController.m
index c310403..d43c0f3 100644
--- a/CordovaLib/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/CordovaLib/Classes/CDVViewController.m
@@ -304,6 +304,12 @@ - (id) getCommandInstance:(NSString*) pluginName {
id obj = self.pluginObjects[className];
if (!obj) {
obj = [(CDVPlugin*) [NSClassFromString(className) alloc]
initWithWebView:webView];
+ if (!obj) {
+ NSString* fullClassName = [NSString stringWithFormat:@"%@.%@",
+
NSBundle.mainBundle.infoDictionary[@"CFBundleExecutable"],
+ className];
+ obj = [(CDVPlugin*) [NSClassFromString(fullClassName) alloc]
initWithWebView:webView];
+ }
if (obj != nil) {
[self registerPlugin:obj withClassName:className];
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]