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 039569D3F for ; Wed, 15 Feb 2012 17:29:35 +0000 (UTC) Received: (qmail 76581 invoked by uid 500); 15 Feb 2012 17:29:34 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 76560 invoked by uid 500); 15 Feb 2012 17:29:34 -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 76552 invoked by uid 99); 15 Feb 2012 17:29:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 17:29:34 +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 (athena.apache.org: domain of purdrew@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; Wed, 15 Feb 2012 17:29:29 +0000 Received: by bkwq11 with SMTP id q11so1235912bkw.6 for ; Wed, 15 Feb 2012 09:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=s7tH2VAKOJSodEUMMcoq30rMXRf9DyzLOAsmcgg5Nqo=; b=Yt3dKEKvyUcpH7F6DzapEsG//+wHixiA9Dc/s/5RxSaBjq4+ugAZsAmPmAZt2csXr4 +V/9NMxubxL2LUy6OjRY8MULVQ04shxj0yDzoKgTAq89zk1r+4KGkqsUJHe7SzTZqzs3 36XsTnGvtsDyHEMxWm1ou3vqhxH7iT7GU1utw= Received: by 10.204.130.150 with SMTP id t22mr11680640bks.1.1329326948204; Wed, 15 Feb 2012 09:29:08 -0800 (PST) MIME-Version: 1.0 Sender: purdrew@gmail.com Received: by 10.204.187.133 with HTTP; Wed, 15 Feb 2012 09:28:48 -0800 (PST) In-Reply-To: References: From: Drew Walters Date: Wed, 15 Feb 2012 11:28:48 -0600 X-Google-Sender-Auth: rCJ9dfZ31tK9_XYQ9wDYjWxQ1pM Message-ID: Subject: Re: Work Items for 1.5.0 - unified JS To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think the way I stated my question is confusing. Let me try again. Right now the incubator-cordova-blackberry-webworks repo contains both the JS and native code. Some time soon I would anticipate a incubator-cordova-js repo. At that time the JS files in the webworks repo should go away. It seems to me that the "vendor" in of a platform specific cordova.js should happen when we build the end user package (ie. the one currently at phonegap.com). At development time, I'm always going to want the latest one out of incubator-cordova-js so I can just build that myself. Unless of course there is some mechanism to automatically build incubator-cordova-js when it is updated and copy the built files to the platform repos. Am I wrong? On Wed, Feb 15, 2012 at 11:15 AM, Filip Maj wrote: > I think it'd be a pain to submodule cordova-js into the platform repos. > > So far the general agreement is to "vendor" cordova-js in as a built > script. > > It should only get out of sync if we let it :) > > On 12-02-15 9:11 AM, "Drew Walters" wrote: > >>I need to do some more testing before I agree to move it to the apache >>code. =A0Wanted to get the name change in completely first. =A0Right now >>some of the api aren't working in my test app. >> >>This brings up a point though. =A0What will this look like once its >>moved to apache. =A0I would assume we'll have a separate repo for >>cordova-js, but do the individual platforms really need a copy of the >>built js file? =A0From an end user perspective this could just be >>handled at packaging time when we build the distributable binary. >>Seems like including a built js from cordova-js would lead to it >>getting out of sync. >> >>On Wed, Feb 15, 2012 at 11:03 AM, Gord Tanner wrote= : >>> OMFG! >>> >>> You just saved my day! >>> >>> I have been looking for why blackberry wasn't firing device ready and >>>that >>> bad module ID was it! =A0I was circling around the channel code >>>attempting to >>> figure out why it wasn't joining after the device and network channels >>>were >>> fired. >>> >>> Gonna look into this and pull it in, looks good at first glance. >>> >>> >>> Gord >>> >>> On Wed, Feb 15, 2012 at 11:53 AM, Drew Walters >>>wrote: >>> >>>> Ok, I've submitted a pull request with my changes. >>>> >>>> https://github.com/callback/callback-js/pull/17 >>>> >>>> In my previous email, #3 was due to where I had inserted #2 (oops). >>>> The changes are mostly phonegap -> cordova changes. =A0Additionally I >>>> had to fix a module require in lib/platform/blackberry.js which was >>>> specifying a bad module name. >>>> >>>> The only appearance of phonegap in common-js after my change is in the >>>> iOS and WP7 plugins where they reference native code since I didn't >>>> think those had been renamed yet. >>>> >>>> Eventually the BlackBerry native side should make use of require (as >>>> shown in Fil's commit), but that will wait till common-js gets added >>>> to apache source. For the time being a quick hack is to add the >>>> following at the bottom of the generated js: >>>> >>>> var Cordova =3D require('cordova'); >>>> >>>> On Wed, Feb 15, 2012 at 9:23 AM, Drew Walters >>>>wrote: >>>> > So I've got callback-js "working" in my sandbox. =A0Haven't submitte= d >>>> > pull request yet because I'm still debugging something. =A0Here's >>>> > summary of changes I've made: >>>> > >>>> > 1. Modify rest of files to use "cordova" instead of "phonegap". >>>> > 2. Added a global define of "Cordova" as a temporary hack since >>>>native >>>> > PluginResult.toSuccessCallbackString expects it to exist. >>>> > 3. For some reason I had to make sure the cordova/utils module exist= s >>>> > in cordova.js before the cordova/channel module, otherwise I was >>>> > getting an error that the module didn't exist. >>>> > >>>> > With the above changes I was able to run some simple tests (verified >>>> > network works). =A0I'm currently looking at proper fix for #2 and #3= . >>>> > >>>> > On Wed, Feb 15, 2012 at 8:21 AM, Drew Walters >>>> wrote: >>>> >> I'm looking at https://github.com/callback/callback-js and I see a >>>>lot >>>> >> of references to "phonegap" in the lib/plugins directory though it >>>> >> seems like things one directory up (lib) has been changed. =A0Am I = not >>>> >> looking at an up to date project or should I send a pull request >>>>with >>>> >> that name change too? >>>> >> >>>> >> On Wed, Feb 15, 2012 at 8:17 AM, Gord Tanner >>>> wrote: >>>> >>> I am on BlackBerry today. >>>> >>> >>>> >>> Currently showing: >>>> >>> Error: SyntaxError: Unable to parse JSON string alert. >>>> >>> >>>> >>> I will attempt to get it up and running again today. >>>> >>> >>>> >>> I also have the start of a node runner for callback-js tests here: >>>> >>> https://github.com/gtanner/callback-js >>>> >>> >>>> >>> Gord >>>> >>> >>>> >>> On Wed, Feb 15, 2012 at 5:19 AM, Viras >>>> >>>> wrote: >>>> >>> >>>> >>>> Can you please drop me a line once cordova-js is on the official >>>> repos & >>>> >>>> mirrored? I will then give integrating the new common-JS into >>>> cordova-qt a >>>> >>>> go! >>>> >>>> >>>> >>>> Am 2012-02-15 00:09, schrieb Filip Maj: >>>> >>>> >>>> >>>> =A0Update on unified JavaScript work in cordova for today: >>>> >>>>> >>>> >>>>> - looks like the WP7 implementation cannot run our mobile-spec, >>>> which is a >>>> >>>>> hurdle in making sure it supports the cross-platform cordova API= . >>>> Before >>>> >>>>> we can move forward with cordova-js integration we really need t= o >>>> figure >>>> >>>>> that part of it out. >>>> >>>>> - I will work rest of day in getting cordova-js into the apache >>>>git >>>> repo >>>> >>>>> and finishing up that work. >>>> >>>>> - BlackBerry still needs work and testing - Tim, you available? >>>> >>>>> - Shaz and I have a remote hack sesh planned for tomorrow >>>>morning to >>>> get >>>> >>>>> iOS on track. Will have a better idea how that platform is >>>>looking >>>> >>>>> tomorrow. >>>> >>>>> - Bada 2.0 still needs a platform implementation before we can >>>>move >>>> with >>>> >>>>> cordova-js on it. >>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> GOFG - Get On Fat Guy >>>> >>>> http://www.gofg.at/ - powered by Cordova >>>> >>>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> -- >>>> >>> Gord Tanner >>>> >>> Senior Developer / Code Poet >>>> >>> tinyHippos Inc. >>>> >>> @tinyhippos >>>> >>> >>> >>> >>> -- >>> Gord Tanner >>> Senior Developer / Code Poet >>> tinyHippos Inc. >>> @tinyhippos >