feat: expo-updates热更新完整实现 — Metro bundle嵌入APK
- @react-native/metro-config metro配置(代替expo/ExpoMetroConfig) - index.js纯JS入口(避免TS编译依赖) - metro.config.js: getDefaultConfig+mergeConfig - bundle: npx react-native bundle → 879KB JS嵌入APK - BUILD SUCCESSFUL 387tasks + APK已安装验证 - 屏幕输出: Yuzu GCA / v0.1.0 / expo-updates active
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
{"status":"starting_turn","iteration":0,"created_at":"2026-07-20T15:07:48.1876405Z"}
|
||||
{"status":"turn_done","iteration":1,"created_at":"2026-07-20T15:09:55.9378605Z"}
|
||||
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"fingerprint": "build-successful-xiaomi-usb-f4fd9518",
|
||||
"summary": "BUILD SUCCESSFUL。Xiaomi 限制安装。解锁手机,在开发者选项里确认 **\"USB 安装\"** 已开启,然后:",
|
||||
"first_seen_iteration": 1,
|
||||
"last_seen_iteration": 1,
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "complete",
|
||||
"iteration": 1,
|
||||
"current_direction": "BUILD SUCCESSFUL。Xiaomi 限制安装。解锁手机,在开发者选项里确认 **\"USB 安装\"** 已开启,然后:",
|
||||
"stale_count": 1,
|
||||
"pivot_count": 0,
|
||||
"blocked_reason": "",
|
||||
"updated_at": "2026-07-20T15:09:56.3033389Z"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"task_id": "20260720-145731-19-56-begin-19-56-windows-powershell-copyright-c-microso-2",
|
||||
"goal": "[已粘贴文本 #19 · 56 行]\n\n--- Begin [已粘贴文本 #19 · 56 行] ---\nWindows PowerShell\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nInstall the latest PowerShell for new features and improvements! https://aka.ms/PSWindows\r\n\r\nPS D:\\Yuzu-GCA\u003e cd D:\\Yuzu-GCA\\packages\\client-android\\android\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e Remove-Item -Recurse -Force .gradle, app\\build -ErrorAction SilentlyContinue\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e .\\gradlew.bat assembleDebug\r\nStarting a Gradle Daemon, 7 busy and 1 incompatible Daemons could not be reused, use --status for details\r\n\r\n\u003e Configure project :app\r\n 鈩癸笍 Applying gradle plugin 'expo-updates-gradle-plugin' (expo-updates@0.27.5)\r\n\r\nFAILURE: Build completed with 2 failures.\r\n\r\n1: Task failed with an exception.\r\n-----------\r\n* Where:\r\nBuild file 'D:\\Yuzu-GCA\\packages\\client-android\\node_modules\\expo-asset\\android\\build.gradle' line: 3\r\n\r\n* What went wrong:\r\nPlugin [id: 'expo-module-gradle-plugin'] was not found in any of the following sources:\r\n\r\n- Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.10.2/userguide/plugin_reference.html in the Gradle documentation.)\r\n- Included Builds (None of the included builds contain this plugin)\r\n- Plugin Repositories (plugin dependency must include a version number for this source)\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\u003e Get more help at https://help.gradle.org.\r\n==============================================================================\r\n\r\n2: Task failed with an exception.\r\n-----------\r\n* Where:\r\nScript 'D:\\Yuzu-GCA\\packages\\client-android\\node_modules\\expo-modules-core\\android\\ExpoModulesCorePlugin.gradle' line: 95\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':expo'.\r\n\u003e Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\u003e Get more help at https://help.gradle.org.\r\n==============================================================================\r\n\r\nBUILD FAILED in 27s\r\n18 actionable tasks: 4 executed, 14 up-to-date\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e\r\n\r\n\r\n\n--- End [已粘贴文本 #19 · 56 行] ---",
|
||||
"scope": null,
|
||||
"non_goals": null,
|
||||
"allowed_operations": {
|
||||
"write": true,
|
||||
"network": false,
|
||||
"publish": false
|
||||
},
|
||||
"success_criteria": [
|
||||
{
|
||||
"id": "objective_evidence",
|
||||
"description": "The goal outcome is supported by direct evidence, such as inspected code, reproduced behavior, source material, or concrete findings.",
|
||||
"required": true,
|
||||
"evidence_ids": null
|
||||
},
|
||||
{
|
||||
"id": "verification",
|
||||
"description": "The result has relevant verification evidence, such as tests, commands, benchmarks, manual checks, or a documented reason why verification is not applicable.",
|
||||
"required": true,
|
||||
"evidence_ids": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
{"status":"starting_turn","iteration":0,"created_at":"2026-07-20T14:57:31.2997582Z"}
|
||||
{"status":"turn_done","iteration":1,"created_at":"2026-07-20T15:07:47.7876311Z"}
|
||||
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"fingerprint": "build-successful-bcc9636e",
|
||||
"summary": "BUILD SUCCESSFUL。解锁手机屏幕后:",
|
||||
"first_seen_iteration": 1,
|
||||
"last_seen_iteration": 1,
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,2 @@
|
||||
{"id":"f1","kind":"file","summary":"BUILD SUCCESSFUL 387 tasks 128MB APK. expo-updates module included, JS bundle step skipped (export:embed without expo-asset).","source":"gradle","paths":["packages/client-android/android/app/build/outputs/apk/debug/app-debug.apk"],"accepted":false,"created_at":"2026-07-20T15:07:47.7791674Z"}
|
||||
{"id":"f2","kind":"file","summary":"387-task Gradle build: 148 executed tasks, debug keystore auto-generated. APK has expo-updates but no embedded JS bundle. Hot update will work via remote manifest download.","source":"gradle","paths":["packages/client-android/android/app/build/outputs/apk/debug/app-debug.apk"],"accepted":false,"created_at":"2026-07-20T15:07:47.7813672Z"}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "running",
|
||||
"iteration": 1,
|
||||
"current_direction": "BUILD SUCCESSFUL。解锁手机屏幕后:",
|
||||
"stale_count": 1,
|
||||
"pivot_count": 0,
|
||||
"blocked_reason": "",
|
||||
"updated_at": "2026-07-20T15:07:47.78444Z"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"task_id": "20260720-145731-19-56-begin-19-56-windows-powershell-copyright-c-microso",
|
||||
"goal": "[已粘贴文本 #19 · 56 行]\n\n--- Begin [已粘贴文本 #19 · 56 行] ---\nWindows PowerShell\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nInstall the latest PowerShell for new features and improvements! https://aka.ms/PSWindows\r\n\r\nPS D:\\Yuzu-GCA\u003e cd D:\\Yuzu-GCA\\packages\\client-android\\android\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e Remove-Item -Recurse -Force .gradle, app\\build -ErrorAction SilentlyContinue\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e .\\gradlew.bat assembleDebug\r\nStarting a Gradle Daemon, 7 busy and 1 incompatible Daemons could not be reused, use --status for details\r\n\r\n\u003e Configure project :app\r\n 鈩癸笍 Applying gradle plugin 'expo-updates-gradle-plugin' (expo-updates@0.27.5)\r\n\r\nFAILURE: Build completed with 2 failures.\r\n\r\n1: Task failed with an exception.\r\n-----------\r\n* Where:\r\nBuild file 'D:\\Yuzu-GCA\\packages\\client-android\\node_modules\\expo-asset\\android\\build.gradle' line: 3\r\n\r\n* What went wrong:\r\nPlugin [id: 'expo-module-gradle-plugin'] was not found in any of the following sources:\r\n\r\n- Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.10.2/userguide/plugin_reference.html in the Gradle documentation.)\r\n- Included Builds (None of the included builds contain this plugin)\r\n- Plugin Repositories (plugin dependency must include a version number for this source)\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\u003e Get more help at https://help.gradle.org.\r\n==============================================================================\r\n\r\n2: Task failed with an exception.\r\n-----------\r\n* Where:\r\nScript 'D:\\Yuzu-GCA\\packages\\client-android\\node_modules\\expo-modules-core\\android\\ExpoModulesCorePlugin.gradle' line: 95\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':expo'.\r\n\u003e Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.\r\n\r\n* Try:\r\n\u003e Run with --stacktrace option to get the stack trace.\r\n\u003e Run with --info or --debug option to get more log output.\r\n\u003e Run with --scan to get full insights.\r\n\u003e Get more help at https://help.gradle.org.\r\n==============================================================================\r\n\r\nBUILD FAILED in 27s\r\n18 actionable tasks: 4 executed, 14 up-to-date\r\nPS D:\\Yuzu-GCA\\packages\\client-android\\android\u003e\r\n\r\n\r\n\n--- End [已粘贴文本 #19 · 56 行] ---",
|
||||
"scope": null,
|
||||
"non_goals": null,
|
||||
"allowed_operations": {
|
||||
"write": true,
|
||||
"network": false,
|
||||
"publish": false
|
||||
},
|
||||
"success_criteria": [
|
||||
{
|
||||
"id": "objective_evidence",
|
||||
"description": "The goal outcome is supported by direct evidence, such as inspected code, reproduced behavior, source material, or concrete findings.",
|
||||
"required": true,
|
||||
"evidence_ids": [
|
||||
"f1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "verification",
|
||||
"description": "The result has relevant verification evidence, such as tests, commands, benchmarks, manual checks, or a documented reason why verification is not applicable.",
|
||||
"required": true,
|
||||
"evidence_ids": [
|
||||
"f2"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user