Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit ac14e41

Browse files
committed
bump to 0.7.5-dev.1
1 parent c1b8e07 commit ac14e41

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fetchblob",
3-
"version": "0.7.4",
3+
"version": "0.7.5-dev.1",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start",

src/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ android {
3434

3535
dependencies {
3636
compile 'com.facebook.react:react-native:+'
37-
//{RNFetchBlob_PRE_0.29_DEPDENDENCY}
37+
//{RNFetchBlob_PRE_0.28_DEPDENDENCY}
3838
}

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fetch-blob",
3-
"version": "0.7.4",
3+
"version": "0.7.5-dev.1",
44
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
55
"main": "index.js",
66
"scripts": {

src/scripts/prelink.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ if(VERSION >= 0.29) {
3535

3636
}
3737

38-
if(VERSION < 0.27) {
39-
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.')
38+
if(VERSION < 0.28) {
39+
// 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.')
40+
// add OkHttp3 dependency fo 0.28- project
41+
var main = fs.readFileSync(PACKAGE_GRADLE);
42+
console.log('adding OkHttp3 dependency to pre 0.28 project .. ')
43+
main = String(main).replace('//{RNFetchBlob_PRE_0.28_DEPDENDENCY}', "compile 'com.squareup.okhttp3:okhttp:3.4.1'");
44+
fs.writeFileSync(PACKAGE_GRADLE, main);
45+
console.log('adding OkHttp3 dependency to pre 0.28 project .. ok')
4046
}
4147

4248
// set file access permission for Android < 6.0

0 commit comments

Comments
 (0)