Commit Graph

409 Commits

Author SHA1 Message Date
Volodymyr Kozieiev e60e5cd606
Added missed methods for desktop implementation: mkdir, readDir, unlink 2018-07-14 17:07:14 +03:00
Max Risuhin 6919f3e62a
Merge pull request #2 from vkjr/patch-1
Added functions: exists(), writeFile()
2018-02-28 16:38:17 +02:00
Volodymyr Kozieiev 8a86ec9923
Added functions: exists(), writeFile() 2018-02-28 16:13:59 +02:00
Max Risuhin d93c7be66f
desktop platform support 2018-02-03 22:53:21 +02:00
Hagen Hübel e20241e49a
Merge pull request #414 from jasdeepsingh/patch-1
fixed: warning: this block declaration is not a prototype [-Wstrict-prototypes]
2018-01-22 01:01:42 +01:00
Hagen Hübel e278095d12
Merge pull request #416 from rozele/rnpm
Add UWP tests to NPM ignore
2018-01-22 00:58:51 +01:00
Eric Rozell 369a985cef Add UWP tests to NPM ignore
The `react-native link` command will unintentionally link the `RNFS.Tests` project instead of the `RNFS` project. This adds `RNFS.Tests` to `.npmignore` so this is no longer a problem.
2018-01-12 10:49:13 -05:00
Hagen Hübel 96df569410
Merge pull request #413 from wkrause13/downloadFileFix
catch error in downloadFile
2018-01-09 10:51:40 +01:00
Jasdeep 97ec0a2128
fixed: warning: this block declaration is not a prototype [-Wstrict-prototypes] 2018-01-04 21:18:50 -05:00
Hagen Hübel 0860571e1e
Update package.json 2018-01-04 08:56:37 +01:00
Hagen Hübel 616e9594eb
Merge pull request #409 from tomer1490/master
Add dependency for 'React' in podspec to fix issue #408
2018-01-04 08:55:49 +01:00
William Krause fb13cb7c5f catch error in downloadFile 2018-01-03 18:12:43 -06:00
Tomer Frenkel 87f3caa418 Add dependency for 'React' in podspec to fix issue #408 2017-12-27 17:02:55 +02:00
Hagen Hübel 5125cd6994 Fixed Cocoapods-installation, v2.9.6 rolled out 2017-12-21 00:03:43 +01:00
Hagen Hübel 53db6ee78e restored backward compatibility on podspec file, v2.9.5 rolled out 2017-12-20 23:57:29 +01:00
Hagen Hübel 7d531c13a2 improved podspec file, v2.9.4 rolled out 2017-12-20 23:54:22 +01:00
Hagen Hübel 43438bfa52 Merge branch 'master' of github.com:itinance/react-native-fs
* 'master' of github.com:itinance/react-native-fs:
  Fix Flow error for DownloadFileOptions type
2017-12-20 23:23:54 +01:00
Hagen Hübel 68d9ff1654 A try to fix cocoapods installation 2017-12-20 23:23:39 +01:00
Hagen Hübel cae6fcb853
Merge pull request #400 from SoundBlaster/patch-1
Fix Flow error for DownloadFileOptions type
2017-12-11 13:24:25 +01:00
Egor Merkushev 6f2f5cd3fa
Fix Flow error for DownloadFileOptions type 2017-12-11 14:53:12 +03:00
Hagen Hübel 7346a5f4b0 Merge branch 'master' of github.com:itinance/react-native-fs
* 'master' of github.com:itinance/react-native-fs:
  Update README.md
2017-12-10 15:10:11 +01:00
Hagen Hübel c3bf92c178 Fixed breaking merge conflict 2017-12-10 15:09:56 +01:00
Hagen Hübel 96e6def192
Merge pull request #338 from fredbt/patch-1
Update README.md
2017-12-10 14:59:30 +01:00
Hagen Hübel 3c37655c88 V2.9.1 2017-12-10 14:55:58 +01:00
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 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