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 2015/09/12 02:12:15 UTC

cordova-plugin-wkwebview-engine git commit: Removed hard-coded runtime version check, detect feature instead

Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master b39df66f5 -> d05b5bb4d


Removed hard-coded runtime version check, detect feature instead


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/d05b5bb4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/d05b5bb4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/d05b5bb4

Branch: refs/heads/master
Commit: d05b5bb4d90f477893379cde9cb260734ac513ca
Parents: b39df66
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Sep 11 17:16:08 2015 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Sep 11 17:16:08 2015 -0700

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/d05b5bb4/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 099f8f7..81cd7fe 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -44,7 +44,7 @@
 {
     self = [super init];
     if (self) {
-        if (!IsAtLeastiOSVersion(@"8.0")) {
+        if (NSClassFromString(@"WKWebView") == nil) {
             return nil;
         }
         self.uiDelegate = [[CDVWKWebViewUIDelegate alloc] initWithTitle:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]];


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org