Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the mobile
nsgo devfast-reload work for #661 (building on #1655 for iOS simulator executable replacement and #1685 for Android-android-host):cmd/nsgo/ios.go,cmd/nsgo/iosdev.go):.appbundle on Go-only rebuilds: compiles and ad-hoc signs only the main executable (signIOSSimulatorBundle) instead of wiping.nsgo/dev/ios_simulatorand repackaging resources, icons (actool), StoreKit/widgets/share/asset-downloader extensions and frameworks on every save.buildIOSApp+simctl installwhen non-Go packaging inputs or Go-linked native frameworks (GhosttyVT,nsgo-natives.yamlv2 frameworks, notices) change, or when the app has an App Clip; keeps the staged bundle intact across failed Go compiles.p.resourceRoot(),launch_screen(light/dark images),mobile.asset_packs, YAML translation catalogs (p.I18n.Dir), and app identity fields iniosSimulatorInputs.-android-host(cmd/nsgo/android_host.go):icon.android.png,launch_screen(light/dark images), YAML translation catalogs,p.resourceRoot(), app identity fields, and SHA-256 ofnsgo.yamlinandroidHostInputs.am start) without repackaging or runningadb install.cmd/nsgo/iosdev_test.go,cmd/nsgo/android_host_test.go):TestIOSSimulatorDevReusesStagedBundleverifying staged bundle reuse (includingcodesign --verify --stricton macOS), compile-error recovery, framework-change fallback, and input-change full reinstall.TestAndroidHostSessionFastReloadOverADBdrivingandroidHostDev.build,start, andcloseagainst a fakeadbbinary to verify Go-only reloads skip APK packaging,adb install, andam start, Activity dismissal recovers without reinstalling, and resource changes trigger reinstall.docs/roadmap.md, updateddocs/architecture/tool.md,docs/public/en/debugging.md,docs/public/zh/debugging.md, andskills/nsgo/SKILL.md, and addedchangelog.d/dev-mobile-fast-reload.md.Verification
gofmt -lon all changed Go files: cleango tool nsgo test ./cmd/nsgo -- -run "TestAndroid|TestIOS|TestDev": passedgo tool nsgo test ./internal/platform/android ./internal/moduletest: passed (includingTestSkillsandTestLayering)go tool nsgo test -run TestRepositoryFragments ./tools/changelog: passedgo tool nsgo check -target macos,ios_simulator,android_arm64 -jobs 3 ./cmd/nsgo/...: passedclasses.dexorclasses.jar(Android Java runtime already includesAndroidHostDev).Fixes #661.
🤖 Gemini 4 Neon