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 80A0B10D46 for ; Mon, 21 Oct 2013 18:35:18 +0000 (UTC) Received: (qmail 64053 invoked by uid 500); 21 Oct 2013 18:35:02 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 64023 invoked by uid 500); 21 Oct 2013 18:35:00 -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 64011 invoked by uid 99); 21 Oct 2013 18:34:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 18:34:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mmocny@google.com designates 209.85.128.176 as permitted sender) Received: from [209.85.128.176] (HELO mail-ve0-f176.google.com) (209.85.128.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 18:34:52 +0000 Received: by mail-ve0-f176.google.com with SMTP id jz11so4568652veb.35 for ; Mon, 21 Oct 2013 11:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=MbXC9x3WvyrdYY7cuPCdb/0Gwpjnb/pwNm/x0pCPTKg=; b=DTP756vQxwoe5iJRypM2ppRr/zXMpgk1WXuBvCEJCJ2i3E52/NivQA8V6Tom0GInkh GyEuygS+VtFGgMFcRVj6cWo16swrFkSVBtMS4pg9sTyQstPah74/NlFjq/7W9LftT/G6 QXdn8Q+OYHUJLZUbH1PN28xrFypC29SD51t6z1kIZ3sdOQte5RsgFLd6Wmkn58IhcueH N/4DyaDacTV6l2n9XNlUUeSknW7jckuDYGkTShec1TUxb3WUArwyrPbd2Q1UOnLKCuwK A4rxBurn1E9mSkarT2FtLl5Y7ZcJXvB97T+VLeGm5sglztNZFpE+ampAT5iDpkGNtxCq pyGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=MbXC9x3WvyrdYY7cuPCdb/0Gwpjnb/pwNm/x0pCPTKg=; b=lS3vO9Hxyc8TBBQ8lTgmVl5ekRsISzX/Ick/nE+gAh2DcKuwW7qXwWRskDRgsPMhdw IJ9SnTtAp2OydkzYJYXijNW4RsZxIBu9Q/I696k29EG6noGyDH2G/EwzghKrzpwcaJQR pntwXaTxVhOq3IRYPaC5X7qZ0u743IoMYMNv8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=MbXC9x3WvyrdYY7cuPCdb/0Gwpjnb/pwNm/x0pCPTKg=; b=eYrRSTmJdcvJurfLe0t/wnTUTJDwStvmEBa9JNLPY6Pxq/P/LghSbXd+MH/AiiDd5M bLr+UYlvWDBvnMb0AFAh50lpD3jkE8wRD+lWcjhAkiCWo4m3JzznkH8Dn9oPa5S5j9Eg K11Y5MZNeiLTRrmvhD7GVUvIEE0wi/bkPahnKrGXlNId93gK12PHsUQcaNy27WtqgYPE Ebh3mcb7eqlpHFHztKpVldlTpE4DYqksDa18sH/6lAX1NFT2wAqLGUrkD5eDdzGfHMht xTIpKF0jfSziKa62xgTm8lTIOEuVGoLIInbicXUM61jMH/JmVGfxrE/FVI8/Tp/k/xb8 MbYA== X-Gm-Message-State: ALoCoQlIidCZfydtBIEjDe6lNyQhtEVID7EWSHBlgBPGgwkvn4CRBAKAJFy5l6ztdno6l71wm1bp91s8jn/M/vBwXqQPB184oesSu1fT4i33zfbK6xa5r2n96zYq1lFEIr2JmKw97lUN1UXLRp3R4tgN7eU3ytSeRGcW4UeAIggclbiO44s47SViHny9gWGfuig3gyWVfvZ+ytULUjpUhJi38z1pFrJnMQ== X-Received: by 10.52.35.136 with SMTP id h8mr9888996vdj.6.1382380471077; Mon, 21 Oct 2013 11:34:31 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.120.35 with HTTP; Mon, 21 Oct 2013 11:34:10 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Mon, 21 Oct 2013 14:34:10 -0400 X-Google-Sender-Auth: HehZCPoNz5qOoC9HGhL_O-mWPo8 Message-ID: Subject: Re: www/config.xml plugin dependencies To: dev Content-Type: multipart/alternative; boundary=20cf3079bfa2ec6bcd04e944880a X-Virus-Checked: Checked by ClamAV on apache.org --20cf3079bfa2ec6bcd04e944880a Content-Type: text/plain; charset=ISO-8859-1 We've discussed adding to app's config.xml, but its interesting that you intend to have that work during build/prepare step. Previously I think this was discussed in terms of "cordova create" only, which wouldn't satisfy your use case. I think your use case is quite valid, but now im concerned about how to support removed over time, or manually installed plugins that arent in list... Maybe every plugin installed/removed *must* be reflected in the app's config.xml? -Michal On Mon, Oct 21, 2013 at 1:42 PM, Axel Nennker wrote: > Yes. Currently we are adding plugin be hand. > The problem is that we have a distributes developer team. So when the UI > developers change something in www to require a plugin and merge that with > master; then when the other developers pull master again the plugin is > missing and the Application hangs. > This has led to some frustration and wasted time. > > I think it would really help if www - developers could express a dependency > on plugins so that the next > phonegap local android build > updates to the now missing plugins... > > cheers > Axel > > > 2013/10/21 Ian Clelland > > > I don't think that we have "app dependencies" in Cordova (yet). If your > app > > depends on a plugin, then you should install that plugin. > > > > Either "cordova plugin add org.apache.cordova.globalization" or "plugman > > install org.apache.cordova.globalization" (not sure about the command > line > > params there) should add the plugin and modify your config.xml file > > appropriately. > > > > If you're concerned about automation / distribution, and want a simple > way > > to declare all of your app's dependent plugins, rather than just > > documenting them, then you can use the technique that mobile-spec > uses[1]: > > Create a "dependency-only plugin" which just lists all of the plugins on > > which your app depends, and as part of your create step, install that > > single plugin. Cordova will then recursively install all of the > > dependencies listed in it. > > > > [1] > > > > > https://github.com/apache/cordova-mobile-spec/tree/master/dependencies-plugin > > > > > > On Mon, Oct 21, 2013 at 10:44 AM, wrote: > > > > > Hi, > > > > > > the docs in > > > > > > https://cordova.apache.org/docs/en/3.1.0/config_ref_index.md.html#The%20config.xml%20Filesaythatthe feature element is only for the platform specific config.xml > > > s, right? > > > > > > Is there a way to specify that my phonegap app needs a plugin on all > > > platforms e.g. Globalization? > > > > > > Making up this "example": > > > https://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md.html > > > > > subdir="some/path/here" /> > > > > > > We are building an app that uses Globalization in javascript; so there > is > > > no platform dependency > > > How do I specifiy in www/config.xml that Globalization is needed as a > > > plugin? > > > > > > Cheers > > > Axel > > > > > > --20cf3079bfa2ec6bcd04e944880a--