Movatterモバイル変換


[0]ホーム

URL:


Defold logo




Gradle for Android

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.

Resolving dependencies

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:


[8]ページ先頭

©2009-2025 Movatter.jp