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 2527DFA7E for ; Tue, 16 Apr 2013 19:32:08 +0000 (UTC) Received: (qmail 53286 invoked by uid 500); 16 Apr 2013 19:32:07 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 53227 invoked by uid 500); 16 Apr 2013 19:32:07 -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 53219 invoked by uid 99); 16 Apr 2013 19:32:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 19:32:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of purplecabbage@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 19:32:03 +0000 Received: by mail-vc0-f178.google.com with SMTP id hv10so704126vcb.23 for ; Tue, 16 Apr 2013 12:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:references:from:in-reply-to:mime-version:date:message-id :subject:to:content-type; bh=Vuow/kPq+sfryWWyhj6mJg21Ce+M1vYgz0Eot5YKjQA=; b=aRplSwSuln85oibyCE1to31wAjNJ4jHugT5utWduSLq1t8B7thCilUvD4YmrBu/DVM YctwjDFa1RYIXI4y4D1l4WEPBZV4vBDxzAPY3u4H2fFzOjc0bU52YJvxFTYqh7E95nLM xfNPVfW2VlmR9moztZyw4ORlKJZfkgMZbFQ2licrY+XNSNC0JNr2pvWdx746xv/QOg5/ qEgxwroMSaHs1oZ0jZm71iVBcKLuKtncW52S7a3H6LbtHW8WVYMpgcdSSQOZdPBAE8Vt ZV7k0QwdkQiVlQssXZ/eRS0eiETzD2Jj6GLRrikCJTKTVwMotvfWbbgJ7Xu1RsdunR0s 9tig== X-Received: by 10.220.104.20 with SMTP id m20mr2556300vco.70.1366140702564; Tue, 16 Apr 2013 12:31:42 -0700 (PDT) References: From: Jesse MacFadyen In-Reply-To: Mime-Version: 1.0 (1.0) Date: Tue, 16 Apr 2013 12:29:21 -0700 Message-ID: <7310490772218074272@unknownmsgid> Subject: Re: Plugman future branch work + update To: "dev@cordova.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org If you specify --platform ios for a plugin that does not support ios it should be an error. Cheers, Jesse Sent from my iPhone5 On 2013-04-16, at 12:12 PM, Braden Shepherdson wrote: Why do you want errors when a plugin doesn't support a platform? Currently this silently does nothing, and this is by design. Some plugins only support some platforms, and that's fine. It just won't install on the others it doesn't support. Braden On Tue, Apr 16, 2013 at 2:53 PM, Filip Maj wrote: > >> Would like errors about trying to add a platform / plugin when the plugin >> doesn't support the platform. > > Error out and stop, or warn about a mismatch? > >> Idea: Add all plugins & platforms to config.xml, so instead of having to >> type "cordova plugin/platform add ..." for all plugins & platforms, you >> can >> list them in your config.xml and type "cordova prepare". Might make it >> easier to specify what versions of all the plugins / platforms you want to >> use. > > We'd be bastardizing the config.xml even more with that, but it does get > us a step closer to treating everything outside of www/merges/app folder > as build artifacts. > >> >> >> On Tue, Apr 16, 2013 at 2:44 PM, Filip Maj wrote: >> >>> We will summarize baseline use cases for plugin management w.r.t. >>> dependencies on a wiki article (once wiki is usable again). From these >>> we >>> can write tests that will drive our implementation work. Failure points >>> we >>> already know are: >>> >>> - asset collisions for native code and non-js web assets. We error out >>> noisily. >>> - dependencies and requiring two different versions of same plugin. >>> Due >>> to some of the native language constraints (i.e. Java) we cannot >>> (easily) >>> support this, so we agreed that we do not support different versions of >>> the same plugin in the app, therefore: fail noisily. >>> >>> Based on the above + other use cases, we will write tests. Then we write >>> code to fix tests. Once tests pass, we merge future branch back into >>> master and we are ready to roll out plugman/plugin.xml support to the >>> public. Thoughts on what kind of documentation we should offer with >>> this? >>> At a minimum we will need to revamp the plugin authoring guide. >>> >>> Anis and Braden will be doing a similar sort of thing with Plugin >>> Discovery. >>> >>> In the mean time, any other use cases the group can think of in terms of >>> plugin management and what plugman should support, feel free to post >>> them >>> here. > >