diff --git a/build/android/app/build.gradle b/build/android/app/build.gradle index 62116be..d063b55 100644 --- a/build/android/app/build.gradle +++ b/build/android/app/build.gradle @@ -101,15 +101,15 @@ android { sourceSets { main { java.srcDirs += ['../../../src/engine/platform/java/com/kaliber/base'] - utils.forEachBuildType { buildType -> - "${buildType}" { - assets.srcDirs = [utils.getAssetsDir(buildType)] + android.buildTypes.each { buildType -> + "${buildType.name}" { + assets.srcDirs = [utils.getAssetsDir(buildType.name)] } } } - utils.forEachBuildType { buildType -> - "${buildType}" { - jniLibs.srcDirs = [utils.getJniLibsDir(buildType)] + android.buildTypes.each { buildType -> + "${buildType.name}" { + jniLibs.srcDirs = [utils.getJniLibsDir(buildType.name)] } } } @@ -299,12 +299,6 @@ class Utils implements Plugin { } } - void forEachBuildType(Closure callback) { - project.android.buildTypes.each { buildType -> - callback(buildType.name) - } - } - def getBuildTypesRegExp() { def outList = [] project.android.buildTypes.each { buildType ->