Contrary to how Android applications are typically built, Defold does not useGradle for the entire build process. Instead Defold uses Android command line tools such asaapt2
andbundletool
directly in the local build and only leverages Gradle while resolving dependencies on the build server.
Native extensions can include abuild.gradle
file in themanifests/android
folder to specify the extension dependencies. Example:
repositories { mavenCentral()}dependencies { implementation 'com.google.firebase:firebase-installations:17.2.0' implementation 'com.google.android.gms:play-services-base:18.2.0'}
The build server will collect thebuild.gradle
files from all the extensions and use these to resolve all dependencies and include them when building the native code.
Examples:
Did you spot an error or do you have a suggestion? Please let us know on GitHub!
GITHUB