mirror of
https://github.com/android/ndk-samples
synced 2025-11-08 17:16:11 +08:00
Apparently gradle's new version catalogs only work in certain contexts, so we still need a convention plugin to be able to centralize decisions like compileSdk and targetSdk. I'm starting with those for now to prove it out, then will expand it to cover other interesting things like NDK version.
Convention plugins
This directory contains convention plugins used by the NDK samples. These are used to remove Gradle boiler plate from individual samples in favor of common configuration here. Using convention plugins for single module projects is overkill, but any non-trivial app will likely need their own eventually. See Now In Android's build-logic for a more thorough example of building convention plugins for Android projects.