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 5369711A73 for ; Mon, 5 May 2014 14:47:43 +0000 (UTC) Received: (qmail 14418 invoked by uid 500); 5 May 2014 14:47:42 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 14354 invoked by uid 500); 5 May 2014 14:47:42 -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 14343 invoked by uid 99); 5 May 2014 14:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 14:47:41 +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: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.160.179] (HELO mail-yk0-f179.google.com) (209.85.160.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 14:47:38 +0000 Received: by mail-yk0-f179.google.com with SMTP id 19so5272165ykq.24 for ; Mon, 05 May 2014 07:47:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=xsEj1aTwzBt6kM6pGXg7/HHv5g9+73fuS6kXgdYlNu0=; b=jQ4NWKXxTZysS1vPeTODFbHnd5W7VZOBMmQqzOO0ERXO3s4V3fyCrBVL4Lk8+9eifl 7LZRBsLi0kutny+jEX/gJ14vmNTqV8ag0Mw0yzFGaRbnVWNEz1QpeEihZ+0133sIXQSe VDTfX8p4GRO7YzETVuG6gwSzgtk2ioa0wrJ8Y3ZNYxJSZdRqxLyP3EHVzclkU/6R4/n2 Eq+NtHf07o5TDS7DNkZuAH/MAq96dur4KTKNcP5TDZ7kPT+82qbeER+PDf5QNPGN84Wm g+dAyUbVJT3hnXv7hBli9ftV+VCUpQ3t/NXfDHc0AhwPw4JwzprIL/BzjttGpPZCh58N XmZA== X-Gm-Message-State: ALoCoQmBXAJvTglBwpf4bM4NzzJNVeU6Pk0SHXMXvs3b/yDys2SQvVVq8cGfLWEqx1M2vWoo/PEI MIME-Version: 1.0 X-Received: by 10.236.43.227 with SMTP id l63mr44167946yhb.144.1399301234842; Mon, 05 May 2014 07:47:14 -0700 (PDT) Received: by 10.170.174.67 with HTTP; Mon, 5 May 2014 07:47:14 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 May 2014 10:47:14 -0400 Message-ID: Subject: Re: BB10 File Plugin From: Bryan Higgins To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=089e0160a75609703004f8a8354e X-Virus-Checked: Checked by ClamAV on apache.org --089e0160a75609703004f8a8354e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The common JS for resolveLocalFileSystemURI and resolveLocalFileSystemURL both call exec with resolveLocalFileSystemURL [1] resolveLocalFileSystemURI is the new implementation [2] which handles the exec call [3] rather than clobbering the window object [1] https://github.com/apache/cordova-plugin-file/blob/master/www/resolveLocalF= ileSystemURI.js#L64-L69 [2] https://github.com/blackberry-webworks/cordova-plugin-file/blob/b7ba108f08b= 90ead2efb55bd40e1215fdde10cca/www/blackberry10/resolveLocalFileSystemURI.js [3] https://github.com/blackberry-webworks/cordova-plugin-file/blob/b7ba108f08b= 90ead2efb55bd40e1215fdde10cca/www/blackberry10/FileProxy.js#L43 On Mon, May 5, 2014 at 10:29 AM, Ian Clelland wrote= : > That's great, Bryan! I'm really happy to see another platform get parity > with iOS and Android. > > Looking through the PR, I'm trying to figure out what happened to > resolveLocalFileSystemURL -- it looks like it was simply removed in this > version, with the deprecated relsolveLocalFileSystemURI put back in it's > place. Was that intended? > > > > On Mon, May 5, 2014 at 9:13 AM, Bryan Higgins >wrote: > > > I finally found some time to work on the promised update to the BB10 fi= le > > plugin. It now supports the same file system roots structure as Android > and > > iOS. > > > > This is a complete re-write which uses the exec proxy rather than > > clobbering the window objects. It's still using the webkit FileSystem A= PI > > under the hood, but has a few advantages over the previous > implementation: > > > > 1. Ability to set HTML element src from FileEntry.toURL() regardless of > > file system > > 2. Ability to copy files between file systems (ie persistent to root fo= r > > example) > > 3. resolveLocalFileSystemURI supports all file system types (persistent= , > > temporary, root, local) > > > > All mobile-spec tests are passing, but I had to make one subtle change > [1] > > to the tests. spec 89 and 90 were failing in sequence but not on their > own. > > spec 88 writes a few extra bytes to the end of a file which is written = to > > again in the next tests. Those bytes show up (I think correctly) in the > > tests which slice past the end of the file. > > > > I have a pull request for this up on GitHub [2]. I will leave it up for= a > > few days to give people a chance to review it. In the meantime, I will > test > > this with the rest of the plugins and see if I can dig up more info on > the > > FileReader problem. > > > > Thanks, > > Bryan > > > > [1] > > > > > https://git-wip-us.apache.org/repos/asf?p=3Dcordova-mobile-spec.git;a=3Db= lobdiff;f=3Dautotest/tests/file.tests.js;h=3De9d57885796bddeb5fe8a14e217a4c= c9a81b5c51;hp=3D13ab2355494849419347c91226e3fdcdb2b57821;hb=3D49ecd9d00484a= 4a437524ff2cb6fd2e87a869013;hpb=3D5347f9f1e09224710c98c6bd9c3c143c833d018c > > > > [2] https://github.com/apache/cordova-plugin-file/pull/44 > > > --089e0160a75609703004f8a8354e--