Repository navigation
feat(cli): reconnect Android dev views to host Go builds - #1685
Conversation
9e5dbb2 to
ba7b6d6
Compare
ba7b6d6 to
bc4afe9
Compare
bc4afe9 to
3b87287
Compare
3b87287 to
d604ec4
Compare
|
Reviewed. Rebased onto main, moved the changelog bullet into |
bf91048 to
7b785d6
Compare
|
Rebased onto main 3f707fd. Resolved two conflicts: |
7b785d6 to
7916aa3
Compare
|
Rebased onto main after #1301 and pushed 7916aa3: |
`nsgo dev -android-host` runs the app's Go side on this machine and shows it on the Android device over adb: the APK carries a host config asset, NsgoEngine connects to the host through a LocalSocket instead of starting libnsgo.so, and the view reconnects into the same Activity when the host rebuilds. Host builds compile the Android backend with the nsgoandroidhost tag, so every file the host build needs is tagged `android || nsgoandroidhost` (main's newer audio, assets, discovery, geometry, GPU, keyboard and automation files included; the `_android.go` audio output and GPU files are renamed so the tag applies), with disk space and streams split into device and host files. CI vets the host build for macOS, Linux and Windows.
7916aa3 to
4f28516
Compare
|
Reworked. Squashed the six commits and rebased them onto main, keeping main's newer behaviour:
Verified: |
Summary
nsgo dev -target android -android-hostfor UI development. A debuggable Android runtime accepts the host Go process through an authenticated adb forward.DataDirwhen a host-mode app callsScope.DiskSpace.Refs #661.
Verification
mainat091984681. The packaging helper uses the same runtime and secondary DEX inputs for host and ordinary Android builds, and the rebased renderer uses the current text protocol.nsgo.yamleach caused one APK reinstall and Activity restart.Scope.DiskSpacereported valid host volume values on each launch, and shutdown removed the session's adb forward.TestHostDiskSpacepassed. Both Android architectures passed the scoped check, and macOS arm64, Linux x64 and Windows x64 passed the host-development-tag checks.The earlier device verification also checked rejection of an invalid host token. The earlier host-volume test ran natively on macOS, Linux and Windows x64.