procedural-3d-engine/android/build.gradle

47 lines
1.2 KiB
Groovy
Raw Normal View History

/**
* Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
/** Top-level build file where you can add configuration options common to all sub-projects/modules */
2018-04-29 12:28:43 +02:00
buildscript {
repositories {
google()
mavenCentral()
2018-04-29 12:28:43 +02:00
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.0'
2018-04-29 12:28:43 +02:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
2018-04-29 12:28:43 +02:00
}
// This code is where all the magic happens and fixes the error.
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace "de.saschawillems." + project.group
}
}
}
}
}
}
ext {
abiFilters = "arm64-v8a"
minSdkVersion = 21
targetSdkVersion = 26
compileSdkVersion = 26
shaderPath = '../../../shaders/'
assetPath = '../../../assets/'
2018-04-29 12:28:43 +02:00
}