Commit Graph

379 Commits

Author SHA1 Message Date
Hagen Hübel 35b9077bce fixed merge conflict 2017-12-10 14:50:32 +01:00
Hagen Hübel 42aeaf874f
Merge pull request #395 from krzysztof-miemiec/content-uri-support
Content URI support
2017-12-10 14:44:35 +01:00
Hagen Hübel 8049b124b3 V2.9.0 2017-12-10 14:16:22 +01:00
Hagen Hübel 50090489db Merge branch 'ptelad-master'
* ptelad-master:
  completeHandlerIOS now return a promise so you can await for it
  Update RNFSManager.m
  better background downloads
  readme update to reflect that resume is only supported on iOS
  Added resumeDownload(), isResumable() and the ‘resume’ callback to downloadFile
2017-12-10 12:32:08 +01:00
Hagen Hübel c27b5feb8f FIxed merge conflict 2017-12-10 12:31:41 +01:00
Krzysztof Miemiec 1a9e0faf6a Content URI support
# New methods
* `getFileUri()` that returns Uri for any passed path (with or without file:// prefix or with content:// prefix)
* `getInputStream()` that returns InputStream for any Uri passed
* `getOutputStream()` that returns OutputStream for any Uri passed
* `getInputStreamBytes()` that reads the whole content of an InputStream and returns it as a byte array
# Modified methods
Added content uri support to:
* `readFile()`
* `writeFile()`
* `appendFile()`
* `write()` - Note: random access (position>=0) is not supported for content uris
* `read()`
* `copyFile()` - both source and destination can be content uris
* `copyInputStream()` - output stream can be a content uri
# Others
* IORejectionException - an exception that accepts a code besides a message
2017-11-29 19:48:40 +01:00
James Zhan 3c75102639 handle 304 on android 2017-11-22 15:49:05 +11:00
James Zhan 865f13ed0d bugfix 2017-11-20 15:39:14 +11:00
James Zhan 14a2c8db06 make sure response with error status code won't change downloaded file on iOS 2017-11-20 15:08:15 +11:00
Hagen Hübel 2dfcac5dd3
Merge pull request #387 from jamesreggio/fix-null-headers
Fix build breakage
2017-11-17 23:33:18 +01:00
James Reggio 23364bd121
Fix build breakage 2017-11-17 15:33:45 -05:00
Hagen Hübel f037c79ec9
Merge pull request #381 from josephroque/timeout-ios
Respect readTimeout for downloadFile on iOS
2017-11-17 00:05:34 +01:00
Hagen Hübel b353e2bfe9
Merge pull request #382 from josephroque/timeout-android
Respect readTimeout and connectionTimeout for downloadFile on Android
2017-11-17 00:04:13 +01:00
Hagen Hübel cdf5f301e0
Merge pull request #383 from axsy-dev/master
Fix reference path to ReactNative.csproj
2017-11-17 00:03:20 +01:00
Hagen Hübel 18d06bcae2
Merge pull request #384 from ufolux/master
fix: the deployment_target in podspec file dosen't fit the ios project
2017-11-17 00:02:41 +01:00
Hagen Hübel 035d3bbb4d
Merge pull request #386 from jamesreggio/fix-null-headers
Avoid placing nil value into NSDictionary in downloader
2017-11-17 00:01:36 +01:00
James Reggio b78d8a150d
Avoid placing nil value into NSDictionary in downloader 2017-11-16 16:58:30 -05:00
Sines 49402248c8 fix: the deployment_target in podspec file dosen't fit the ios project 2017-11-17 00:32:03 +08:00
Artem Pechenyi cca9ed3590 Fix reference path to ReactNative.csproj 2017-11-15 20:57:24 +02:00
Joseph Roque 11e8655d3d
Respect readTimeout for downloadFile on iOS 2017-11-09 18:33:21 -05:00
Joseph Roque e65b16e5b7
Respect readTimeout and connectionTimeout for downloadFile on Android
Fixes #368
2017-11-09 17:54:51 -05:00
Hagen Hübel b9660f6038 2.8.5 2017-11-06 23:21:06 +01:00
Hagen Hübel f16c51b1e7
Merge pull request #379 from josephroque/master
Make mtime optional on ReadDirItem, change utime to mtime on StatResult
2017-11-06 23:20:09 +01:00
Joseph Roque 5e0af48f9f
Make mtime optional on ReadDirItem, change utime to mtime on StatResult
Android and iOS both set  for stat method, so this type declaration must be updated. Making mtime optional on ReadDirItem fixes #378
2017-11-06 17:17:14 -05:00
Hagen Hübel fa0c78b454 v2.8.4 2017-11-05 18:18:29 +01:00
Hagen Hübel ce56b46dee
Merge pull request #375 from sebmak/master
Added rejection and errors for copyAssetsVideoIOS
2017-11-05 18:16:53 +01:00
Hagen Hübel 08278f17a2 v2.8.3 2017-11-03 18:10:56 +01:00
Hagen Hübel 39bca4d965 reversed doubled method 2017-11-03 18:10:39 +01:00
Hagen Hübel 876ed9b18b fixes for RN 0.49 2017-11-03 18:08:52 +01:00
Sebastian Makinson c6ec354f2d Added rejection and errors for copyAssetsVideoIOS 2017-11-03 08:36:20 -06:00
Hagen Hübel 75a8c44ca8
Merge pull request #371 from mars-lan/master
Implement requiresMainQueueSetup to remove warning in RN 0.49
2017-10-29 10:07:18 +01:00
mars-lan 5475f026b5 Implement requiresMainQueueSetup to remove warning in RN 0.49 2017-10-28 14:59:53 -07:00
Hagen Hübel 308196040a Merge pull request #361 from jamesreggio/fix-multiple-callbacks
Fix multiple callback invocation in iOS with `downloadFile`
2017-10-06 18:47:22 +02:00
Hagen Hübel b1cae86189 V2.8.1 with README changes 2017-10-06 18:20:38 +02:00
Hagen Hübel 97524c937c added Changelog for v2.8.0 2017-10-06 18:19:24 +02:00
Hagen Hübel 3b965351d8 Update package.json 2017-10-06 18:09:02 +02:00
James Reggio b01e8fe54e Fix multiple callback invocation in iOS with `downloadFile` 2017-10-06 12:00:17 -04:00
Hagen Hübel 1fcaa87240 Merge pull request #360 from jamesreggio/add-discretionary-flag
Expose the iOS `discretionary` flag on `downloadFile`
2017-10-06 17:59:33 +02:00
James Reggio e086d24549 Expose the iOS `discretionary` flag on `downloadFile` 2017-10-06 11:48:41 -04:00
Hagen Hübel 6e8b3e34e2 Merge pull request #358 from rozele/readme
docs(README): update docs with basic info for Windows
2017-10-06 14:35:19 +02:00
Eric Rozell b08ce55835 docs(README): update docs with basic info for Windows 2017-10-06 08:34:00 -04:00
Hagen Hübel 36ce87aa30 v2.7.0 2017-10-05 19:09:49 +02:00
Hagen Hübel 7f222be4e3 Merge pull request #337 from rozele/windows
Adds react-native-windows support for UWP
2017-10-05 19:07:52 +02:00
Hagen Hübel abb82720ed Merge pull request #347 from jacargentina/master
Fix for #346: compressed file assets are detected as directories
2017-10-04 08:35:00 +02:00
Hagen Hübel 252cd5a3e5 cleanup 2017-09-26 05:59:47 +02:00
Hagen Hübel bcf81df6f8 Merge branch 'master' of github.com:itinance/react-native-fs
* 'master' of github.com:itinance/react-native-fs: (25 commits)
  fix touch() error on android
  Fixed Mtime
  Add missing flow annotations
  v2.5.2 (cocoapods related only)
  removed osx-version from Podspec
  added a note for cocoapods that we can't support it yet
  added a note for cocoapods that we can't support it yet
  Changes to the Podspec
  Changelog for README
  Version 2.5.0 - compat with RN 0.47.0
  Added back for Backward-Compat but without @override
  Version bump 2.4.0
  removed createJSModules method (RN 0.47 breaking change)
  Add `createJSModules()` to be compatible with latest React.
  Update SDK compile and build tools to version 26.
  update README
  add read method with lenght and position params
  add `touch` method for changing file timestamps
  Remove createJSModules from package
  pod file path error
  ...
2017-09-26 05:55:05 +02:00
Hagen Hübel 01e8975d86 added support for Video-Assets on iOS (copyAssetsVideoIOS) and setReadable() on Android 2017-09-26 05:53:51 +02:00
Javier Castro 18ee5b35ef Workaround for #346: try to better detect when an asset path is a directory or a (possible) compressed file 2017-09-21 15:23:49 -03:00
Elad Gil a991f17d4a Merge branch 'master' of https://github.com/ptelad/react-native-fs 2017-09-04 16:02:51 +03:00
Elad Gil fefd456261 completeHandlerIOS now return a promise so you can await for it 2017-09-04 16:02:47 +03:00