0.2.0-dev Download ZIP
59 lines ·1.4 KB Raw
| 1 | // Non functional android library used to provide Android Studio editor support to the project. |
| 2 | plugins { |
| 3 | id 'com.android.library' |
| 4 | id 'org.jetbrains.kotlin.android' |
| 5 | } |
| 6 | |
| 7 | android { |
| 8 | compileSdkVersion versions.compileSdk |
| 9 | buildToolsVersion versions.buildTools |
| 10 | ndkVersion = versions.ndkVersion |
| 11 | |
| 12 | namespace = "org.godotengine.godot" |
| 13 | |
| 14 | defaultConfig { |
| 15 | minSdkVersion versions.minSdk |
| 16 | targetSdkVersion versions.targetSdk |
| 17 | } |
| 18 | |
| 19 | compileOptions { |
| 20 | sourceCompatibility versions.javaVersion |
| 21 | targetCompatibility versions.javaVersion |
| 22 | } |
| 23 | |
| 24 | kotlinOptions { |
| 25 | jvmTarget = versions.javaVersion |
| 26 | } |
| 27 | |
| 28 | packagingOptions { |
| 29 | exclude 'META-INF/LICENSE' |
| 30 | exclude 'META-INF/NOTICE' |
| 31 | } |
| 32 | |
| 33 | sourceSets { |
| 34 | main { |
| 35 | manifest.srcFile 'AndroidManifest.xml' |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | externalNativeBuild { |
| 40 | cmake { |
| 41 | path "CMakeLists.txt" |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | libraryVariants.all { variant -> |
| 46 | def buildType = variant.buildType.name.capitalize() |
| 47 | |
| 48 | def taskPrefix = "" |
| 49 | if (project.path != ":") { |
| 50 | taskPrefix = project.path + ":" |
| 51 | } |
| 52 | |
| 53 | // Disable the externalNativeBuild* task as it would cause build failures since the cmake build |
| 54 | // files is only setup for editing support. |
| 55 | gradle.startParameter.excludedTaskNames += taskPrefix + "externalNativeBuild" + buildType |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | dependencies {} |