Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B057E1794D for ; Tue, 8 Sep 2015 22:02:41 +0000 (UTC) Received: (qmail 8179 invoked by uid 500); 8 Sep 2015 22:02:38 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 8039 invoked by uid 500); 8 Sep 2015 22:02:38 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 7818 invoked by uid 99); 8 Sep 2015 22:02:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 22:02:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3E833E03D2; Tue, 8 Sep 2015 22:02:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: dev@cordova.apache.org Date: Tue, 08 Sep 2015 22:02:40 -0000 Message-Id: <798e1c29f58742e193d40994fe0a25cf@git.apache.org> In-Reply-To: <257911e1108348798c1f96d83c1f7b39@git.apache.org> References: <257911e1108348798c1f96d83c1f7b39@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [03/19] cordova-plugin-wkwebview-engine git commit: Return nil in init for wkwebview-engine if the runtime does not support it. Return nil in init for wkwebview-engine if the runtime does not support it. Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/0a8c3091 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/0a8c3091 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/0a8c3091 Branch: refs/heads/master Commit: 0a8c309180a23014229e832029a70d4d49ea1d26 Parents: def716c Author: Shazron Abdullah Authored: Mon Nov 10 09:42:10 2014 -0800 Committer: Shazron Abdullah Committed: Mon Nov 10 09:42:10 2014 -0800 ---------------------------------------------------------------------- src/ios/CDVWKWebViewEngine.m | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/0a8c3091/src/ios/CDVWKWebViewEngine.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m index 94ef0b2..fd81e37 100644 --- a/src/ios/CDVWKWebViewEngine.m +++ b/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: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org