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 821F411E54 for ; Wed, 9 Apr 2014 21:25:48 +0000 (UTC) Received: (qmail 49375 invoked by uid 500); 9 Apr 2014 21:25:47 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 49346 invoked by uid 500); 9 Apr 2014 21:25:47 -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 49338 invoked by uid 99); 9 Apr 2014 21:25:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 21:25:47 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gorkem.ercan@gmail.com designates 209.85.213.42 as permitted sender) Received: from [209.85.213.42] (HELO mail-yh0-f42.google.com) (209.85.213.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 21:25:42 +0000 Received: by mail-yh0-f42.google.com with SMTP id t59so3027855yho.29 for ; Wed, 09 Apr 2014 14:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=d0Hgb9tZk3LJzUVQv5ermwShRRwUkLYDOWhZA37mQWY=; b=fGcuaGRhDaDQ5ivN7rQhHeoK3hmWzwVUpCP2DBzxVtYEUObYlvEi3aA/TnxWBg8KVW LnVGtY6Cx/Fks5xRXqJCpcvZJCbX4Ecx9fwGlAQa4ulG2ZXBihX+AP+0zgGwlRepeX9B d9bSyG0Nmkc4B0tUfowrhRxhLdWXLV5gCRW07Ego7V6EgADtwS5S6Nhvqi5XyXofX0w+ /4Qq8eVxWJeq+di4lVhZJVmkns9oH1qroriOLmjibG/gJbuJBXtabDxqqhD+W4zQSvY/ alndlNTO0ISD/1+b8Rq2mczg7Vc3M6UKfm94tJhelUKXxNCUsc79hQ+mRofM3iqhYNaq sf4w== MIME-Version: 1.0 X-Received: by 10.236.74.229 with SMTP id x65mr3471144yhd.131.1397078722179; Wed, 09 Apr 2014 14:25:22 -0700 (PDT) Received: by 10.170.135.193 with HTTP; Wed, 9 Apr 2014 14:25:22 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Apr 2014 15:25:22 -0600 Message-ID: Subject: Re: engines and plugins on config.xml From: Gorkem Ercan To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=20cf3005144cf5792c04f6a2bc84 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3005144cf5792c04f6a2bc84 Content-Type: text/plain; charset=ISO-8859-1 Agreed, I was thinking about making the version attribute optional which would basically signal CLI to create platforms with the latest&greatest platforms releases. -- Gorkem On Wed, Apr 9, 2014 at 12:45 PM, Michal Mocny wrote: > This would be a great contribution. > > We should consider using the tag for plugins, which I think > maps well to existing specifications for urls and versions. > > For platforms, I'm fine with , though I don't like tieing to > specific versions by default. I think we should support it, but my usual > reason for project re-creation is a trivial way to upgrade everything. > > Thanks for signing up! > > -Michal > > > On Wed, Apr 9, 2014 at 12:45 PM, Andrew Grieve > wrote: > > > Gorkem - if you implement this you'll be my hero! > > > > vs is a bit weird, because is already a > > thing that exists right now that is meant to mean tags within it apply > only > > to the platform is lists. E..g > > > > > > > > > > > > On one hand, you could throw a version in there, but given that you can > > have multiple tags, it's a bit weird. I can also see the > > use-case of wanting: . > > > > So... wanted to point this out for consideration, but think that > > might be better because if this reason. > > > > > > I think the argument is more compelling to have plugins use > > rather than . I think we'd only want: > > > > And not have end-users need to add in the , > > since that's up to the plugin.xml to add in. > > > > > > > > > > On Wed, Apr 9, 2014 at 8:09 AM, Gorkem Ercan > > wrote: > > > > > I guess it could be platform as well. I put engine because that is what > > > plugin.xml uses for its dependencies. > > > -- > > > Gorkem > > > > > > > > > On Wed, Apr 9, 2014 at 10:01 AM, Sebastien Blanc > > >wrote: > > > > > > > I had the same idea and I really love it > > > > but why not "platform" instead of "engine" ? > > > > > > > > > > > > > > > > On Wed, Apr 9, 2014 at 5:58 PM, Gorkem Ercan > > > > > wrote: > > > > > > > > > Hi, > > > > > I would like to propose a couple of enhancements to the top level > > > > > config.xml that would enable us to recreate a project easily. > > > > > > > > > > (Note: the examples below assumes a cdv namespace on config.xml) > > > > > > > > > > 1. engines tag : > > > > > > > > > > > > > > > > > > > > > > > > > CLI could use this tag the reconstruct the platforms hence the > > > platforms > > > > > folder would really become a build artifact. I believe phonegap and > > the > > > > > JBoss IDE is already using a similiar thing on the > > .cordova/config.json > > > > > > > > > > 2. plugins > > > > > > > > > > > > > > cdv:version="0.2.8"> > > > > > > > > > > > > > > > > > > > > Alternately > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is reutilizing the existing feature tag. ID is the only > missing > > > > piece > > > > > of information for CLI to reinstall the plugins to a project is the > > > > plugin > > > > > id and version. This would also eliminate the need to share plugins > > > > folder > > > > > with the Cordova projects. The plugins folder can still be utilized > > for > > > > > plugins that were not available from plugin registry. Also if the > id > > is > > > > > missing on a feature tag CLI would skip restoring that plugin for > the > > > > > project. > > > > > > > > > > On top of this I am volunteering myself to do the work. I guess it > > will > > > > > require a good amount of changes to CLI prepare. > > > > > > > > > > --- > > > > > Gorkem > > > > > > > > > > > > > > > --20cf3005144cf5792c04f6a2bc84--