Skip to content

Commit

Permalink
v10.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jul 25, 2024
1 parent af65b26 commit 11b383d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Example/testHotUpdate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test": "jest",
"test:e2e": "detox test --configuration android.emu.debug",
"lint": "eslint .",
"postinstall": "patch-package"
"postinstall": "patch-package",
"apk": "cd android && ./gradlew assembleRelease"
},
"dependencies": {
"patch-package": "^6.5.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "10.10.0",
"version": "10.10.1",
"description": "react-native hot update",
"main": "src/index",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ export const PushyProvider = ({
if (payload && payload.type) {
if (payload.type === '__rnPushyVersionHash') {
await checkUpdate({ toHash: payload.data });
if (updateInfoRef.current && updateInfoRef.current.upToDate) {
Alert.alert(
'提示',
'当前尚未检测到更新版本,如果是首次扫码,请等待服务器端生成补丁包后再试(约10秒)',
);
}
return true;
}
}
Expand Down

0 comments on commit 11b383d

Please sign in to comment.