You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by tr...@apache.org on 2018/01/30 08:23:26 UTC
[cordova-osx] branch master updated: CB-13824 Swift 4 support
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 <al...@users.noreply.github.com>
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
tripod@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org