mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix:expo-updates 包会在 expo prebuild 阶段向 Android 项目注入与 EAS Update 相关的 Gradle 任务,导致 assembleRelease 时卡住(挂起不退出)
This commit is contained in:
@@ -7,7 +7,6 @@ import { useAuthStore } from '../store/authStore';
|
||||
import { useDownloadStore } from '../store/downloadStore';
|
||||
import { useSettingsStore } from '../store/settingsStore';
|
||||
import { MiniPlayer } from '../components/MiniPlayer';
|
||||
import * as Updates from 'expo-updates';
|
||||
import * as Sentry from '@sentry/react-native';
|
||||
import { ErrorBoundary } from '@sentry/react-native';
|
||||
|
||||
@@ -28,18 +27,6 @@ function RootLayout() {
|
||||
loadDownloads();
|
||||
restoreSettings();
|
||||
|
||||
const checkOTA = async () => {
|
||||
if (!Updates.isEnabled) return;
|
||||
try {
|
||||
const update = await Updates.checkForUpdateAsync();
|
||||
if (update.isAvailable) {
|
||||
await Updates.fetchUpdateAsync();
|
||||
}
|
||||
} catch {
|
||||
// 静默失败,不影响正常使用
|
||||
}
|
||||
};
|
||||
checkOTA();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user