Use Gradle to deal with missing build.gradle files.

This commit is contained in:
player-03
2016-06-05 01:23:13 -04:00
committed by Joshua Granick
parent 17eeceae48
commit f7fcad06c1
2 changed files with 4 additions and 6 deletions

View File

@@ -397,12 +397,6 @@ class AndroidPlatform extends PlatformTarget {
FileHelper.recursiveCopy (library.source, destination + "/deps/" + library.name, context, true);
if (!FileSystem.exists (destination + "/deps/" + library.name + "/build.gradle")) {
File.saveContent (destination + "/deps/" + library.name + "/build.gradle", "ant.importBuild 'build.xml'\n");
}
}
FileHelper.recursiveCopyTemplate (project.templatePaths, "android/template", destination, context);

View File

@@ -25,3 +25,7 @@ task clean(type: Delete) {
task wrapper(type: Wrapper) {
gradleVersion = '::ANDROID_GRADLE_VERSION::'
}
configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('build.xml').exists()}) {
ant.importBuild 'build.xml'
}