mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-11083 Fix to deal with custom frameworks with their own Gradle configuration
This commit is contained in:
parent
0b710a86a9
commit
2f3c71feaa
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user