v9.0.5
This commit is contained in:
parent
821722165a
commit
189e3ec78e
1
android/proguard.pro
vendored
1
android/proguard.pro
vendored
@ -1,2 +1,3 @@
|
|||||||
-keepnames class cn.reactnative.modules.update.DownloadTask { *; }
|
-keepnames class cn.reactnative.modules.update.DownloadTask { *; }
|
||||||
|
-keepnames class cn.reactnative.modules.update.UpdateModuleImpl { *; }
|
||||||
-keepnames class com.facebook.react.ReactInstanceManager { *; }
|
-keepnames class com.facebook.react.ReactInstanceManager { *; }
|
@ -139,7 +139,7 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
|
|||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (lastResult && lastChecking && now - lastChecking < 1000 * 60) {
|
if (lastResult && lastChecking && now - lastChecking < 1000 * 60) {
|
||||||
// logger('repeated checking, ignored');
|
// logger('repeated checking, ignored');
|
||||||
return lastResult || empty;
|
return lastResult;
|
||||||
}
|
}
|
||||||
lastChecking = now;
|
lastChecking = now;
|
||||||
if (blockUpdate && blockUpdate.until > Date.now() / 1000) {
|
if (blockUpdate && blockUpdate.until > Date.now() / 1000) {
|
||||||
@ -190,7 +190,6 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
|
|||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
message: result.message,
|
message: result.message,
|
||||||
});
|
});
|
||||||
return lastResult;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "9.0.4",
|
"version": "9.0.5",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "lib/index.ts",
|
"main": "lib/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user