react-native-fetch-blob
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "react-native-fetch-blob", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -621,2 +621,3 @@ # react-native-fetch-blob [](https://www.npmjs.com/package/react-native-fetch-blob) [](https://www.npmjs.com/package/react-native-fetch-blob)  []() | ||
|---|---| | ||
| 0.7.4 | Fix app crash problem in version > 0.27 | | ||
| 0.7.3 | Fix OkHttp dependency issue in version < 0.29 | | ||
@@ -623,0 +624,0 @@ | 0.7.2 | Fix cancel request bug | |
@@ -15,2 +15,3 @@ var fs = require('fs'); | ||
var APPLICATION_MAIN = process.cwd() + '/android/app/src/main/java/com/' + APP_NAME.toLocaleLowerCase() + '/MainApplication.java'; | ||
var PACKAGE_GRADLE = process.cwd() + '/node_modules/react-native-fetch-blob/android/build.gradle' | ||
@@ -32,2 +33,3 @@ var VERSION = checkVersion(); | ||
main = String(main).replace('import com.facebook.react.ReactApplication;', 'import com.facebook.react.ReactApplication;\nimport com.RNFetchBlob.RNFetchBlobPackage;') | ||
fs.writeFileSync(APPLICATION_MAIN, main); | ||
@@ -38,2 +40,6 @@ console.log('RNFetchBlob patching MainApplication.java .. ok') | ||
if(VERSION < 0.27) { | ||
console.log('You project version is '+ VERSION + 'which does not meet requirement of react-native-fetch-blob 7.0+, please upgrade your application template to react-native 0.27+, otherwise Android application will not working.') | ||
} | ||
// set file access permission for Android < 6.0 | ||
@@ -40,0 +46,0 @@ fs.readFile(MANIFEST_PATH, function(err, data) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
277568
2706
0
648