ソースを参照

rename missed occurrences of react-native-fetch-blob

Travis Nuttall 6 年 前
コミット
5721cb7396
共有7 個のファイルを変更した14 個の追加21 個の削除を含む
  1. 1
    7
      CONTRIBUTING.md
  2. 1
    1
      android/src/main/res/values/strings.xml
  3. 1
    1
      index.js
  4. 2
    2
      ios/RNFetchBlob.xcodeproj/project.pbxproj
  5. 1
    1
      package.json
  6. 3
    4
      rn-fetch-blob.podspec
  7. 5
    5
      scripts/prelink.js

+ 1
- 7
CONTRIBUTING.md ファイルの表示

@@ -1,7 +1 @@
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 ファイルの表示

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

+ 1
- 1
index.js ファイルの表示

@@ -72,7 +72,7 @@ emitter.addListener("RNFetchBlobMessage", (e) => {
72 72
 // Show warning if native module not detected
73 73
 if(!RNFetchBlob || !RNFetchBlob.fetchBlobForm || !RNFetchBlob.fetchBlob) {
74 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 76
     'please make sure you have linked native modules using `rnpm link`,',
77 77
     'and restart RN packager or manually compile IOS/Android project.'
78 78
   )

+ 2
- 2
ios/RNFetchBlob.xcodeproj/project.pbxproj ファイルの表示

@@ -261,7 +261,7 @@
261 261
 					"$(SRCROOT)/../../React/**",
262 262
 					"$(SRCROOT)/../../react-native/React/**",
263 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 265
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
266 266
 				);
267 267
 				OTHER_LDFLAGS = "-ObjC";
@@ -282,7 +282,7 @@
282 282
 					"$(SRCROOT)/../../React/**",
283 283
 					"$(SRCROOT)/../../react-native/React/**",
284 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 286
 					"$(SRCROOT)/../../RNFetchBlobTest/node_modules/react-native/**",
287 287
 				);
288 288
 				OTHER_LDFLAGS = "-ObjC";

+ 1
- 1
package.json ファイルの表示

@@ -23,7 +23,7 @@
23 23
   ],
24 24
   "rnpm": {
25 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 29
   "repository": {

react-native-fetch-blob.podspec → rn-fetch-blob.podspec ファイルの表示

@@ -1,13 +1,12 @@
1 1
 Pod::Spec.new do |s|
2
-  s.name             = "react-native-fetch-blob"
2
+  s.name             = "rn-fetch-blob"
3 3
   s.version          = "0.10.6"
4 4
   s.summary          = "A project committed to make file acess and data transfer easier, effiecient for React Native developers."
5 5
   s.requires_arc = true
6 6
   s.license      = 'MIT'
7 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 9
   s.source_files = 'ios/**/*.{h,m}'
11
-  s.platform     = :ios, "7.0"
10
+  s.platform     = :ios, "8.0"
12 11
   s.dependency 'React/Core'
13 12
 end

+ 5
- 5
scripts/prelink.js ファイルの表示

@@ -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
 }