react-native-update 10.23.0 → 10.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +4 -4
- package/react-native-update.podspec +1 -1
- package/src/client.ts +1 -1
- package/src/core.ts +3 -3
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
### 本地开发
|
|
23
23
|
|
|
24
24
|
```
|
|
25
|
-
$ git clone git@github.com:reactnativecn/react-native-
|
|
25
|
+
$ git clone git@github.com:reactnativecn/react-native-update.git
|
|
26
26
|
$ cd react-native-pushy/Example/testHotUpdate
|
|
27
27
|
$ yarn
|
|
28
28
|
$ yarn start
|
|
@@ -34,4 +34,4 @@ $ yarn start
|
|
|
34
34
|
|
|
35
35
|
本组件由[React Native 中文网](https://reactnative.cn/)独家发布,如有定制需求可以[联系我们](https://reactnative.cn/about.html#content)。
|
|
36
36
|
|
|
37
|
-
关于此插件发现任何问题,可以前往[Issues](https://github.com/reactnativecn/react-native-
|
|
37
|
+
关于此插件发现任何问题,可以前往[Issues](https://github.com/reactnativecn/react-native-update/issues)发帖提问。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-update",
|
|
3
|
-
"version": "10.23.
|
|
3
|
+
"version": "10.23.1",
|
|
4
4
|
"description": "react-native hot update",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/reactnativecn/react-native-
|
|
29
|
+
"url": "git+https://github.com/reactnativecn/react-native-update.git"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"react-native",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"author": "reactnativecn",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"bugs": {
|
|
40
|
-
"url": "https://github.com/reactnativecn/react-native-
|
|
40
|
+
"url": "https://github.com/reactnativecn/react-native-update/issues"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
44
44
|
"react-native": ">=0.59.0"
|
|
45
45
|
},
|
|
46
|
-
"homepage": "https://github.com/reactnativecn/react-native-
|
|
46
|
+
"homepage": "https://github.com/reactnativecn/react-native-update#readme",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"nanoid": "^3.3.3",
|
|
49
49
|
"react-native-url-polyfill": "^2.0.0"
|
|
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.cocoapods_version = '>= 1.6.0'
|
|
19
19
|
s.platform = :ios, "8.0"
|
|
20
20
|
s.platforms = { :ios => "11.0" }
|
|
21
|
-
s.source = { :git => 'https://github.com/reactnativecn/react-native-
|
|
21
|
+
s.source = { :git => 'https://github.com/reactnativecn/react-native-update.git', :tag => '#{s.version}' }
|
|
22
22
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
23
23
|
s.libraries = 'bz2', 'z'
|
|
24
24
|
s.vendored_libraries = 'RCTPushy/libRCTPushy.a'
|
package/src/client.ts
CHANGED
|
@@ -20,7 +20,7 @@ const defaultServer = {
|
|
|
20
20
|
backups: ['https://update.reactnative.cn/api'],
|
|
21
21
|
queryUrls: [
|
|
22
22
|
'https://gitee.com/sunnylqm/react-native-pushy/raw/master/endpoints.json',
|
|
23
|
-
'https://cdn.jsdelivr.net/gh/reactnativecn/react-native-
|
|
23
|
+
'https://cdn.jsdelivr.net/gh/reactnativecn/react-native-update@master/endpoints.json',
|
|
24
24
|
],
|
|
25
25
|
};
|
|
26
26
|
|
package/src/core.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const PushyModule =
|
|
|
14
14
|
: NativeModules.Pushy;
|
|
15
15
|
|
|
16
16
|
if (!PushyModule) {
|
|
17
|
-
throw new Error('react-native-update
|
|
17
|
+
throw new Error('react-native-update 模块无法加载,请尝试重新编译');
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const PushyConstants = isTurboModuleEnabled
|
|
@@ -32,8 +32,8 @@ export const buildTime: string = PushyConstants.buildTime;
|
|
|
32
32
|
let uuid = PushyConstants.uuid;
|
|
33
33
|
|
|
34
34
|
if (Platform.OS === 'android' && !PushyConstants.isUsingBundleUrl) {
|
|
35
|
-
|
|
36
|
-
'react-native-update
|
|
35
|
+
console.warn(
|
|
36
|
+
'react-native-update 没有检测到 Bundle URL 的配置,这可能是因为您使用了某种懒加载机制(比如使用 expo,可忽略本警告),或是 Bundle URL 的配置不正确(请对照文档检查)',
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
|