1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 11:51:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2023-09-24 21:17:41 +08:00
parent 821722165a
commit 189e3ec78e
3 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
-keepnames class cn.reactnative.modules.update.DownloadTask { *; }
-keepnames class cn.reactnative.modules.update.UpdateModuleImpl { *; }
-keepnames class com.facebook.react.ReactInstanceManager { *; }

View File

@@ -139,7 +139,7 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
const now = Date.now();
if (lastResult && lastChecking && now - lastChecking < 1000 * 60) {
// logger('repeated checking, ignored');
return lastResult || empty;
return lastResult;
}
lastChecking = now;
if (blockUpdate && blockUpdate.until > Date.now() / 1000) {
@@ -190,7 +190,6 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
//@ts-ignore
message: result.message,
});
return lastResult;
}
return result;

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "9.0.4",
"version": "9.0.5",
"description": "react-native hot update",
"main": "lib/index.ts",
"scripts": {