CB-11083 Fix to deal with custom frameworks with their own Gradle configuration

This commit is contained in:
Joe Bowser 2016-06-07 16:06:40 -07:00
parent 0b710a86a9
commit 2f3c71feaa

View File

@ -73,10 +73,16 @@ GradleBuilder.prototype.prepBuildFiles = function() {
var subProjects = propertiesObj.libs;
for (var i = 0; i < subProjects.length; ++i) {
if (subProjects[i] !== 'CordovaLib') {
var subProjectGradle = path.join(this.root, subProjects[i], 'build.gradle');
// Only copy the gradle if it doesn't exist for the library
fs.exists(subProjectGradle, function(exists) {
if (!exists)
{
shell.cp('-f', pluginBuildGradle, path.join(this.root, subProjects[i], 'build.gradle'));
}
});
}
}
var name = this.extractRealProjectNameFromManifest();
//Remove the proj.id/name- prefix from projects: https://issues.apache.org/jira/browse/CB-9149
var settingsGradlePaths = subProjects.map(function(p){