Extract the AAR (it's a ZIP file) and copy the C headers from
prefab/modules/game-activity/include/ to gameactivity/include/.
Copy the C source files from prefab/modules/game-activity/src/ to
gameactivity/csrc/.
Alternatively, install the AGDK via Android Studio's SDK Manager.
Build tags
The Go source files use //go:build ignore until the AGDK headers are
vendored into the include/ and csrc/ subdirectories. After vendoring,
remove the build constraint to enable compilation.
Package gameactivity provides Go bindings for the AGDK GameActivity C library.
GameActivity is a Jetpack library that replaces NativeActivity with improved
input handling (motion event batching), text input support via GameTextInput,
and modern lifecycle management built on AppCompatActivity.
This package requires AGDK GameActivity headers which are not part of the
standard Android NDK. See README.md for setup instructions.