Browse Source

bump to 0.7.5-dev.1

Ben Hsieh 8 years ago
parent
commit
ac14e41a57
4 changed files with 11 additions and 5 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/android/build.gradle
  3. 1
    1
      src/package.json
  4. 8
    2
      src/scripts/prelink.js

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "fetchblob",
3
-  "version": "0.7.4",
3
+  "version": "0.7.5-dev.1",
4 4
   "private": true,
5 5
   "scripts": {
6 6
     "start": "node node_modules/react-native/local-cli/cli.js start",

+ 1
- 1
src/android/build.gradle View File

@@ -34,5 +34,5 @@ android {
34 34
 
35 35
 dependencies {
36 36
     compile 'com.facebook.react:react-native:+'
37
-    //{RNFetchBlob_PRE_0.29_DEPDENDENCY}
37
+    //{RNFetchBlob_PRE_0.28_DEPDENDENCY}
38 38
 }

+ 1
- 1
src/package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-fetch-blob",
3
-  "version": "0.7.4",
3
+  "version": "0.7.5-dev.1",
4 4
   "description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
5 5
   "main": "index.js",
6 6
   "scripts": {

+ 8
- 2
src/scripts/prelink.js View File

@@ -35,8 +35,14 @@ if(VERSION >= 0.29) {
35 35
 
36 36
 }
37 37
 
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')
40 46
 }
41 47
 
42 48
 // set file access permission for Android < 6.0