You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2018/02/26 05:45:23 UTC
[cordova-ios] branch master updated: CB-13824 - Xcode 9/Swift 4
support (#353)
This is an automated email from the ASF dual-hosted git repository.
shazron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new bed6de7 CB-13824 - Xcode 9/Swift 4 support (#353)
bed6de7 is described below
commit bed6de726d872f7106efdfede9645d9852b2768f
Author: alberto lalama <al...@users.noreply.github.com>
AuthorDate: Mon Feb 26 00:45:21 2018 -0500
CB-13824 - Xcode 9/Swift 4 support (#353)
---
CordovaLib/Classes/Public/CDVViewController.m | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m
index d467b49..f34b3dd 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -662,6 +662,12 @@
id obj = [self.pluginObjects objectForKey:className];
if (!obj) {
obj = [[NSClassFromString(className)alloc] initWithWebViewEngine:_webViewEngine];
+ if (!obj) {
+ NSString* fullClassName = [NSString stringWithFormat:@"%@.%@",
+ NSBundle.mainBundle.infoDictionary[@"CFBundleExecutable"],
+ className];
+ obj = [[NSClassFromString(fullClassName)alloc] initWithWebViewEngine:_webViewEngine];
+ }
if (obj != nil) {
[self registerPlugin:obj withClassName:className];
--
To stop receiving notification emails like this one, please contact
shazron@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org