384 Commits

Author SHA1 Message Date
Hagen Hübel
84ca38c816 Merge branch 'ngrj-master'
* ngrj-master:
  Fixed return types of getAllExternalFilesDirs
  added a function called getAllExternalFilesDirs to get application-specific directories on all shared/external storage devices
2017-12-10 14:53:49 +01:00
Hagen Hübel
23c06911b0 Fixed return types of getAllExternalFilesDirs 2017-12-10 14:53:39 +01:00
Hagen Hübel
fd39484c75 Merge branch 'master' of https://github.com/ngrj/react-native-fs into ngrj-master
* 'master' of https://github.com/ngrj/react-native-fs:
  added a function called getAllExternalFilesDirs to get application-specific directories on all shared/external storage devices
2017-12-10 14:52:17 +01:00
Hagen Hübel
d7efa212b2 Merge branch 'zhantx-master'
* zhantx-master:
  handle 304 on android
  bugfix
  make sure response with error status code won't change downloaded file on iOS
2017-12-10 14:50:42 +01:00
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 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 v2.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 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 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
Nagraj Gajengi
0a4513760e added a function called getAllExternalFilesDirs to get application-specific directories on all shared/external storage devices 2017-10-23 15:38:22 +05:30
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 v2.8.1 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