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 AF42710EE1 for ; Fri, 23 Aug 2013 12:46:32 +0000 (UTC) Received: (qmail 98287 invoked by uid 500); 23 Aug 2013 12:46:32 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 98189 invoked by uid 500); 23 Aug 2013 12:46:27 -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 98176 invoked by uid 99); 23 Aug 2013 12:46:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 12:46:26 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of john.wargo@sap.com designates 155.56.66.97 as permitted sender) Received: from [155.56.66.97] (HELO smtpgw.sap-ag.de) (155.56.66.97) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 12:46:20 +0000 From: "Wargo, John" To: "dev@cordova.apache.org" Subject: RE: core APIs and the CLI Thread-Topic: core APIs and the CLI Thread-Index: AQHOnzPsoD9ZOxGjWEeE5XAGws5c1JmhmIAAgAArWACAAGNcgIAAGhOAgABxChA= Date: Fri, 23 Aug 2013 12:45:34 +0000 Message-ID: <5900F9BCB827854FB01CA94BA718810D0D4B81ED@USPHLEMB11A.global.corp.sap> References: <5215F9FB.1010605@johnwargo.com> <5216A1EB.4020404@gmail.com> <7DAD0A54-0D71-4F9D-8ED1-D784B991225A@gmail.com> In-Reply-To: <7DAD0A54-0D71-4F9D-8ED1-D784B991225A@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.4.150.15] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks. I was simply following the documentation - it's not clear on the fi= le location I guess. John M. Wargo SAP | Charlotte, NC | USA Office: +1 704.321.0265 | Mobile: +1 704.249.7476 Email: john.wargo@sap.com Twitter: @johnwargo -----Original Message----- From: James Jong [mailto:wjamesjong@gmail.com] Sent: Thursday, August 22, 2013 9:16 PM To: dev@cordova.apache.org Subject: Re: core APIs and the CLI I believe you are looking at the wrong config.xml file. You should see it = with the plugin feature definitions under the folder. It's a bit con= fusing but the one you see under www is just likely copied during prepare b= y the CLI from the top-level www. -James Jong On Aug 22, 2013, at 7:42 PM, John M. Wargo wrote: > OK, I just whacked everything and started over. I opened a terminal windo= w on Macintosh and issued the following commands: > > jmw-mini:~ jwargo$ cd dev > jmw-mini:dev jwargo$ cordova create test > jmw-mini:dev jwargo$ cd test > jmw-mini:test jwargo$ cordova platform add android ios > jmw-mini:test jwargo$ cordova plugin add https://git-wip-us.apache.org/re= pos/asf/cordova-plugin-camera.git > jmw-mini:test jwargo$ cordova prepare android > jmw-mini:test jwargo$ cordova prepare ios > > At the end of the process, I looked at the config.xml in the iOS project'= s www folder and found the following: > > > > HelloCordova > > A sample Apache Cordova application that responds to the devicerea= dy event. > > > Apache Cordova Team > > > > > > > > I even went in and forced an update to the config.xml in the cordova proj= ect's config.xml file and did another cordova prepare. > > My changes came over to the config.xml, but no camera entry. > > I'm running CLI 3.0.6. > > On 8/22/2013 1:46 PM, Ian Clelland wrote: >> On Thu, Aug 22, 2013 at 11:11 AM, Braden Shepherdson wrote: >> >>> Are you sure you ran a "cordova prepare" in both cases? There should be= a >>> tag for Camera on both platforms, as far as I know. >>> >>> >> That was my thinking as well. I checked earlier, and there definitely is= a >> feature tag for iOS. (It's the only tag specified in plugin.xml, and it'= s >> the only required change, according to the docs). I don't think plugin a= dd >> / plugin remove should be manipulating config.xml in the platforms >> directories -- that should be the job of `cordova prepare`. >> >> Ian >> >> On Thu, Aug 22, 2013 at 7:46 AM, John Wargo wrote: >>>> I'm working on the part of my book that deals with the core APIs and I >>>> need some guidance on how things are supposed to work. >>>> >>>> I noticed that if I added the Camera API plugin to a project, that the >>> CLI >>>> manages adding the camera feature to the android project's config.xml >>> file >>>> in res/xml/config.xml. If I remove the plugin, the settings are remove= d >>>> from the config.xml. >>>> >>>> The documentation says that a setting is also required for the iOS >>>> config.xml, but in my testing, the CLI doesn't make that change for me= . >>> The >>>> Xcode project's config.xml doesn't change as I add and remove the Came= ra >>>> plugin. >>>> >>>> So am I seeing an anomaly here or is this behavior as expected? I >>> assumed >>>> the CLI would take care of everything, but my testing here says >>> otherwise. >>>> How's this supposed to work or what must the developer do? It doesn't >>> make >>>> sense that the CLI would do this for Android and not iOS. >>>> >