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 BFAFEF542 for ; Thu, 4 Apr 2013 18:18:25 +0000 (UTC) Received: (qmail 47853 invoked by uid 500); 4 Apr 2013 18:18:25 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 47822 invoked by uid 500); 4 Apr 2013 18:18:25 -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 47813 invoked by uid 99); 4 Apr 2013 18:18:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 18:18:25 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 18:18:19 +0000 Received: by mail-oa0-f42.google.com with SMTP id i18so3147700oag.15 for ; Thu, 04 Apr 2013 11:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=sHc2J2ipMV+1dn+ExKHEEhuzKZzSbsyTwoseQd8fo4Q=; b=bkByKsFPccx9JimR35wXbZy7/1n8w5OV2lbcYs9t8MZht8IhfkC0d6Iz3ui1RJF+nU gF1LyF1h7oPcWIAzCB5BrWTaDprow8KfedVcfMfEcUaWgnHu6Ry0FD+9EYRX1izURu2k IJG55iIGHPJPDqFfxLtNKwVseBTmhoyzNkm3MqqAWKOXifnYSq0ExagzP94YCq/4Knu3 C5K1CUm8+FQ8Dx7b8OqLM/Utmclb7ZMRodzqFysQ79Mk/3pJdvvx5xdBSW0ZDt/etXrF 0M4Kir01VnL6pNUqmRxqeRBTjiVdzkv7DViNXeIDKW+usaMeNGsbNSzJ3O/6SeM+Y5EW 2qkg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=sHc2J2ipMV+1dn+ExKHEEhuzKZzSbsyTwoseQd8fo4Q=; b=HrrjLvinIXZJIo+quW/QulAVw+51+6zx/TZpfR2zz85mLc6Q+fFU/GwjrFkvBsCUxX JGscDxsDbMAjutB1LzZrWPgf+OCaqZxBv90XydiDqyUJoqqZQ3D/GUMhtFcJckurqUGt 9WsKTlM3s+/cADbijv4lsVRK48Phd0gX4ByHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=sHc2J2ipMV+1dn+ExKHEEhuzKZzSbsyTwoseQd8fo4Q=; b=pKSm4pVtOv01sOG/9YoggwUnfNUiM4LDo782p2m7NXGaXcnyxXtFclHro3OjbtPOjR tC7a9saXt7NGuoeXamYEQHWpKHnDgHMj++Av1A/VHGz51bGy1PLTeg0TZT5yUfegZVAw EZBRDXAjYNJh8jPWHZxQ+KkBDuxrbCrc1UW0IVmirhVBfe+mZfcULwXGOrdCSKb3GBTW XRsIn3vhvjaDR7OfhZM60UaKfqFRybgy9kR+iRccQuzztJtoIyW1lKGFIOzr0BLPCB8g mazYNxihmYRwxFnvX5A7gAvApOe3yvDdp2ycIauhP44BswGj25qJCQzq4/vt/DG9UMUT ItmA== X-Received: by 10.182.32.1 with SMTP id e1mr5135370obi.90.1365099478464; Thu, 04 Apr 2013 11:17:58 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.84.199 with HTTP; Thu, 4 Apr 2013 11:17:38 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Thu, 4 Apr 2013 14:17:38 -0400 X-Google-Sender-Auth: 8AkN6OKSIh_cQfg21_et6yNduuI Message-ID: Subject: Re: Unifying the config.xml To: dev Content-Type: multipart/alternative; boundary=089e01177baf7f9d9f04d98cfd5f X-Gm-Message-State: ALoCoQmAZPY/iCBgoS4y9Y9VuArx96csyHkJq6V1hELzAPXCUAXJFwd/zoM6osvAD269kvwP/eR3ioJBfDTF8yIPcWhz4AwPZwGFs2KAtkwE9ADn3kC7j7QhXYHODhQsuoTn7J4ySPngQPtD8plUrT3rFxA73Ptrbw+TIyA3EF+c1slt3cID2GD4eXzaud3dLqP2Ve/NaWv3 X-Virus-Checked: Checked by ClamAV on apache.org --089e01177baf7f9d9f04d98cfd5f Content-Type: text/plain; charset=ISO-8859-1 Some feedback: + + ` Why have the second line? it's made redundant by the first, and when we do serve files locally, we do so via file: URLs. + I don't see in the widget spec. Seems like a good idea to be able to se a log level, but probably would be more appropriate as a , and out of the scope of this change. Using for the class name does more align with the spec, but using $platform-package to address platform differences seems out of place compared with how these are addressed by CLI's config.xml (using gap:platform attributes or tags). What would be better (I think) would be to have , and use CLI/plugman to deal with putting in the correct versions per platform. E.g., if iOS adds something to its template config.xml file, I don't want to have to add this value to each platform's config.xml file. On Thu, Apr 4, 2013 at 1:11 PM, Shazron wrote: > Yes please. I want to get this pain all over with :) > > > On Thu, Apr 4, 2013 at 9:56 AM, Filip Maj wrote: > > > Sounds good! > > > > Ping Shaz, Andrew, Michal, Joe, Simon, and anyone else involved in > Android > > & iOS. > > > > On 4/4/13 5:08 AM, "Gorkem Ercan" wrote: > > > > >Hi Filip, > > >Thanks for looking at this. I have just updated the PR(s) with corrected > > >config.xml ids for templates on all projects. > > > > > >I am also planning to send a PR for updates to doc once these are > > >integrated. > > >-- > > >Gorkem > > > > > > > > > > > >On Wed, Apr 3, 2013 at 6:29 PM, Filip Maj wrote: > > > > > >> Hey Gorkem, > > >> > > >> Thanks for this and putting the effort into kick starting this. Sorry > > >> about the late reply. > > >> > > >> I like the changes (made a minor comment re: widget element id in the > > >> github pull request). Correctly adopting the spec should help. > > >>Leveraging > > >> several elements inside a element, one param per > > >> platform, to describe the resolution of native plugin source from > > >> cordova.exec service label [1] is elegant. > > >> > > >> I'm up for +1'ing these changes. Should help with our ongoing plugin > > >> tooling work too! > > >> > > >> Unless other people have problems with this approach, I'll aim to > merge > > >> this stuff in on Friday. Perhaps some of the core maintainers for > > >>Android > > >> and iOS can review those particular changes (I trust your judgement > more > > >> than my high-level understanding :P). If that all checks out, we can > set > > >> up issues for the Windows Phone platforms, BlackBerry, and other > > >>platforms. > > >> > > >> [1] https://github.com/apache/cordova-android/pull/41/files#L2R57 > > >> > > >> On 4/1/13 2:24 PM, "Anis KADRI" wrote: > > >> > > >> >I would like this to be reviewed/merged as well because config.xml > > >> >differences are becoming a pain in terms of plugin management. > > >> > > > >> >Android has a /cordova/plugins. iOS had a /cordova/plugins in 2.4 and > > >>now > > >> >has a /widget/plugins. BlackBerry 10 has a /widget/plugins and is > > >> >following the spec by using "feature" instead of "plugin". > > >> > > > >> >Whatever we decide I would like to have some kind of uniformity > across > > >> >platforms. > > >> > > > >> >-a > > >> > > > >> > > > >> >On Thu, Mar 28, 2013 at 12:05 PM, Gorkem Ercan > > >> >wrote: > > >> > > > >> >> Hi All, > > >> >> I am working on a set of plugins for Eclipse that will eventually > be > > >> >>part > > >> >> of the JBoss IDE. I seem to have similar requirements to > cordova-cli > > >>and > > >> >> noticed that some of the things that are planned for cli is well > > >>aligned > > >> >> with our plans. So I am hoping to contribute as much as I can. > > >> >> > > >> >> We also use W3 widget packaging spec based config.xml as a blanket > to > > >> >> configure a Cordova App for all platforms. However there are > > >> >>differences on > > >> >> the config.xml that each platform consumes compared to the W3 spec > > >>and > > >> >>as > > >> >> you can imagine a more uniform platform behaviour makes our life a > > >>bit > > >> >> better. So I have tried to take a shot at unifying the differences > > >> >>between > > >> >> platforms and created pull requests for android[1]. iOS[2] and > > >>CLI[3]. I > > >> >> think with these PRs JIRA[4] for migrating from to > > > >> >> should be resolved (at least for iOS and Android) and its parent[5] > > >> >>should > > >> >> be updated. > > >> >> > > >> >> The changes are compatible with the existing config.xmls on iOS and > > >> >> Android, I think it will be even possible to mix and match the new > > >> >>syntax > > >> >> with the old ones. > > >> >> > > >> >> [1] https://github.com/apache/cordova-android/pull/41 > > >> >> [2] https://github.com/apache/cordova-ios/pull/45 > > >> >> [3] https://github.com/apache/cordova-cli/pull/7 > > >> >> [4] https://issues.apache.org/jira/browse/CB-1109 > > >> >> [5] https://issues.apache.org/jira/browse/CB-1108 > > >> >> > > >> >> -- > > >> >> Gorkem > > >> >> > > >> > > >> > > > > > > > > >-- > > >-- > > >Gorkem > > >http://www.gorkem-ercan.com > > > > > --089e01177baf7f9d9f04d98cfd5f--