Skip to content
0.2.0-dev Download ZIP
47 lines ·1.5 KB Raw
1plugins {
2 id 'com.android.library'
3 id 'org.jetbrains.kotlin.android'
4}
5
6dependencies {
7 implementation "androidx.fragment:fragment:$versions.fragmentVersion"
8 implementation "androidx.core:core-splashscreen:$versions.splashscreenVersion"
9
10 if (rootProject.findProject(":lib")) {
11 compileOnly project(":lib")
12 } else if (rootProject.findProject(":godot:lib")) {
13 compileOnly project(":godot:lib")
14 } else {
15 // Godot gradle build mode. In this scenario this project is the only one around and the Godot
16 // library is available through the pre-generated godot-lib.*.aar android archive files.
17 debugCompileOnly fileTree(dir: '../libs/debug', include: ['**/*.jar', '*.aar'])
18 releaseCompileOnly fileTree(dir: '../libs/release', include: ['**/*.jar', '*.aar'])
19 }
20}
21
22android {
23 namespace = 'com.godot.game'
24 compileSdk = versions.compileSdk
25
26 defaultConfig {
27 // The default ignore pattern for the 'assets' directory includes hidden files and directories which are used by Godot projects.
28 aaptOptions {
29 ignoreAssetsPattern = "!.svn:!.git:!.gitignore:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
30 }
31
32 minSdk = versions.minSdk
33
34 missingDimensionStrategy 'products', 'template'
35 }
36 compileOptions {
37 sourceCompatibility versions.javaVersion
38 targetCompatibility versions.javaVersion
39 }
40 kotlinOptions {
41 jvmTarget = versions.javaVersion
42 }
43 buildFeatures {
44 buildConfig = true
45 }
46
47}