cordova-plugin-file.git
6 years agoFixed NullPointer Exception in Android 5 and above due to invalid column name on...
aroberson [Thu, 18 Jun 2015 18:52:01 +0000 (13:52 -0500)] 
Fixed NullPointer Exception in Android 5 and above due to invalid column name on cursor

6 years agoFix default persistent file location
Jason Ginchereau [Wed, 4 Nov 2015 00:24:43 +0000 (16:24 -0800)] 
Fix default persistent file location

This closes #146

6 years agoMerge branch 'windows_paths' of https://github.com/ghenry22/cordova-plugin-file....
Jesse MacFadyen [Thu, 5 Nov 2015 01:57:12 +0000 (17:57 -0800)] 
Merge branch 'windows_paths' of https://github.com/ghenry22/cordova-plugin-file. This closes #121.

6 years agoMerge branch 'CB-9851' of https://github.com/MSOpenTech/cordova-plugin-file
Jesse MacFadyen [Thu, 5 Nov 2015 01:52:44 +0000 (17:52 -0800)] 
Merge branch 'CB-9851' of https://github.com/MSOpenTech/cordova-plugin-file

6 years agofix applicationDirectory to use ms-appx:/// 143/head
ghenry22 [Thu, 5 Nov 2015 01:31:33 +0000 (09:31 +0800)] 
fix applicationDirectory to use ms-appx:///

6 years agoMerge remote-tracking branch 'jasongin/CB-9752'
riknoll [Wed, 4 Nov 2015 18:15:37 +0000 (10:15 -0800)] 
Merge remote-tracking branch 'jasongin/CB-9752'

6 years agoadd missing path and docs
ghenry22 [Tue, 3 Nov 2015 02:25:39 +0000 (10:25 +0800)] 
add missing path and docs

6 years agoCB-7253: requestFileSystem fails when no external storage is present 145/head
Jason Ginchereau [Fri, 30 Oct 2015 20:15:47 +0000 (13:15 -0700)] 
CB-7253: requestFileSystem fails when no external storage is present

There were 2 issues behind this bug:
1) DirectoryManager.getFreeDiskSpace() used an incorrect way of
checking the free internal storage space: using a path of "/" would
always result in 0 reported free space.
2) When checking whether requested space was available, the
requestFileSystem() method would always check the external storage
space and fallback to internal storage space, regardless of what
type of filesystem (external, internal, or other) was being requested.

To fix both of these issues, I've added a new getFreeSpaceInBytes() method
on the FileSystem base class, which is called on the actual filesystem
instance being retrieved by requestFileSystem(). The new method for
getting free space always uses the filesystem's correct root path, so
it works for internal, external or any other Android storage filesystem.

6 years agoFix CB-9752: getDirectory fails on valid directory with assets filesystem 144/head
Jason Ginchereau [Wed, 28 Oct 2015 21:30:24 +0000 (14:30 -0700)] 
Fix CB-9752: getDirectory fails on valid directory with assets filesystem

Calls to FileEntry.getDirectory() on an asset entry would internally call
the AssetFileSystem.listAssets() method using an asset path with a
trailing slash, regardless of whether a trailing slash was included by
the user. But neither the asset list cache (from cdvasset.manifest) nor
Android's AssetManager.list() API support matching a path with a trailing
slash. That resulted in a TypeMismatchException thrown from
AssetFileSystem.getFileForLocalURL(), because the asset path was found
but not matched as a directory as expected by the caller.

This fix removes the trailing slash from the asset path before matching
against the asset list cache or calling Android's AssetManager.list() API.
A new unit test for getting asset directories fails without and passes
with the fix.

While I'm here, I'm also adding a unit test for reading asset file
contents. There are a couple old bug reports about that (CB-7273,
CB-8350). The bugs don't repro anymore, but I'm adding the test anyway
since there wasn't good test coverage before.

6 years agoAdded a check for File Write
Joe Bowser [Wed, 30 Sep 2015 18:22:00 +0000 (11:22 -0700)] 
Added a check for File Write

6 years agoupdated the engine tag
Joe Bowser [Mon, 28 Sep 2015 21:57:38 +0000 (14:57 -0700)] 
updated the engine tag

6 years agoAdding permissions, giving read seems to give write access as well
Joe Bowser [Mon, 28 Sep 2015 18:06:39 +0000 (11:06 -0700)] 
Adding permissions, giving read seems to give write access as well

6 years agofix docs
ghenry22 [Wed, 28 Oct 2015 05:42:00 +0000 (13:42 +0800)] 
fix docs

6 years agofix docs formatting
ghenry22 [Wed, 28 Oct 2015 05:40:34 +0000 (13:40 +0800)] 
fix docs formatting

6 years agoupdate docs for windows platform details
ghenry22 [Wed, 28 Oct 2015 05:37:49 +0000 (13:37 +0800)] 
update docs for windows platform details

6 years agofix
ghenry22 [Wed, 28 Oct 2015 05:01:57 +0000 (13:01 +0800)] 
fix

6 years agoAdd windows paths to cordova.file object
ghenry22 [Wed, 28 Oct 2015 04:55:14 +0000 (12:55 +0800)] 
Add windows paths to cordova.file object

add standard paths to cordova.file object for windows.  Standardises
behaviour for windows platform and resolves cordova.file is undefined
errors.

6 years agoActually fixing the contribute link.
Dmitry Blotsky [Fri, 23 Oct 2015 19:11:50 +0000 (12:11 -0700)] 
Actually fixing the contribute link.

6 years agoFixing contribute link.
Dmitry Blotsky [Fri, 23 Oct 2015 19:03:42 +0000 (12:03 -0700)] 
Fixing contribute link.

6 years agoCB-9851 Document cdvfile protocol quirk - using cdvfile:// in the DOM is not supporte... 141/head
daserge [Fri, 23 Oct 2015 10:50:33 +0000 (13:50 +0300)] 
CB-9851 Document cdvfile protocol quirk - using cdvfile:// in the DOM is not supported on Windows

6 years agoDuplicate: Close #115
Jesse MacFadyen [Wed, 21 Oct 2015 01:03:45 +0000 (18:03 -0700)] 
Duplicate: Close #115

6 years agoInvalid: Close #110
Jesse MacFadyen [Wed, 21 Oct 2015 00:58:23 +0000 (17:58 -0700)] 
Invalid: Close #110

6 years agoMerge branch 'master' of https://github.com/mgcrea/cordova-plugin-file
Jesse MacFadyen [Wed, 21 Oct 2015 00:55:43 +0000 (17:55 -0700)] 
Merge branch 'master' of https://github.com/mgcrea/cordova-plugin-file

6 years agoMerge branch 'patch-1' of https://github.com/masonicboom/cordova-plugin-file
Jesse MacFadyen [Tue, 20 Oct 2015 23:38:45 +0000 (16:38 -0700)] 
Merge branch 'patch-1' of https://github.com/masonicboom/cordova-plugin-file

6 years agoCB-9331 getFreeDiskSpace iOS. Close #125 Close #138 140/head
Jesse MacFadyen [Tue, 20 Oct 2015 23:28:08 +0000 (16:28 -0700)] 
CB-9331 getFreeDiskSpace iOS. Close #125 Close #138

6 years agoMerge branch 'add-jira-link' of https://github.com/revolunet/cordova-plugin-file
Jesse MacFadyen [Tue, 20 Oct 2015 19:46:49 +0000 (12:46 -0700)] 
Merge branch 'add-jira-link' of https://github.com/revolunet/cordova-plugin-file

6 years agoadded back newline
Jesse MacFadyen [Mon, 19 Oct 2015 23:32:06 +0000 (16:32 -0700)] 
added back newline

6 years agoMerge branch 'CB-9763' of https://github.com/vldmrrr/cordova-plugin-file
Jesse MacFadyen [Mon, 19 Oct 2015 22:22:00 +0000 (15:22 -0700)] 
Merge branch 'CB-9763' of https://github.com/vldmrrr/cordova-plugin-file

6 years agoFail with FileError.ENCODING_ERR on encoding exception. 137/head
vladimir [Wed, 7 Oct 2015 14:09:52 +0000 (09:09 -0500)] 
Fail with FileError.ENCODING_ERR on encoding exception.

7 years agooverride resolveLocalFileSystemURL by webkitResolveLocalFileSystemURL 133/head
Tommy Tang [Mon, 21 Sep 2015 06:02:01 +0000 (14:02 +0800)] 
override resolveLocalFileSystemURL by webkitResolveLocalFileSystemURL
for browser platform
add .project into git ignore list

7 years agoadd JIRA issue tracker link 132/head
Julien Bouquillon [Thu, 10 Sep 2015 16:27:07 +0000 (18:27 +0200)] 
add JIRA issue tracker link

7 years agoCB-9544 Add file plugin for OSX (closes #130)
Tobias Bocanegra [Thu, 27 Aug 2015 00:12:43 +0000 (17:12 -0700)] 
CB-9544 Add file plugin for OSX (closes #130)

- use applications resource path for the `applicationDirectory` to match other platforms expectation where the 'www' directoy is

7 years agoCB-9544 Add file plugin for OSX
Tobias Bocanegra [Wed, 26 Aug 2015 07:49:53 +0000 (00:49 -0700)] 
CB-9544 Add file plugin for OSX

- defining osx filesystems roots
- updating readme to include osx
- updating test case for osx

7 years agoCB-9544 Add file plugin for OSX
Tobias Bocanegra [Wed, 26 Aug 2015 01:09:47 +0000 (18:09 -0700)] 
CB-9544 Add file plugin for OSX

- adding osx specific sources
- adding osx to plugin.xml and package.json

7 years ago@trivial - typo
Tobias Bocanegra [Wed, 26 Aug 2015 01:08:50 +0000 (18:08 -0700)] 
@trivial - typo

7 years agoCB-9539 Fixed test failure on Android emulator 129/head
alsorokin [Fri, 21 Aug 2015 09:18:38 +0000 (12:18 +0300)] 
CB-9539 Fixed test failure on Android emulator

7 years agoAdded docs on CSP rules needed for using cdvfile in DOM src. This closes #120
daserge [Wed, 1 Jul 2015 17:22:08 +0000 (20:22 +0300)] 
Added docs on CSP rules needed for using cdvfile in DOM src. This closes #120

7 years agoAdded cdvfile protocol purpose description and examples
daserge [Mon, 29 Jun 2015 12:27:09 +0000 (15:27 +0300)] 
Added cdvfile protocol purpose description and examples

7 years agoCB-9504 Incremented plugin version.
Steve Gill [Tue, 18 Aug 2015 23:42:48 +0000 (16:42 -0700)] 
CB-9504 Incremented plugin version.

7 years agoCB-9463 Updated version and RELEASENOTES.md for release 3.0.0 3.0.0 r3.0.0
Steve Gill [Tue, 18 Aug 2015 23:20:07 +0000 (16:20 -0700)] 
CB-9463 Updated version and RELEASENOTES.md for release 3.0.0

7 years agoMake Android default persistent file location internal 127/head
Simon MacDonald [Mon, 27 Jul 2015 20:05:13 +0000 (16:05 -0400)] 
Make Android default persistent file location internal

7 years agoFixed issue with file paths not existing when using browserify 128/head
Suraj Pindoria [Tue, 4 Aug 2015 23:51:08 +0000 (16:51 -0700)] 
Fixed issue with file paths not existing when using browserify

7 years agoCB-9444 cordova-plugin-file documentation translation: cordova-plugin-file
Victor Sosa [Tue, 4 Aug 2015 02:43:01 +0000 (21:43 -0500)] 
CB-9444 cordova-plugin-file documentation translation: cordova-plugin-file

7 years agoremove travis-ci integration 123/head
Jesse MacFadyen [Tue, 7 Jul 2015 22:07:22 +0000 (15:07 -0700)] 
remove travis-ci integration

7 years agoCB-9251: Changed from Intents to Preferences object as per the issue
Joe Bowser [Tue, 7 Jul 2015 00:32:11 +0000 (17:32 -0700)] 
CB-9251: Changed from Intents to Preferences object as per the issue

7 years agoCB-9265 - mobilespec crashses on iPhone 6 Simulator
Shazron Abdullah [Thu, 2 Jul 2015 23:36:52 +0000 (16:36 -0700)] 
CB-9265 - mobilespec crashses on iPhone 6 Simulator

7 years agoCB-9215 Add cordova-plugin-file manual test for windows platform 118/head
daserge [Thu, 18 Jun 2015 15:45:04 +0000 (18:45 +0300)] 
CB-9215 Add cordova-plugin-file manual test for windows platform

7 years agoCB-9192 Incremented plugin version.
Steve Gill [Thu, 18 Jun 2015 00:35:35 +0000 (17:35 -0700)] 
CB-9192 Incremented plugin version.

7 years agoCB-9202 updated repo url to github mirror in package.json 2.1.0 r2.1.0
Steve Gill [Wed, 17 Jun 2015 21:14:41 +0000 (14:14 -0700)] 
CB-9202 updated repo url to github mirror in package.json

7 years agoCB-9192 Updated version and RELEASENOTES.md for release 2.1.0
Steve Gill [Wed, 17 Jun 2015 19:36:03 +0000 (12:36 -0700)] 
CB-9192 Updated version and RELEASENOTES.md for release 2.1.0

7 years agoMerge branch 'CB-8728' of https://github.com/vldmrrr/cordova-plugin-file
Jesse MacFadyen [Thu, 18 Jun 2015 00:33:26 +0000 (17:33 -0700)] 
Merge branch 'CB-8728' of https://github.com/vldmrrr/cordova-plugin-file

7 years agoCB-9068: Lollipop represents missing filesystems as null. Adding null check to worka...
Joe Bowser [Wed, 17 Jun 2015 19:33:16 +0000 (12:33 -0700)] 
CB-9068: Lollipop represents missing filesystems as null.  Adding null check to workaround.

7 years agoadded missing license header
Steve Gill [Wed, 17 Jun 2015 17:39:10 +0000 (10:39 -0700)] 
added missing license header

7 years agoCB-9128 cordova-plugin-file documentation translation: cordova-plugin-file
Victor Sosa [Fri, 12 Jun 2015 14:41:04 +0000 (09:41 -0500)] 
CB-9128 cordova-plugin-file documentation translation: cordova-plugin-file

7 years agofix npm md
Raymond Camden [Tue, 2 Jun 2015 15:48:59 +0000 (10:48 -0500)] 
fix npm md

7 years agoCB-8844 Increased timeout for asset tests
alsorokin [Thu, 21 May 2015 08:23:49 +0000 (11:23 +0300)] 
CB-8844 Increased timeout for asset tests

github close #116

7 years agoUpdated resolveFileSystem.js so it can be parsed by uglifyJS
Steve Gill [Tue, 19 May 2015 08:37:44 +0000 (01:37 -0700)] 
Updated resolveFileSystem.js so it can be parsed by uglifyJS

7 years agoUpdated requestFileSystem.js so it can be parsed by uglifyJS
Steve Gill [Tue, 19 May 2015 08:20:44 +0000 (01:20 -0700)] 
Updated requestFileSystem.js so it can be parsed by uglifyJS

7 years agoCB-8860 cordova-plugin-file documentation translation: cordova-plugin-file
Victor Sosa [Tue, 28 Apr 2015 00:35:32 +0000 (19:35 -0500)] 
CB-8860 cordova-plugin-file documentation translation: cordova-plugin-file

7 years agoCB-8792 Fixes reading of json files using readAsText 114/head
Vladimir Kotikov [Fri, 24 Apr 2015 07:50:22 +0000 (10:50 +0300)] 
CB-8792 Fixes reading of json files using readAsText

7 years agofix install on amazon-fireos 113/head
masonicboom [Sun, 26 Apr 2015 04:29:02 +0000 (21:29 -0700)] 
fix install on amazon-fireos

I'm shooting in the dark, here, so someone knowledgable please check this.

I was previously getting this error:

Failed to install 'cordova-plugin-file':Error: Uh oh!
".../plugins/cordova-plugin-file/src/android/FileHelper.java" not found!

Inspection showed src/android/FileHelper.java doesn't exist, so I removed that line.

I also added the AssetFilesystem.java line for consistency with the android section, but don't know if it's needed.

7 years agoCB-8858 Incremented plugin version.
Steve Gill [Wed, 15 Apr 2015 23:00:22 +0000 (16:00 -0700)] 
CB-8858 Incremented plugin version.

7 years agoCB-8858 Updated version in package.json for release 2.0.0 2.0.0 r2.0.0
Steve Gill [Wed, 15 Apr 2015 22:50:47 +0000 (15:50 -0700)] 
CB-8858 Updated version in package.json for release 2.0.0

7 years agoRevert "CB-8858 Incremented plugin version."
Steve Gill [Wed, 15 Apr 2015 21:31:05 +0000 (14:31 -0700)] 
Revert "CB-8858 Incremented plugin version."

This reverts commit 89cd99c97d920902a246c86dc60a31753d914408.

7 years agoCB-8858 Incremented plugin version.
Steve Gill [Wed, 15 Apr 2015 20:55:47 +0000 (13:55 -0700)] 
CB-8858 Incremented plugin version.

7 years agoCB-8858 Updated version and RELEASENOTES.md for release 2.0.0
Steve Gill [Wed, 15 Apr 2015 18:06:38 +0000 (11:06 -0700)] 
CB-8858 Updated version and RELEASENOTES.md for release 2.0.0

7 years agoCB-8849 Fixed ReadAsArrayBuffer to return ArrayBuffer and not Array on WP8 111/head
alsorokin [Mon, 13 Apr 2015 10:51:17 +0000 (13:51 +0300)] 
CB-8849 Fixed ReadAsArrayBuffer to return ArrayBuffer and not Array on WP8

7 years agoCB-8819 Fixed FileReader's readAsBinaryString on wp8
alsorokin [Wed, 8 Apr 2015 15:50:58 +0000 (18:50 +0300)] 
CB-8819 Fixed FileReader's readAsBinaryString on wp8

7 years agoCB-8746 gave plugin major version bump
Steve Gill [Thu, 9 Apr 2015 23:58:37 +0000 (16:58 -0700)] 
CB-8746 gave plugin major version bump

7 years agoCB-8683 android: Fix broken unit tests from plugin rename
Andrew Grieve [Wed, 8 Apr 2015 17:56:15 +0000 (13:56 -0400)] 
CB-8683 android: Fix broken unit tests from plugin rename

7 years agoCB-8683 changed plugin-id to pacakge-name
Steve Gill [Thu, 2 Apr 2015 01:39:16 +0000 (18:39 -0700)] 
CB-8683 changed plugin-id to pacakge-name

7 years agoCB-8653 properly updated translated docs to use new id
Steve Gill [Tue, 31 Mar 2015 23:06:00 +0000 (16:06 -0700)] 
CB-8653 properly updated translated docs to use new id

7 years agoCB-8653 updated translated docs to use new id
Steve Gill [Tue, 31 Mar 2015 17:53:31 +0000 (10:53 -0700)] 
CB-8653 updated translated docs to use new id

7 years agoUse TRAVIS_BUILD_DIR, install paramedic by npm
Jesse MacFadyen [Wed, 25 Mar 2015 06:55:49 +0000 (23:55 -0700)] 
Use TRAVIS_BUILD_DIR, install paramedic by npm

7 years agoVerify data in tests for write after seek. 106/head
unknown [Fri, 20 Mar 2015 21:36:44 +0000 (16:36 -0500)] 
Verify data in tests for write after seek.

7 years agoUse position set by seek when writing data.
unknown [Fri, 20 Mar 2015 21:36:04 +0000 (16:36 -0500)] 
Use position set by seek when writing data.

7 years agodocs: added Windows to supported platforms
sgrebnov [Thu, 19 Mar 2015 15:04:38 +0000 (18:04 +0300)] 
docs: added Windows to supported platforms

7 years agoCB-8699 CB-6428 Fix uncompressed assets being copied as zero length files
Andrew Grieve [Wed, 18 Mar 2015 01:40:01 +0000 (21:40 -0400)] 
CB-8699 CB-6428 Fix uncompressed assets being copied as zero length files

7 years agoCB-6428 android: Fix assets FileEntry having size of -1
Andrew Grieve [Wed, 18 Mar 2015 00:58:36 +0000 (20:58 -0400)] 
CB-6428 android: Fix assets FileEntry having size of -1

7 years agoandroid: Move URLforFullPath into base class (and rename to localUrlforFullPath)
Andrew Grieve [Wed, 18 Mar 2015 00:56:58 +0000 (20:56 -0400)] 
android: Move URLforFullPath into base class (and rename to localUrlforFullPath)

Was identical in subclasses

7 years agoCB-6428 Mention build-extras.gradle in README
Andrew Grieve [Tue, 17 Mar 2015 17:09:40 +0000 (13:09 -0400)] 
CB-6428 Mention build-extras.gradle in README

7 years agoCB-7109 android: Parse arguments off of the main thread (close #97)
Ian Clelland [Mon, 5 Jan 2015 19:52:40 +0000 (14:52 -0500)] 
CB-7109 android: Parse arguments off of the main thread (close #97)

7 years agoCB-8695 ios: Fix `blob.slice()` for `asset-library` URLs (close #105)
Brad Chen [Tue, 17 Mar 2015 15:53:25 +0000 (11:53 -0400)] 
CB-8695 ios: Fix `blob.slice()` for `asset-library` URLs (close #105)

7 years agoTweak build-extras.gradle to just read/write to main `assets/` instead of `build/`
Andrew Grieve [Tue, 17 Mar 2015 13:56:15 +0000 (09:56 -0400)] 
Tweak build-extras.gradle to just read/write to main `assets/` instead of `build/`

Gave up on trying to figure out how to make it work correctly within
build/

7 years agoCB-8689 Fix NPE in makeEntryForNativeUri (was affecting file-transfer)
Andrew Grieve [Tue, 17 Mar 2015 13:54:48 +0000 (09:54 -0400)] 
CB-8689 Fix NPE in makeEntryForNativeUri (was affecting file-transfer)

Regression was introduced in a recent commit and was never released.

7 years agoCB-8675 Revert "CB-8351 ios: Use base64EncodedStringWithOptions instead of CordovaLib...
Andrew Grieve [Mon, 16 Mar 2015 13:10:49 +0000 (09:10 -0400)] 
CB-8675 Revert "CB-8351 ios: Use base64EncodedStringWithOptions instead of CordovaLib's class extension"

This reverts commit f7bfa8925b53da037c7f537fbacaaf71d925a224.
Not quite ready to drop iOS 6 in the plugin.

7 years agoCB-8653 Updated Readme
Steve Gill [Sat, 14 Mar 2015 02:22:14 +0000 (19:22 -0700)] 
CB-8653 Updated Readme

7 years agoCB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method
Ian Clelland [Fri, 13 Mar 2015 15:00:44 +0000 (11:00 -0400)] 
CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method

7 years agoAdd a cache to speed up AssetFilesystem directory listings
Andrew Grieve [Fri, 13 Mar 2015 03:12:30 +0000 (23:12 -0400)] 
Add a cache to speed up AssetFilesystem directory listings

Adds a gradle step to pre-populate the cache as well, but does not
enable it in this commit.

7 years agofix(ios): always use setters to fix memory issues without ARC 104/head
Olivier Louvignes [Fri, 13 Mar 2015 11:57:37 +0000 (12:57 +0100)] 
fix(ios): always use setters to fix memory issues without ARC

7 years agoCB-8663 android: Don't notify MediaScanner of private files
Andrew Grieve [Fri, 13 Mar 2015 00:11:45 +0000 (20:11 -0400)] 
CB-8663 android: Don't notify MediaScanner of private files

7 years agoDon't log stacktrace for normal exceptions (e.g. file not found)
Andrew Grieve [Fri, 13 Mar 2015 00:10:57 +0000 (20:10 -0400)] 
Don't log stacktrace for normal exceptions (e.g. file not found)

7 years agoandroid: Don't use LimitedInputStream when reading entire file (optimization)
Andrew Grieve [Wed, 11 Mar 2015 02:50:58 +0000 (22:50 -0400)] 
android: Don't use LimitedInputStream when reading entire file (optimization)

7 years agoCB-6428 android: Add support for directory copies from assets -> filesystem
Andrew Grieve [Wed, 11 Mar 2015 02:43:14 +0000 (22:43 -0400)] 
CB-6428 android: Add support for directory copies from assets -> filesystem

7 years agoandroid: Add `listChildren()`: Java-consumable version of `readEntriesAtLocalURL()`
Andrew Grieve [Wed, 11 Mar 2015 02:42:06 +0000 (22:42 -0400)] 
android: Add `listChildren()`: Java-consumable version of `readEntriesAtLocalURL()`

7 years agoCB-6428 android: Add support for file:///android_asset URLs
Andrew Grieve [Tue, 10 Mar 2015 20:25:23 +0000 (16:25 -0400)] 
CB-6428 android: Add support for file:///android_asset URLs

Supports:
- listing
- copying of file

7 years agoCB-8642 android: Fix content URIs not working with resolve / copy
Andrew Grieve [Tue, 10 Mar 2015 17:54:33 +0000 (13:54 -0400)] 
CB-8642 android: Fix content URIs not working with resolve / copy

The issue was fairly fundamental to our cdvfile:// scheme and required
some refactorings:
- Move isDirectory into LocalFilesystemURL
- Add toNativeUri() / toLocalUri() for converting between cdvfile: / file: / content:
- Made toInternalUrl() maintain query params for content: uris
- Moved copyFileToURL(), readFileAtURL(), getOutputStreamForURL() into base Filesystem class

Also added a ContentProvider to the test plugin and unit tests!

7 years agoTweak tests to fail if deleteEntry fails (rather than time out)
Andrew Grieve [Tue, 10 Mar 2015 14:27:54 +0000 (10:27 -0400)] 
Tweak tests to fail if deleteEntry fails (rather than time out)

7 years agoandroid: Ensure LocalFilesystemURL can only be created with "cdvfile" URLs
Andrew Grieve [Mon, 9 Mar 2015 18:44:32 +0000 (14:44 -0400)] 
android: Ensure LocalFilesystemURL can only be created with "cdvfile" URLs

7 years agoandroid: Move CordovaResourceApi into Filesystem base class
Andrew Grieve [Mon, 9 Mar 2015 18:22:04 +0000 (14:22 -0400)] 
android: Move CordovaResourceApi into Filesystem base class