forked from qt-creator/qt-creator
Android: Search for gradle template in QT_DIR/src/3rdparty/gradle
Qt 5.6.3 LTS adds gradle template but QtCreator failed to use it because it compares Qt versions instead to search for gradle templates in QT_DIR/src/3rdparty/gradle Task-number: QTCREATORBUG-18811 Change-Id: I97c817f143a1d76fe4e2544b138cad9f4914eeee Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -61,7 +61,6 @@ namespace Android {
|
|||||||
using namespace Internal;
|
using namespace Internal;
|
||||||
|
|
||||||
const QVersionNumber gradleScriptRevokedSdkVersion(25, 3, 0);
|
const QVersionNumber gradleScriptRevokedSdkVersion(25, 3, 0);
|
||||||
const QVersionNumber gradleScriptsContainedQtVersion(5, 9, 0);
|
|
||||||
const char DeployActionKey[] = "Qt4ProjectManager.AndroidDeployQtStep.DeployQtAction";
|
const char DeployActionKey[] = "Qt4ProjectManager.AndroidDeployQtStep.DeployQtAction";
|
||||||
const char KeystoreLocationKey[] = "KeystoreLocation";
|
const char KeystoreLocationKey[] = "KeystoreLocation";
|
||||||
const char BuildTargetSdkKey[] = "BuildTargetSdk";
|
const char BuildTargetSdkKey[] = "BuildTargetSdk";
|
||||||
@@ -144,11 +143,10 @@ bool AndroidBuildApkStep::init(QList<const BuildStep *> &earlierSteps)
|
|||||||
|
|
||||||
const QVersionNumber sdkToolsVersion = AndroidConfigurations::currentConfig().sdkToolsVersion();
|
const QVersionNumber sdkToolsVersion = AndroidConfigurations::currentConfig().sdkToolsVersion();
|
||||||
if (sdkToolsVersion >= gradleScriptRevokedSdkVersion &&
|
if (sdkToolsVersion >= gradleScriptRevokedSdkVersion &&
|
||||||
QVersionNumber::fromString(version->qtVersionString()) < gradleScriptsContainedQtVersion) {
|
!version->sourcePath().appendPath("src/3rdparty/gradle").exists()) {
|
||||||
emit addOutput(tr("The installed SDK tools version (%1) does not include Gradle scripts. The "
|
emit addOutput(tr("The installed SDK tools version (%1) does not include Gradle scripts. The "
|
||||||
"minimum Qt version required for Gradle build to work is %2")
|
"minimum Qt version required for Gradle build to work is %2")
|
||||||
.arg(sdkToolsVersion.toString())
|
.arg(sdkToolsVersion.toString()).arg("5.9.0/5.6.3"), OutputFormat::Stderr);
|
||||||
.arg(gradleScriptsContainedQtVersion.toString()), OutputFormat::Stderr);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user