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 F03AB9DA8 for ; Mon, 16 Jul 2012 22:16:49 +0000 (UTC) Received: (qmail 47209 invoked by uid 500); 16 Jul 2012 22:16:49 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 47185 invoked by uid 500); 16 Jul 2012 22:16:49 -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 47174 invoked by uid 99); 16 Jul 2012 22:16:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 22:16:49 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fil@adobe.com designates 64.18.1.31 as permitted sender) Received: from [64.18.1.31] (HELO exprod6og113.obsmtp.com) (64.18.1.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 22:16:44 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob113.postini.com ([64.18.5.12]) with SMTP ID DSNKUASSt4tQ3rw4OuA44Es5SnmqQsll2I60@postini.com; Mon, 16 Jul 2012 15:16:24 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q6GMDxk0003208 for ; Mon, 16 Jul 2012 15:14:00 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q6GM85ZR022791 for ; Mon, 16 Jul 2012 15:16:04 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Mon, 16 Jul 2012 15:14:14 -0700 From: Filip Maj To: "callback-dev@incubator.apache.org" Date: Mon, 16 Jul 2012 15:16:59 -0700 Subject: Re: Plugin Development Guide Thread-Topic: Plugin Development Guide Thread-Index: Ac1joFSdR2aVNFNuT/66tywTnPZCpw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.2.120421 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Following the convention of the core APIS, the module id should be: cordova/plugin/foo On 7/16/12 3:10 PM, "Don Coleman" wrote: >I like the idea of an echo plugin. I might switch my phonegap day >example from cordova-plugin-helloworld to cordova-plugin-echo > >Any suggested naming conventions for the JavaScript module? > >cordova.define("foo", function() {}); > >foo >/plugin/foo >/cordova/plugin/foo > >On Mon, Jul 16, 2012 at 5:48 PM, Tommy-Carlos Williams > wrote: >> This is all sounding really good. Looking forward to a better day for >>plugin devs. >> >> Congrats on all your hard work. >> >> >> >> On 17/07/2012, at 5:54, Michael Brooks wrote: >> >>> My original thought is that the cordova-cli tool should be able to >>>create a >>> plugin with a given name. The created plugin will also be the echo >>>example, >>> since it sets up all scaffolding required to start implementing your >>>own >>> plugin. When the echo plugin is available under it's own repository, it >>> should be easy for the CLI tool to consume this plugin. >>> >>> Michael >>> >>> On Mon, Jul 16, 2012 at 12:46 PM, Brian LeRoux wrote: >>> >>>> like it, another nice thing about that echo plugin is a baseline for >>>> benching the bridge perf; fil should this tie into the cordova-cli >>>> stuff? >>>> >>>> On Mon, Jul 16, 2012 at 12:13 PM, Filip Maj wrote: >>>>> Great stuff Mike, thanks. >>>>> >>>>> I think for the easy win, we host it under an "example-plugin" >>>>>folder or >>>>> something of the like in the platform repos this week. >>>>> >>>>> I can aggregate these into a labs branch and add in support for the >>>>> cordova plugin spec, structure the code appropriately, etc. >>>>> >>>>> On 7/16/12 11:41 AM, "Michael Brooks" >>>>>wrote: >>>>> >>>>>> Hello guys, >>>>>> >>>>>> The plugin development guide exists as issue CB-862 [1] with >>>>>>sub-tasks >>>> for >>>>>> each plugin. >>>>>> >>>>>> Immediate Goal: >>>>>> >>>>>> The goal is the walk the user through developing a simple "Hello >>>>>>Cordova" >>>>>> plugin. >>>>>> >>>>>> In issue CB-862, I've proposed walking the user through the >>>>>>creation of a >>>>>> "Cordova Echo" plugin that simply returns the same string that it >>>>>>was >>>>>> called with. This shows the user the plugin's invoke cycle and >>>>>>condenses >>>>>> it >>>>>> into an example that uses minimal code. >>>>>> >>>>>> Source Code: >>>>>> >>>>>> It would be nice if we can host these plugins somewhere. Thoughts on >>>>>> where? >>>>>> Platform repo? Labs branch for each plugin? Common labs branch that >>>>>>uses >>>>>> the plugin specification draft [2]? >>>>>> >>>>>> Longer-term Goal: >>>>>> >>>>>> Later on, we can expand this guide into a plugin development >>>>>>section that >>>>>> is a complete reference for native constants, accepting and >>>>>>returning >>>>>> various formats (string, number, json, array, etc). >>>>>> >>>>>> Michael >>>>>> >>>>>> [1] https://issues.apache.org/jira/browse/CB-862 >>>>>> [2] https://github.com/alunny/cordova-plugin-spec >>>>> >>>>