This is probably a bad idea, but we need to split the gradle files into legacy and new style

This commit is contained in:
Joe Bowser
2017-06-13 11:58:00 -07:00
parent c74192d578
commit b67e9905bc
3 changed files with 311 additions and 7 deletions
+1 -6
View File
@@ -45,12 +45,7 @@ task wrapper(type: Wrapper) {
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
// Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
ext {
//This is a dirty hack to support legacy projects
if (file('../CordovaLib/cordova.gradle').exists()) {
apply from: '../CordovaLib/cordova.gradle'
} else {
apply from: 'CordovaLib/cordova.gradle'
}
apply from: '../CordovaLib/cordova.gradle'
// The value for android.compileSdkVersion.
if (!project.hasProperty('cdvCompileSdkVersion')) {
cdvCompileSdkVersion = null;