mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
This is probably a bad idea, but we need to split the gradle files into legacy and new style
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user