CLI build Config.xml phonegap 3.3.0忽略名称和描述 [英] CLI build Config.xml phonegap 3.3.0 ignores name and description

查看:76
本文介绍了CLI build Config.xml phonegap 3.3.0忽略名称和描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在所有平台的蓝图配置文件中,我添加了以下内容:

<name>My app name</name>
<description>
    My app description.
</description>
<author email="my email" href="my url">
    Same name
</author>

但是跑步之后

phonegap run android

在platforms/android/res/xml文件夹中的config.xml中提供:

在文件顶部:

<name>Hello Cordova</name>
<description>
    A sample Apache Cordova application that responds to the deviceready event.
</description>

比功能列表

和(在首选项之前):

<name>My app name</name>
<description>
    My app description.
</description>
<author email="my email" href="my url">
    Same name
</author>
<feature name="http://api.phonegap.com/1.0/device" />

因此它确实将名称等复制到配置文件中...但是以某种方式将示例名称保留在配置文件中.

编辑2014年1月16日

尽管这个问题:在创建过程中被忽略的Config.xml 是关于和html参考...看起来对于创建平台文件夹的命令行选项还有很多工作要做...所以我试图从1个www文件夹进行evrything工作(包括ios和android)看起来像现在不可能完成的任务.

要开发它是一团糟...某些事情(插件)必须从命令行执行...并进行构建以获取正确的配置...但是比手动修复的所有错误更重要.将会再次被覆盖!

编辑2014年2月12日

顺便说一句,在我对这部电话的全部追求中,我找到了一种新的生活方式...我还有一个很长的问题和苦恼:
解决方案

基督教徒对此问题的回答:

1)myproject/www/config.xml

但是他提到了另外2个config.xml:

2)myproject/platforms/android/res/xml/config.xml

3)myproject/platforms/android/assets/www/config.xml

似乎我上面描述的名称和描述问题仅出现在文件nr中. 2个 在文件nr中. 3一切似乎都还不错...名称和描述部分都很好....因为我希望自动进行的所有其他操作仍然非常混乱.

我的掩饰:在整个过程中仍然存在许多错误...

In the config file that is the blue print for all platforms, i Have added this:

<name>My app name</name>
<description>
    My app description.
</description>
<author email="my email" href="my url">
    Same name
</author>

But after running

phonegap run android

In the config.xml in the folder platforms/android/res/xml it gives:

on top of the file:

<name>Hello Cordova</name>
<description>
    A sample Apache Cordova application that responds to the deviceready event.
</description>

than the feature list

and than (before the preferences):

<name>My app name</name>
<description>
    My app description.
</description>
<author email="my email" href="my url">
    Same name
</author>
<feature name="http://api.phonegap.com/1.0/device" />

So it does copy the name etc in the config file... but somehow leaves the example name in the config file.

Edit 16-jan-2014

Although this question: Config.xml ignored in creation process is about and the html reference... it look's like there is still a lot work to do for the command line option that creates the platform folders... so my attempt to make evrything work (both ios and android) from 1 www folder looks like a mission impossible right now.

For developing this is a mess... some things (plugins) you have to do from command line... and do a build to get the proper config... but than all the mistakes you have recovered manually... will be overwritten again!

Edit 12-feb-2014

by the way, in my total quest in this phonegap new way of living... I have another very long question and asnwering: Upgrade to phonegap 3.3.0

Edit 5 may 2014

Due to all problems in phonegap, the benefits of the principle behind phonegap has gone for me. (I still believe in potential phonegap can be the solution... but for now it's to premature). So I Am sorry i have to leave the phonegap path. I let this answer open for the ones still searching for answers... but do not expect any answers or the 'acceptance of the right answer' from me.

解决方案

The answer of christianmenkens on this question: Cordova Android Plugin: config.xml overwritten by cordova prepare? gives some more insight in my problem here...

He describes 3 config.xml files. What I call the 'blue print' config.xml file, is his number 1 file. (the only one that should be edited according to the docs of phonegap....

1) myproject/www/config.xml

but he mentions 2 other config.xml:

2) myproject/platforms/android/res/xml/config.xml

3) myproject/platforms/android/assets/www/config.xml

it looks as if the name and description problem I describe above only appears in file nr. 2 In file nr. 3 everything seems ok... well the name and description part.... because all other things I expect to go automatically is still very messy.

My onlu conclusing: a lot of bugs still in this whole procedure...

这篇关于CLI build Config.xml phonegap 3.3.0忽略名称和描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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