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 2014/11/10 18:42:13 UTC
cordova-plugins git commit: Return nil in init for wkwebview-engine
if the runtime does not support it.
Repository: cordova-plugins
Updated Branches:
refs/heads/master 27d254414 -> 8b33bce0b
Return nil in init for wkwebview-engine if the runtime does not support it.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/8b33bce0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/8b33bce0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/8b33bce0
Branch: refs/heads/master
Commit: 8b33bce0b8cb90c13957d648462936671a345d20
Parents: 27d2544
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Mon Nov 10 09:42:10 2014 -0800
Committer: Shazron Abdullah <sh...@gmail.com>
Committed: Mon Nov 10 09:42:10 2014 -0800
----------------------------------------------------------------------
wkwebview-engine/src/ios/CDVWKWebViewEngine.m | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/8b33bce0/wkwebview-engine/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/wkwebview-engine/src/ios/CDVWKWebViewEngine.m b/wkwebview-engine/src/ios/CDVWKWebViewEngine.m
index 94ef0b2..fd81e37 100644
--- a/wkwebview-engine/src/ios/CDVWKWebViewEngine.m
+++ b/wkwebview-engine/src/ios/CDVWKWebViewEngine.m
@@ -42,6 +42,9 @@
{
self = [super init];
if (self) {
+ if (!IsAtLeastiOSVersion(@"8.0")) {
+ return nil;
+ }
self.uiDelegate = [[CDVWKWebViewUIDelegate alloc] initWithTitle:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]];
WKUserContentController* userContentController = [[WKUserContentController alloc] init];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org