Browse Source

rename missed occurrences of react-native-fetch-blob

Travis Nuttall 5 years ago
parent
commit
5721cb7396

+ 1
- 7
CONTRIBUTING.md View File

1
-For developers who interested in making contribution to this project, please see [https://github.com/wkh237/react-native-fetch-blob-dev](https://github.com/wkh237/react-native-fetch-blob-dev) for more information.
2
-
3
-Please read the following rules before opening a PR :
4
-
5
-1. If the PR is offering a feature please make the PR to our "Feature Branch" 0.11.0
6
-2. Bug fix request to "Bug Fix Branch" 0.10.6
7
-3. Correct README.md can directly to master
1
+For developers who interested in making contribution to this project, please see [https://github.com/joltup/rn-fetch-blob-dev](https://github.com/joltup/rn-fetch-blob-dev) for more information.

+ 1
- 1
android/src/main/res/values/strings.xml View File

1
 <resources>
1
 <resources>
2
-    <string name="app_name">react-native-fetch-blob</string>
2
+    <string name="app_name">rn-fetch-blob</string>
3
 </resources>
3
 </resources>

+ 1
- 1
index.js View File

72
 // Show warning if native module not detected
72
 // Show warning if native module not detected
73
 if(!RNFetchBlob || !RNFetchBlob.fetchBlobForm || !RNFetchBlob.fetchBlob) {
73
 if(!RNFetchBlob || !RNFetchBlob.fetchBlobForm || !RNFetchBlob.fetchBlob) {
74
   console.warn(
74
   console.warn(
75
-    'react-native-fetch-blob could not find valid native module.',
75
+    'rn-fetch-blob could not find valid native module.',
76
     'please make sure you have linked native modules using `rnpm link`,',
76
     'please make sure you have linked native modules using `rnpm link`,',
77
     'and restart RN packager or manually compile IOS/Android project.'
77
     'and restart RN packager or manually compile IOS/Android project.'
78
   )
78
   )

+ 2
- 2
ios/RNFetchBlob.xcodeproj/project.pbxproj View File

261
 					"$(SRCROOT)/../../React/**",
261
 					"$(SRCROOT)/../../React/**",
262
 					"$(SRCROOT)/../../react-native/React/**",
262
 					"$(SRCROOT)/../../react-native/React/**",
263
 					"$(SRCROOT)/../../node_modules/react-native/React/**",
263
 					"$(SRCROOT)/../../node_modules/react-native/React/**",
264
-					"$(SRCROOT)/../../node_modules/react-native-fetch-blob/ios/RNFetchBlob",
264
+					"$(SRCROOT)/../../node_modules/rn-fetch-blob/ios/RNFetchBlob",
265
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
265
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
266
 				);
266
 				);
267
 				OTHER_LDFLAGS = "-ObjC";
267
 				OTHER_LDFLAGS = "-ObjC";
282
 					"$(SRCROOT)/../../React/**",
282
 					"$(SRCROOT)/../../React/**",
283
 					"$(SRCROOT)/../../react-native/React/**",
283
 					"$(SRCROOT)/../../react-native/React/**",
284
 					"$(SRCROOT)/../../node_modules/react-native/React/**",
284
 					"$(SRCROOT)/../../node_modules/react-native/React/**",
285
-					"$(SRCROOT)/../../node_modules/react-native-fetch-blob/ios/RNFetchBlob",
285
+					"$(SRCROOT)/../../node_modules/rn-fetch-blob/ios/RNFetchBlob",
286
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
286
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
287
 				);
287
 				);
288
 				OTHER_LDFLAGS = "-ObjC";
288
 				OTHER_LDFLAGS = "-ObjC";

+ 1
- 1
package.json View File

23
   ],
23
   ],
24
   "rnpm": {
24
   "rnpm": {
25
     "commands": {
25
     "commands": {
26
-      "prelink": "node ./node_modules/react-native-fetch-blob/scripts/prelink.js"
26
+      "prelink": "node ./node_modules/rn-fetch-blob/scripts/prelink.js"
27
     }
27
     }
28
   },
28
   },
29
   "repository": {
29
   "repository": {

react-native-fetch-blob.podspec → rn-fetch-blob.podspec View File

1
 Pod::Spec.new do |s|
1
 Pod::Spec.new do |s|
2
-  s.name             = "react-native-fetch-blob"
2
+  s.name             = "rn-fetch-blob"
3
   s.version          = "0.10.6"
3
   s.version          = "0.10.6"
4
   s.summary          = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
4
   s.summary          = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
5
   s.requires_arc = true
5
   s.requires_arc = true
6
   s.license      = 'MIT'
6
   s.license      = 'MIT'
7
   s.homepage     = 'n/a'
7
   s.homepage     = 'n/a'
8
-  s.authors      = { "wkh237" => "xeiyan@gmail.com" }
9
-  s.source       = { :git => "https://github.com/wkh237/react-native-fetch-blob", :tag => 'v0.10.6'}
8
+  s.source       = { :git => "https://github.com/joltup/rn-fetch-blob", :tag => 'v0.10.6'}
10
   s.source_files = 'ios/**/*.{h,m}'
9
   s.source_files = 'ios/**/*.{h,m}'
11
-  s.platform     = :ios, "7.0"
10
+  s.platform     = :ios, "8.0"
12
   s.dependency 'React/Core'
11
   s.dependency 'React/Core'
13
 end
12
 end

+ 5
- 5
scripts/prelink.js View File

6
   var PACKAGE_JSON = process.cwd() + '/package.json';
6
   var PACKAGE_JSON = process.cwd() + '/package.json';
7
   var package = JSON.parse(fs.readFileSync(PACKAGE_JSON));
7
   var package = JSON.parse(fs.readFileSync(PACKAGE_JSON));
8
   var APP_NAME = package.name;
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
   var VERSION = checkVersion();
10
   var VERSION = checkVersion();
11
 
11
 
12
   console.log('RNFetchBlob detected app version => ' + VERSION);
12
   console.log('RNFetchBlob detected app version => ' + VERSION);
13
 
13
 
14
   if(VERSION < 0.28) {
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
     // add OkHttp3 dependency fo pre 0.28 project
16
     // add OkHttp3 dependency fo pre 0.28 project
17
     var main = fs.readFileSync(PACKAGE_GRADLE);
17
     var main = fs.readFileSync(PACKAGE_GRADLE);
18
     console.log('adding OkHttp3 dependency to pre 0.28 project .. ')
18
     console.log('adding OkHttp3 dependency to pre 0.28 project .. ')
52
   }
52
   }
53
   else {
53
   else {
54
     console.log(
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
       '\033[97mplease run the following command if you want to add default permissions :\n\n' +
56
       '\033[97mplease run the following command if you want to add default permissions :\n\n' +
57
       '\033[96m\tRNFB_ANDROID_PERMISSIONS=true react-native link \n')
57
       '\033[96m\tRNFB_ANDROID_PERMISSIONS=true react-native link \n')
58
   }
58
   }
64
 
64
 
65
 } catch(err) {
65
 } catch(err) {
66
   console.log(
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
     err.stack +
68
     err.stack +
69
     'please follow the instructions to manually link the library : ' +
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
 }