forked from qt-creator/qt-creator
Android: Skip "Make Install" and "Build APK" if not ProductType::App
If the target's product type is not "App", the "Make Install" and "Build Android APK" build steps need to be skipped. Fixes: QTCREATORBUG-26980 Change-Id: Ia8bb61d407d040b851a74bad3d23876a7d31af73 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -711,6 +711,13 @@ void AndroidBuildApkStep::doRun()
|
||||
return;
|
||||
}
|
||||
|
||||
if (AndroidManager::skipInstallationAndPackageSteps(target())) {
|
||||
reportWarningOrError(Tr::tr("Product type is not an application, not building an APK."),
|
||||
Task::Warning);
|
||||
emit finished(true);
|
||||
return;
|
||||
}
|
||||
|
||||
auto setup = [this] {
|
||||
const auto androidAbis = AndroidManager::applicationAbis(target());
|
||||
const QString buildKey = target()->activeBuildKey();
|
||||
|
||||
Reference in New Issue
Block a user