forked from qt-creator/qt-creator
Android: Access buildTargetSdk directly when possible
Change-Id: I1f9996919d982f8e54c595abaa44ed0e10a79422 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -234,8 +234,7 @@ bool AndroidBuildApkStep::init()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString buildTargetSdk = AndroidManager::buildTargetSDK(target());
|
if (m_buildTargetSdk.isEmpty()) {
|
||||||
if (buildTargetSdk.isEmpty()) {
|
|
||||||
emit addOutput(tr("Android build SDK not defined. Check Android settings."),
|
emit addOutput(tr("Android build SDK not defined. Check Android settings."),
|
||||||
OutputFormat::Stderr);
|
OutputFormat::Stderr);
|
||||||
return false;
|
return false;
|
||||||
@@ -243,7 +242,7 @@ bool AndroidBuildApkStep::init()
|
|||||||
|
|
||||||
QStringList arguments = {"--input", m_inputFile,
|
QStringList arguments = {"--input", m_inputFile,
|
||||||
"--output", outputDir,
|
"--output", outputDir,
|
||||||
"--android-platform", AndroidManager::buildTargetSDK(target()),
|
"--android-platform", m_buildTargetSdk,
|
||||||
"--jdk", AndroidConfigurations::currentConfig().openJDKLocation().toString()};
|
"--jdk", AndroidConfigurations::currentConfig().openJDKLocation().toString()};
|
||||||
|
|
||||||
if (m_verbose)
|
if (m_verbose)
|
||||||
|
Reference in New Issue
Block a user