Use Gradle to deal with missing build.gradle files.
This commit is contained in:
committed by
Joshua Granick
parent
17eeceae48
commit
f7fcad06c1
@@ -397,12 +397,6 @@ class AndroidPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
FileHelper.recursiveCopy (library.source, destination + "/deps/" + library.name, context, true);
|
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);
|
FileHelper.recursiveCopyTemplate (project.templatePaths, "android/template", destination, context);
|
||||||
|
|||||||
@@ -25,3 +25,7 @@ task clean(type: Delete) {
|
|||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '::ANDROID_GRADLE_VERSION::'
|
gradleVersion = '::ANDROID_GRADLE_VERSION::'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('build.xml').exists()}) {
|
||||||
|
ant.importBuild 'build.xml'
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user