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

Commit 92a6043

Browse files
committed
bump to 0.7.0-dev.2
1 parent 219216d commit 92a6043

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fetch-blob",
3-
"version": "0.7.0-dev.1",
3+
"version": "0.7.0-dev.2",
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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ var package = JSON.parse(fs.readFileSync(PACKAGE_JSON));
1313
var APP_NAME = package.name;
1414
var APPLICATION_MAIN = process.cwd() + '/android/app/src/main/java/com/' + APP_NAME.toLocaleLowerCase() + '/MainApplication.java';
1515

16-
if(!fs.existsSync(APPLICATION_MAIN)) {
17-
throw 'RNFetchBlob could not found link Android automatically, MainApplication.java not found in path : ' + APPLICATION_MAIN
18-
}
19-
2016
var VERSION = checkVersion();
2117
console.log('RNFetchBlob detected app version .. ' + VERSION);
2218

2319
if(VERSION >= 0.29) {
2420
console.log('RNFetchBlob patching MainApplication.java .. ');
21+
if(!fs.existsSync(APPLICATION_MAIN)) {
22+
throw 'RNFetchBlob could not link Android automatically, MainApplication.java not found in path : ' + APPLICATION_MAIN
23+
}
2524
var main = fs.readFileSync(APPLICATION_MAIN);
2625
if(String(main).match('new RNFetchBlobPackage()') !== null) {
2726
console.log('skipped');

test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ node -e "var fs=require('fs'); var pkg = JSON.parse(fs.readFileSync('./RNFetchBl
3737

3838
# install module
3939
cd "${TEST_APP_PATH}"
40-
npm install --save "${CWD}/src"
40+
# npm install --save "${CWD}/src"
41+
npm install --save react-native-fetch-blob@0.7.0-dev.1
4142
rnpm link
4243

4344
# copy android assets
44-
cp -R ./test/assets/ ./RNFetchBlobTest/android/app/src/main/
45+
cp -R ./test/assets/ ./RNFetchBlobTest/android/app/src/main/assets/
4546

4647
# start RN
4748
cd "${TEST_APP_PATH}"

0 commit comments

Comments
 (0)