我是Cordova CLI的新手.
我需要通过Cordova以编程方式执行以下步骤.
我想我需要在项目根目录中的config.xml文件中执行此操作(或者可能是"platforms"文件夹中的那个).
有人可以向我解释如何通过config.xml添加条目,以便在编译时添加上述条目吗?
我正在使用Cordova 3.3.1-0.42(我知道它不是最新的).我已经完成了我的项目,一切都很好,我只需要将这个条目添加到pList中.
我目前正在开发一个带有离子的应用程序,同时我的cordova插件.我想知道如何使用该文件plugins/fetch.json从本地文件系统更新我的插件.任何的想法 ?
我正在构建一个插件来使用iOS设备中的星形打印机,使用它们的SDK,一切正常,但config-file修改info.plist文件的命令无法正常工作.在我的plugin.xml里面,我有:
<config-file target="*-Info.plist" parent="Supported external accessory protocols">
<array>
<key>item 0</key>
<string>jp.star-m.starpro</string>
</array>
</config-file>
Run Code Online (Sandbox Code Playgroud)
有了这个我应该得到一个Supported external accessory protocols数组,其中包含一个名为item 0,类型String和值的项目,jp.star-m.starpro但我得到一个包含两个项目的数组,就好像我会做的那样:
<array>
<key>item 0</key>
<string>item 0</string>
<key>item 1</key>
<string>jp.star-m.starpro</string>
</array>
Run Code Online (Sandbox Code Playgroud)
相关问题:
我config-file通过阅读这些问题来实现.