forked from qt-creator/qt-creator
Force uninstall of any Qt apps that are using Qt < 5.4
On Qt 5.4 the problem was fixed by https://codereview.qt-project.org/#/c/91261/ Change-Id: Id139fe2fe1e83ac5108ffeeb140cb8d2f16747c7 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -253,6 +253,7 @@ bool AndroidDeployQtStep::init()
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
m_uninstallPreviousPackageRun = true;
|
||||
pp->setCommand(AndroidConfigurations::currentConfig().adbToolPath().toString());
|
||||
m_apkPath = AndroidManager::androidQtSupport(target())->apkPath(target(), AndroidManager::signPackage(target())
|
||||
? AndroidQtSupport::ReleaseBuildSigned
|
||||
@@ -404,7 +405,9 @@ bool AndroidDeployQtStep::runInGuiThread() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AndroidDeployQtStep::uninstallPreviousPackage()
|
||||
AndroidDeployQtStep::UninstallType AndroidDeployQtStep::uninstallPreviousPackage()
|
||||
{
|
||||
return m_uninstallPreviousPackage;
|
||||
if (QtSupport::QtKitInformation::qtVersion(target()->kit())->qtVersion() < QtSupport::QtVersionNumber(5, 4, 0))
|
||||
return ForceUnintall;
|
||||
return m_uninstallPreviousPackage ? Uninstall : Keep;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user