From eb4d61669a64709b478d6a4e35297b76967f5232 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 24 Mar 2026 01:26:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:expo-updates=20=E5=8C=85=E4=BC=9A=E5=9C=A8?= =?UTF-8?q?=20expo=20prebuild=20=E9=98=B6=E6=AE=B5=E5=90=91=20Android=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=B3=A8=E5=85=A5=E4=B8=8E=20EAS=20Update=20?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=9A=84=20Gradle=20=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=20assembleRelease=20=E6=97=B6?= =?UTF-8?q?=E5=8D=A1=E4=BD=8F=EF=BC=88=E6=8C=82=E8=B5=B7=E4=B8=8D=E9=80=80?= =?UTF-8?q?=E5=87=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 ++ app.json | 13 ++----------- app/_layout.tsx | 13 ------------- package.json | 3 +-- 4 files changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd24e74..c980a54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,6 +58,8 @@ jobs: run: chmod +x android/gradlew - name: Build Release APK + env: + SENTRY_DISABLE_AUTO_UPLOAD: 'true' run: | cd android ./gradlew assembleRelease --no-daemon diff --git a/app.json b/app.json index 8ac1444..9e7103e 100644 --- a/app.json +++ b/app.json @@ -41,21 +41,12 @@ "expo-router", "react-native-video", "expo-screen-orientation", - "expo-updates", - "@sentry/react-native/expo" +"@sentry/react-native/expo" ], "experiments": { "typedRoutes": true }, - "runtimeVersion": { - "policy": "appVersion" - }, - "updates": { - "url": "https://u.expo.dev/eac4192a-ae80-461c-8fff-6e1a8b777bd1", - "checkAutomatically": "ON_LOAD", - "fallbackToCacheTimeout": 0 - }, - "extra": { +"extra": { "router": {}, "eas": { "projectId": "eac4192a-ae80-461c-8fff-6e1a8b777bd1" diff --git a/app/_layout.tsx b/app/_layout.tsx index bb2fbc3..b89e078 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -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 ( diff --git a/package.json b/package.json index cd408d7..6edb1b1 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,7 @@ "expo-screen-orientation": "~55.0.8", "expo-status-bar": "~55.0.4", "expo-system-ui": "~55.0.9", - "expo-updates": "~55.0.15", - "pako": "^2.1.0", +"pako": "^2.1.0", "react": "19.2.0", "react-dom": "19.2.0", "react-native": "0.83.2",