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 AFD22D9EE for ; Tue, 26 Jun 2012 19:51:29 +0000 (UTC) Received: (qmail 34188 invoked by uid 500); 26 Jun 2012 19:51:29 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 34166 invoked by uid 500); 26 Jun 2012 19:51:29 -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 34156 invoked by uid 99); 26 Jun 2012 19:51:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 19:51:29 +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 (nike.apache.org: domain of shazron@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 19:51:23 +0000 Received: by obcva7 with SMTP id va7so345639obc.6 for ; Tue, 26 Jun 2012 12:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=8A8JSKFyuaLE57ez0NK9fUBlqXqJ4qazME0CNQ/6yQw=; b=GWzySjvhLIOsFD11Q31TEElgMFcqSpC4Yxn5G0e+F+zTgnRCR/hi9fs5Jsg0zbNLEl en3IblMdb9ftqpR4lyGh9u//pOZRw1mAEemTpW0dzQqqsFuI07WLNF3gzhRmBSN1o+Y3 fDM1n2u5Ue+HRa0ojJ2gWdQET100NGKNMhbsLxmBhRBsZPNtL4cjKW7ZdsrhHKzbY0hV BJFmie9D9zFEID+7YNcfjmws4p/XbWlxnj/Z+RpJGUe6TKG/yavSCVT6908vXGKLIyVu A4FZCPrLEqPuRdqq/5csbzjnRbmpMJggu4i3aoAs/+9cX+YHPoliokqQ5e6zb0H7+sdf ay+w== Received: by 10.182.154.67 with SMTP id vm3mr17594253obb.57.1340740262412; Tue, 26 Jun 2012 12:51:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.128.105 with HTTP; Tue, 26 Jun 2012 12:50:22 -0700 (PDT) In-Reply-To: References: From: Shazron Date: Tue, 26 Jun 2012 12:50:22 -0700 Message-ID: Subject: Re: Plugin Format and Spec To: alunny@gmail.com Cc: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Great - also, there is an undocumented way to handle "unknown" schemes that your plugin can hook into, which is even better: 1. https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/C= lasses/CDVLocalStorage.m#L319-342 2. https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/C= lasses/CDVPlugin.m#L49 3. https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/C= lasses/CDVPlugin.m#L103-112 But of course, this scheme must _not_ be in use by any other app (I would add some guid in there) On Tue, Jun 26, 2012 at 12:43 PM, Andrew Lunny wrote: > Ah okay - I was referring to this plugin referenced upthread: > https://github.com/Wizcorp/phonegap-plugin-wizViewManager/tree/v1.1 > specifically this code: > https://github.com/Wizcorp/phonegap-plugin-wizViewManager/blob/v1.1/ios/p= roject/Classes/AppDelegate.m > > That code looks a little outdated (pre Cordova rename); if there's a bett= er > way to achieve the same goal, awesome. > > > On 26 June 2012 12:34, Shazron wrote: >> >> Thanks for the fix Andrew! >> >> Not sure what you are referring to regarding >> shouldStartLoadWithRequest -- this does not occur in the AppDelegate >> anymore (the app delegate does not implement the UIWebDelegate >> interface). This is handled in the CDVViewController - which in the >> app template, your MainViewController subclasses. >> >> Even so, I'm not sure why plugins need to hook into this? If they do, >> since all plugins have access to the UIWebView, they can "override" >> the UIWebViewDelegate from the webView.delegate property, like how I >> did it for the iOS 5.1 localStorage fix (and forward the message on, >> etc): >> >> 1. >> https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/C= lasses/CDVLocalStorage.m#L102 >> 2. >> https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/C= lasses/CDVLocalStorage.m#L319-342 >> >> On Tue, Jun 26, 2012 at 12:10 PM, Andrew Lunny wrote: >> > Re node 0.8: package.json is updated in version 0.3.4. All can rejoice= . >> > >> > Re speccing engine versions: I commented on Fil's pull request. It's >> > mostly >> > all good. >> > >> > @Ally - looking at that repo, the only thing you're doing that's not >> > supported in the current version of the spec is modifying the >> > AppDelegate >> > class (the shouldStartLoadWithRequest method). I wonder what the best >> > way >> > to do that programmatically would be - any thoughts Shaz? Perhaps have= a >> > delegate of the app delegate that plugins can hook into? >> > >> > On 25 June 2012 19:08, Ally Ogilvie wrote: >> > >> >> Hi All :) >> >> >> >> Our current build hub at Wizcorp has plugins in separate repos alread= y. >> >> Each plugin repo is version branched. >> >> We have a config for each project which contains required plugin name >> >> (matching repo) and versions (as well as many other things). >> >> We clone each plugin repo from branch =3D version recursively and inj= ect >> >> code >> >> or xml/plist data where necessary. >> >> >> >> I'd really like to sync the structure you guys have as most likely >> >> people >> >> will use your format as de facto for setting up plugin repos ;) >> >> Also, @ https://github.com/alunny/cordova-plugin-spec >> >> ^ I noticed your happy to dump all your HTML in www dir. I suggest su= b >> >> dirs >> >> as some developers dont want a 100 files at root www. >> >> maybe; >> >> >> >> www/phonegap/js/cordova.js >> >> www/phonegap/plugins/yourPluginName/plugin1.js >> >> www/phonegap/plugins/yourPluginName/plugin2.js >> >> >> >> our full repo setup is as such; >> >> https://github.com/Wizcorp/phonegap-plugin-wizViewManager/tree/v1.1 >> >> >> >> Thanks! >> >> >> >> On Tue, Jun 26, 2012 at 9:50 AM, Shazron wrote: >> >> >> >> > Anis can chime in - he was testing with it and reported the error. = I >> >> > believe the error was in the parser functionality in that module (I >> >> > assume in parsing the .xcodeproj file). >> >> > >> >> > On Mon, Jun 25, 2012 at 5:31 PM, Patrick Mueller >> >> > wrote: >> >> > > On Mon, Jun 25, 2012 at 8:19 PM, Shazron wrot= e: >> >> > > >> >> > >> It was explained to me that even numbered versions are considere= d >> >> > >> unstable >> >> > >> >> >> > > >> >> > > Even numbered versions are stable - 0.6.x, 0.8.x; odd versions >> >> > > aren't >> >> > > stable - 0.7.x, etc; >> >> > > >> >> > > >> >> > > >> >> > >> >> >> >> http://en.wikipedia.org/wiki/Software_versioning#Odd-numbered%5Fversi= ons%5Ffor%5Fdevelopment%5Freleases >> >> > > >> >> > > Isn't this just a matter of removing >> >> > > >> >> > > "engines": { >> >> > > =A0 =A0"node": "~0.6.7" >> >> > > =A0} >> >> > > >> >> > > >> >> > > from the package.json? =A0Or is there really some reason we need >> >> > > this? >> >> > > >> >> > > -- >> >> > > Patrick Mueller >> >> > > http://muellerware.org >> >> > >> >> >> >> >> >> >> >> -- >> >> Ally Ogilvie >> >> Lead Developer [ iOS, Android ] >> >> Mobile Devices >> >> >> >> [image: >> >> >> >> >> >> http://www.wizcorp.jp/wp-content/themes/business-lite/images/all/wizc= orp-logo.png >> >> ] >> >> >> >> 3-10-14-6F Higashi Nihombashi, >> >> Chuo-ku >> >> 103-0004, Tokyo >> >> Tel: (+81)3-4550-1448 >> >> E-mail: aogilvie@wizcorp.jp >> >> > >