cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject cordova-plugins git commit: Return nil in init for wkwebview-engine if the runtime does not support it.
Date Mon, 10 Nov 2014 17:42:13 GMT
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 <shazron@gmail.com>
Authored: Mon Nov 10 09:42:10 2014 -0800
Committer: Shazron Abdullah <shazron@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


Mime
View raw message