如何在IBM Worklight项目中更改cordova版本 [英] How to change cordova version in IBM Worklight project

查看:93
本文介绍了如何在IBM Worklight项目中更改cordova版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Worklight中,我需要使用一些Cordova插件来访问Android中的一些本机功能。正如我看到Worklight采用了Cordova的最新版本,即2.7。但在Cordova 2.7有很多愚蠢的变化像插件,他们已经完全改变了execute方法。这似乎可笑,因为现有的插件在Github上不工作cordova 2.7项目。所有的插件需要根据2.7改变,谁要去做!

In Worklight I need to use some Cordova plugins to access some native features in Android. As I see Worklight takes up the latest version of Cordova i.e 2.7. But in Cordova 2.7 there is so many stupid changes like for plugins they have changed the execute method completely. This seems ridiculous as the existing Plugins on Github is not working in cordova 2.7 projects. All plugins need to be changed as per 2.7, who is going to do that !

无论如何,Worklight Studio中是否有任何选项根据要求使用特定的cordova?

Anyways, is there any option in Worklight Studio to use specific cordova as per requirement ?

推荐答案

Worklight不使用Cordova 2.7。
在Worklight 5.0.6中使用Cordova 2.3,在不久的将来发布的Worklight Cordova将升级到2.6。

Worklight does not use Cordova 2.7. In Worklight 5.0.6 Cordova 2.3 is used and in a near-future release of Worklight Cordova will be upgraded to 2.6.

在任何情况下,独立替换Worklight中使用的Cordova版本。我的意思是你可以尝试,但这种方法不是由IBM支持(在这种情况下没有必要,因为2.7不使用)。

In any case, you cannot independently replace the Cordova version used in Worklight. I mean you can try, but this method is not supported by IBM (and there is no need to in this case because 2.7 is not used).

这篇关于如何在IBM Worklight项目中更改cordova版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆