|
@@ -6,13 +6,13 @@ try {
|
6
|
6
|
var PACKAGE_JSON = process.cwd() + '/package.json';
|
7
|
7
|
var package = JSON.parse(fs.readFileSync(PACKAGE_JSON));
|
8
|
8
|
var APP_NAME = package.name;
|
9
|
|
- var PACKAGE_GRADLE = process.cwd() + '/node_modules/react-native-fetch-blob/android/build.gradle'
|
|
9
|
+ var PACKAGE_GRADLE = process.cwd() + '/node_modules/rn-fetch-blob/android/build.gradle'
|
10
|
10
|
var VERSION = checkVersion();
|
11
|
11
|
|
12
|
12
|
console.log('RNFetchBlob detected app version => ' + VERSION);
|
13
|
13
|
|
14
|
14
|
if(VERSION < 0.28) {
|
15
|
|
- console.log('You project version is '+ VERSION + ' which may not compatible to react-native-fetch-blob 7.0+, please consider upgrade your application template to react-native 0.27+.')
|
|
15
|
+ console.log('You project version is '+ VERSION + ' which may not compatible to rn-fetch-blob 7.0+, please consider upgrade your application template to react-native 0.27+.')
|
16
|
16
|
// add OkHttp3 dependency fo pre 0.28 project
|
17
|
17
|
var main = fs.readFileSync(PACKAGE_GRADLE);
|
18
|
18
|
console.log('adding OkHttp3 dependency to pre 0.28 project .. ')
|
|
@@ -52,7 +52,7 @@ try {
|
52
|
52
|
}
|
53
|
53
|
else {
|
54
|
54
|
console.log(
|
55
|
|
- '\033[95mreact-native-fetch-blob \033[97mwill not automatically add Android permissions after \033[92m0.9.4 '+
|
|
55
|
+ '\033[95mrn-fetch-blob \033[97mwill not automatically add Android permissions after \033[92m0.9.4 '+
|
56
|
56
|
'\033[97mplease run the following command if you want to add default permissions :\n\n' +
|
57
|
57
|
'\033[96m\tRNFB_ANDROID_PERMISSIONS=true react-native link \n')
|
58
|
58
|
}
|
|
@@ -64,8 +64,8 @@ try {
|
64
|
64
|
|
65
|
65
|
} catch(err) {
|
66
|
66
|
console.log(
|
67
|
|
- '\033[95mreact-native-fetch-blob\033[97m link \033[91mFAILED \033[97m\nCould not automatically link package :'+
|
|
67
|
+ '\033[95mrn-fetch-blob\033[97m link \033[91mFAILED \033[97m\nCould not automatically link package :'+
|
68
|
68
|
err.stack +
|
69
|
69
|
'please follow the instructions to manually link the library : ' +
|
70
|
|
- '\033[4mhttps://github.com/wkh237/react-native-fetch-blob/wiki/Manually-Link-Package\n')
|
|
70
|
+ '\033[4mhttps://github.com/joltup/rn-fetch-blob/wiki/Manually-Link-Package\n')
|
71
|
71
|
}
|