forked from qt-creator/qt-creator
Android: Use device types as restrictions on project configurations
Change-Id: I3f7ff05f27c76dadec9a9ff0ae02848830655472 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -153,14 +153,10 @@ AndroidPackageInstallationFactory::AndroidPackageInstallationFactory()
|
||||
{
|
||||
registerStep<AndroidPackageInstallationStep>(Constants::ANDROID_PACKAGE_INSTALLATION_STEP_ID);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_BUILD);
|
||||
setSupportedDeviceType(Android::Constants::ANDROID_DEVICE_TYPE);
|
||||
setRepeatable(false);
|
||||
setDisplayName(tr("Deploy to device"));
|
||||
}
|
||||
|
||||
bool AndroidPackageInstallationFactory::canHandle(BuildStepList *bsl) const
|
||||
{
|
||||
return BuildStepFactory::canHandle(bsl) && AndroidManager::supportsAndroid(bsl->target());
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Android
|
||||
|
||||
Reference in New Issue
Block a user