mirror of https://github.com/auygun/kaliber.git
Remove forEachBuildType
This commit is contained in:
parent
64c63d4184
commit
85b5184d29
|
@ -101,15 +101,15 @@ android {
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java.srcDirs += ['../../../src/engine/platform/java/com/kaliber/base']
|
java.srcDirs += ['../../../src/engine/platform/java/com/kaliber/base']
|
||||||
utils.forEachBuildType { buildType ->
|
android.buildTypes.each { buildType ->
|
||||||
"${buildType}" {
|
"${buildType.name}" {
|
||||||
assets.srcDirs = [utils.getAssetsDir(buildType)]
|
assets.srcDirs = [utils.getAssetsDir(buildType.name)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
utils.forEachBuildType { buildType ->
|
android.buildTypes.each { buildType ->
|
||||||
"${buildType}" {
|
"${buildType.name}" {
|
||||||
jniLibs.srcDirs = [utils.getJniLibsDir(buildType)]
|
jniLibs.srcDirs = [utils.getJniLibsDir(buildType.name)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -299,12 +299,6 @@ class Utils implements Plugin<Project> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void forEachBuildType(Closure callback) {
|
|
||||||
project.android.buildTypes.each { buildType ->
|
|
||||||
callback(buildType.name)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def getBuildTypesRegExp() {
|
def getBuildTypesRegExp() {
|
||||||
def outList = []
|
def outList = []
|
||||||
project.android.buildTypes.each { buildType ->
|
project.android.buildTypes.each { buildType ->
|
||||||
|
|
Loading…
Reference in New Issue