Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A315395CD for ; Tue, 31 Jan 2012 23:00:53 +0000 (UTC) Received: (qmail 64107 invoked by uid 500); 31 Jan 2012 23:00:53 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 64091 invoked by uid 500); 31 Jan 2012 23:00:52 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 64083 invoked by uid 99); 31 Jan 2012 23:00:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 23:00:52 +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 curtis.bryce@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 23:00:44 +0000 Received: by bke17 with SMTP id 17so539405bke.6 for ; Tue, 31 Jan 2012 15:00:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U+rU20Q2iE/MA/lehEi4bREFY0ZXu944iXVmb4H+WTg=; b=hceSWr++qxba9qfT7CgJBmn3a5LQQKh8qKPAZnUDJCPDPOpm+EtCRB2CJWyXJ0usI7 TDxHvt+XwBbGRJqfcOKDta9VM+YMhdHwp5ZpRmnpF+WTTfcNPl1NIzX+FuhQa2tO4KPx 0c8UaIv2HeQAnMARIdKK+mSVY1GkulY5pyupk= MIME-Version: 1.0 Received: by 10.204.146.14 with SMTP id f14mr2664485bkv.132.1328050824336; Tue, 31 Jan 2012 15:00:24 -0800 (PST) Received: by 10.205.126.146 with HTTP; Tue, 31 Jan 2012 15:00:24 -0800 (PST) In-Reply-To: <1106599726-1328050030-cardhu_decombobulator_blackberry.rim.net-1580858648-@b1.c19.bise6.blackberry> References: <1106599726-1328050030-cardhu_decombobulator_blackberry.rim.net-1580858648-@b1.c19.bise6.blackberry> Date: Tue, 31 Jan 2012 17:00:24 -0600 Message-ID: Subject: Re: Consistent implementation of the whitelist From: Bryce Curtis To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0015175cbabaa0d69404b7daed92 X-Virus-Checked: Checked by ClamAV on apache.org --0015175cbabaa0d69404b7daed92 Content-Type: text/plain; charset=ISO-8859-1 Having a single file like config.xml is desirable. I don't know how big it ends up being to support all of the individual platform options - icons, plugin mappings, etc., and how expensive it is to parse this file at runtime before plugins can be loaded and inited. The app startup time is directly affected by the time it takes to load and run plugins like Device and Connection. At the least, it can be used at build time to gen one or more runtime files - either due to platform requirements or for optimizations. On Tue, Jan 31, 2012 at 4:47 PM, wrote: > I would also vote for leaning more towards the config.xml for whitelisting. > > I know I didn't even know about plugins.xml and its purpose until I had > been working on android for a week or so. I may have been biased by coming > from BlackBerry first and expecting it to use my values from the config.xml > Sent on the TELUS Mobility network with BlackBerry > > -----Original Message----- > From: Filip Maj > Date: Tue, 31 Jan 2012 13:54:16 > To: callback-dev@incubator.apache.org > Reply-To: callback-dev@incubator.apache.org > Subject: Re: Consistent implementation of the whitelist > > On 12-01-31 1:46 PM, "Shazron" wrote: > > >>* for most platforms, config.xml does not map to a single file. On > >>Android, > >>for example, AndroidManifest.xml, strings.xml and phonegap.xml are all > >>involved; > > > >Not sure what you mean about Android - the three .xml files are > >compiled into a config.xml? > > Other way around. A config.xml file would, at build-time, be parsed and > compiled into however many native documents a platform needs. In Android's > case, a AndroidManifest.xml, strings.xml, etc. iOS would do the same but > compile into the app .plist file and whatever other files iOS use. If you > want specifics, take a look at Andrew's confetti project and what it does > to parse config.xml into app.plist or whatever. > > > > >Where would plugins.xml fit in with config.xml? > > > > Plugins.xml creates a simple name to native class mapping for the various > cordova APIs. Specifying an API in plugins.xml makes it available to the > app. The native-webview bridge method (exec) calls the label/name > associated to the class it wants to access. > > To replace plugins.xml with a config.xml,we can use the element. > It's a direct one-to-one mapping. Vanilla BlackBerry WebWorks apps already > use this approach to define which blackberry WebWorks JS APIs you want > access to in the application. > > --0015175cbabaa0d69404b7daed92--