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 44FF8179F2 for ; Wed, 18 Mar 2015 23:35:05 +0000 (UTC) Received: (qmail 97975 invoked by uid 500); 18 Mar 2015 23:35:05 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 97932 invoked by uid 500); 18 Mar 2015 23:35:05 -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 97920 invoked by uid 99); 18 Mar 2015 23:35:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 23:35:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nikhilkh@microsoft.com designates 65.55.169.105 as permitted sender) Received: from [65.55.169.105] (HELO na01-bl2-obe.outbound.protection.outlook.com) (65.55.169.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 23:35:00 +0000 Received: from BN1PR03MB139.namprd03.prod.outlook.com (10.255.201.22) by BN1PR03MB139.namprd03.prod.outlook.com (10.255.201.22) with Microsoft SMTP Server (TLS) id 15.1.112.19; Wed, 18 Mar 2015 23:34:07 +0000 Received: from BN1PR03MB139.namprd03.prod.outlook.com ([169.254.4.9]) by BN1PR03MB139.namprd03.prod.outlook.com ([169.254.4.9]) with mapi id 15.01.0112.000; Wed, 18 Mar 2015 23:34:07 +0000 From: Nikhil Khandelwal To: "dev@cordova.apache.org" Subject: RE: (Mobile spec) Replace dependency plugin with plugin list parameter in createmobilespec Thread-Topic: (Mobile spec) Replace dependency plugin with plugin list parameter in createmobilespec Thread-Index: AdBhcjm5TBiUk5QvSNygcEo1C8hgnAAHsZmwABCLmjA= Date: Wed, 18 Mar 2015 23:34:07 +0000 Message-ID: References: <957F1ECDA90E004B8DBDE23CFC94E3A3D2CACFB4@XMB111CNC.rim.net> In-Reply-To: <957F1ECDA90E004B8DBDE23CFC94E3A3D2CACFB4@XMB111CNC.rim.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e0:ee43::2] authentication-results: cordova.apache.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB139; x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(164054003)(377454003)(51704005)(13464003)(33656002)(2656002)(86362001)(19580395003)(92566002)(15975445007)(86612001)(19580405001)(2950100001)(2900100001)(87936001)(76576001)(450100001)(102836002)(107886001)(2351001)(50986999)(99286002)(76176999)(74316001)(2501003)(46102003)(77156002)(40100003)(54356999)(110136001)(62966003)(122556002)(218763003)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR03MB139;H:BN1PR03MB139.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006);SRVR:BN1PR03MB139;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB139; x-forefront-prvs: 051900244E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2015 23:34:07.5138 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB139 X-Virus-Checked: Checked by ClamAV on apache.org +1 for this improvement to createmobilespec.js. As Josh pointed out, createmobilespec.js was testing plugin dependencies as= a side effect of its implementation detail. In fact, there was no specific= asserts or validation done to ensure that the plugin dependency feature wo= rked. Tests for plugin dependency should be tackled separately and designed purpo= sefully. Thanks, Nikhil -----Original Message----- From: Josh Soref [mailto:jsoref@blackberry.com]=20 Sent: Wednesday, March 18, 2015 8:36 AM To: dev@cordova.apache.org Subject: RE: (Mobile spec) Replace dependency plugin with plugin list param= eter in createmobilespec One disadvantage of this is that it means plugin dependencies aren't necessarily tested by most cordova developers. The BlackBerry 10 default plugin system includes a couple of dependencies, and plugin management has had a tendency to be fairly fragile/broken. I'm not opposed to going this way, but if we do, then I'd request that ther= e be a dummy plugin with a dependency (actually, probably with a grand-dependent too) just for the purposes of ensuring that default testing covers these cases. > -----Original Message----- > From: Alexander Sorokin (Akvelon) [mailto:v-alsoro@microsoft.com] > Sent: Wednesday, March 18, 2015 7:54 AM > To: dev@cordova.apache.org > Subject: (Mobile spec) Replace dependency plugin with plugin list parameter > in createmobilespec >=20 > Hi guys, >=20 > I would like to introduce a little improvement for mobile spec. >=20 > Currently createmobilespec uses dependency plugin to specify the list of > plugins to install. This approach has some limitations, for example after the > app is created the user cannot remove particular plugin because they all are > listed as dependencies of dependency plugin. >=20 > Developers may want to add custom plugin(s) to mobile spec for testing. Also > some plugins could not be supported under particular platform and should > not be installed. >=20 > I've replaced dependency plugin with new command line parameter for > createmobilespec to specify plugin list through CLI. If the parameter is not > passed, createmobilespec will use default list of plugins. >=20 > This change would affect anyone who uses dependency plugin, though, so I > ask a community to review my PR: > https://github.com/apache/cordova-mobile-spec/pull/123/files >=20 > Thanks, > Alexander Sorokin --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org