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 04750105A6 for ; Mon, 21 Oct 2013 21:18:32 +0000 (UTC) Received: (qmail 93915 invoked by uid 500); 21 Oct 2013 21:16:23 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 93876 invoked by uid 500); 21 Oct 2013 21:16:16 -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 93826 invoked by uid 99); 21 Oct 2013 21:16:12 -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 21:16:11 +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.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vb0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 21:16:05 +0000 Received: by mail-vb0-f43.google.com with SMTP id g10so2139801vbg.30 for ; Mon, 21 Oct 2013 14:15:44 -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=u9s0wJBbrmGzeP+cIfyd355dydaGkAsL1SWtlHN556k=; b=BnjWgQv8hO3mOhz7LQedAgyn4hXvNCnYJXrq6J75IHyrx7OC6LJ8A2Znby3dvu95pX rFD2rstkItJ2LPgNnNRAGzZFWJSLTjcUjBjhLniF23EIskJugARkrOB21a8OwSUJ+NHR 1OuQc8tb57a8OtiGG2ISb/p5n5ys/UXpaM7oiMGT0Ol8ZJSIglbm1fBfC1XP1Sc72Aij hzr2caZVIbsUbMUkMNO+/now9W6aDzyx4AmQMtlgzT+m0+RCDz7Wlmt8do946Kj14iTK PltAEwnfaIcGiCoFY4HTBfIXaJpO+XtGwBPeal5a6R9KJbX9SafWLxKp1hwtGICAPyPF R+Vg== 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=u9s0wJBbrmGzeP+cIfyd355dydaGkAsL1SWtlHN556k=; b=ReC6l3f7ldSYLXDkkutKGvhdDH+kqq6WXfwTuC+o9fI+ho0QI0u20J+YXOwfQzl3H+ +7lNHW+wGrHvt9indBhToGsPP+27GvwI4SgJDhMssdU/z96pbwb1VKTUuiyuPlZokQ2k +Odx4VSMthXGy0BRCkwTOreOHFymqgv6LrMNc= 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=u9s0wJBbrmGzeP+cIfyd355dydaGkAsL1SWtlHN556k=; b=FuZCrtLNVdCe34SFqWSWyr766hZrWBDIod2wvPpjRRqkbqTtDs2F2zB6P31Ta/yU5R iSfLMhx1fh5Ia/d0O0eFG5W7TYJwVIdMXgvcBnQzds8zXbEgtb6wuyS38oPLL7ipaS1y Fu95sCDuAl6xk2BkyIh+wjTx4S0YdkUs4JptCPIwEJWTUR2TqFjiO1yNUJ49uyoIRZtg k7IdFFKvy98whAC0RK8dzLImdI8Ged9Y0M3vS7b4FqP3z7HdBEvZkrSxwy3g1crVAeKK ba1SYReh0m/rzta4+qPagqqUND/ZrCMv7O8Uqf5VVwwkZBmX5kZbA4EQ8/E55LmBcr1D R2Nw== X-Gm-Message-State: ALoCoQkoHAUT8PugNucjyA5aiPW8aa7sgvFbCHt2k/5/x1/X9dvKpFh8aRVCnDXmegq3RPANS5D8gjU9za9WmP+0sgm2AMeJ4ChiNFNB5+5rNS9q+bfhyjHjIEb2XjGJYSSHvB1LVMyhv6hG7GN3kZU+eArQk01ApOSrn6t3sWIgcHfiabmX+DoTntOdOUo6VfTr5/KYK97UgcPJxxwZNrumc3sAPZzZmg== X-Received: by 10.58.23.33 with SMTP id j1mr1288690vef.27.1382390144027; Mon, 21 Oct 2013 14:15:44 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.120.35 with HTTP; Mon, 21 Oct 2013 14:15:23 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Mon, 21 Oct 2013 17:15:23 -0400 X-Google-Sender-Auth: Gz9Gqvhg0K_QS1ufO4YDkA7EjDE Message-ID: Subject: Re: www/config.xml plugin dependencies To: dev Content-Type: multipart/alternative; boundary=047d7b339df97a0ecd04e946c923 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b339df97a0ecd04e946c923 Content-Type: text/plain; charset=ISO-8859-1 Maybe we do just go the npm style route. cordova plugin add (without ID) -> reads deps from config and installs them. cordova plugin add --save-deps ID -> adds plugin and adds to config cordova plugin add --save-deps (without ID)-> takes installed plugins and adds to deps something like that? On Mon, Oct 21, 2013 at 4:24 PM, Axel Nennker wrote: > A MUST would be strong I think. Although the two ways don't mix well. > Using dependency and plugin-add simultaneously is probably wrong. > So plugin-add could look for www/config.xml dependency elements and suggest > to continue to use them if one is found. If none is found then it adds the > plugin. > > Updating plugins during create/prepare would be a good start. > Plugins could be removed when the subdirs of the plugins directory and the > dependency elements indicate it. > > Axel > Am 21.10.2013 20:35 schrieb "Michal Mocny" : > > > 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%20Filesaythatthefeatureelement 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 > > > > > > > > > > > > > > > --047d7b339df97a0ecd04e946c923--