Developing NDK applications with Go#
Given that a helper package called srl-labs/bond
exists that abstracts the low-level NDK API and assists in the development of the NDK applications, there are not a lot of reasons to not use it. But, not a lot of reasons doesn't mean none.
Maybe your app needs a very specific manual control over the NDK API and convenience abstractions provided by Bond are not required. In that case, you are welcome to use the NDK Go bindings directly.
The project structure stays exactly the same, regardless of using Bond or not, what changes is the amount of code required to interact with the NDK services. Let's take the same greeter
app and implement it using the NDK Go bindings directly. It is recommended to get through the Bond-based development workflow first, as we will skip the parts that stay the same for both approaches.
The greeter app written with the NDK Go bindings directly is available at the same srl-labs/ndk-greeter-go
under the v0.1.0 tag.