This is an automated email from the ASF dual-hosted git repository.
tripod pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-osx.git
The following commit(s) were added to refs/heads/master by this push:
new ce5513f CB-13824 Swift 4 support
ce5513f is described below
commit ce5513ffa1ff77f39bd5f0fa6019e73e473636bd
Author: alberto lalama <[email protected]>
AuthorDate: Tue Jan 23 19:07:00 2018 -0500
CB-13824 Swift 4 support
This closes #45
---
CordovaLib/CordovaLib/Classes/CDVViewController.m | 6 ++++++
1 file changed, 6 insertions(+)
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 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];
--
To stop receiving notification emails like this one, please contact
[email protected].
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]