summaryrefslogtreecommitdiff
path: root/src/plugins/ios/iosdeploystepfactory.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-11-30 18:43:44 +0100
committerhjk <hjk@qt.io>2017-12-19 09:16:45 +0000
commit280b7e2109f0f20de891f83defca25c8c048f370 (patch)
treeb3bbe9386c2fe1b274dc62b2d2e1c7b61b88af73 /src/plugins/ios/iosdeploystepfactory.cpp
parent44ee8b90681e0ba282a9cab92e9d19a94d50da63 (diff)
downloadqt-creator-280b7e2109f0f20de891f83defca25c8c048f370.tar.gz
Ios: Use device types as restrictions on project configurations
Change-Id: I3c31f14eba9d9f68a333a814bea800a3da38d4a2 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Diffstat (limited to 'src/plugins/ios/iosdeploystepfactory.cpp')
-rw-r--r--src/plugins/ios/iosdeploystepfactory.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/plugins/ios/iosdeploystepfactory.cpp b/src/plugins/ios/iosdeploystepfactory.cpp
index d14660fa38..b6a3506e91 100644
--- a/src/plugins/ios/iosdeploystepfactory.cpp
+++ b/src/plugins/ios/iosdeploystepfactory.cpp
@@ -25,16 +25,10 @@
#include "iosdeploystepfactory.h"
+#include "iosconstants.h"
#include "iosdeploystep.h"
-#include "iosmanager.h"
-#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/projectexplorerconstants.h>
-#include <projectexplorer/target.h>
-
-#include <QCoreApplication>
-
-using namespace ProjectExplorer;
namespace Ios {
namespace Internal {
@@ -44,14 +38,9 @@ IosDeployStepFactory::IosDeployStepFactory()
registerStep<IosDeployStep>(IosDeployStep::Id);
setDisplayName(tr("Deploy to iOS device or emulator"));
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
+ setSupportedDeviceTypes({Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE});
setRepeatable(false);
}
-bool IosDeployStepFactory::canHandle(BuildStepList *parent) const
-{
- return BuildStepFactory::canHandle(parent)
- && IosManager::supportsIos(parent->target());
-}
-
} // namespace Internal
} // namespace Ios