aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2019-08-01 10:12:34 +0200
committerhjk <[email protected]>2019-10-01 08:15:55 +0000
commitfc2e22dad247445ed4134afbbaff7d9960fd18e2 (patch)
tree5eb80fb6192cba013bfb24806bba55f52a61bb9e /src/plugins/android/androidplugin.cpp
parente90081cd8817716914d139f9b6888c39926df61a (diff)
Android: Move logic to trigger AndroidManager::updateGradleProperties
Previously, AndroidManager::updateGradleProperties operated always on a project node found using target->activeRunConfiguration() which might or might not be the one that will actually be used after the build. This here still does not address the problem that the activeRunConfiguration may change but introduces a way to specify the relevant node, and tries to use the right one when available. At some time, this could be developed into a real solution, e.g. by invalidating the cache on build key changes. Change-Id: I37a3d73e9ad3615025e4def2493f683d11add3c6 Reviewed-by: BogDan Vatra <[email protected]>
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r--src/plugins/android/androidplugin.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp
index d8225eebaea..17926f653cb 100644
--- a/src/plugins/android/androidplugin.cpp
+++ b/src/plugins/android/androidplugin.cpp
@@ -98,34 +98,6 @@ public:
class AndroidPluginPrivate : public QObject
{
public:
- AndroidPluginPrivate()
- {
- connect(SessionManager::instance(), &SessionManager::projectAdded, this, [=](Project *project) {
- for (Target *target : project->targets())
- handleNewTarget(target);
- connect(project, &Project::addedTarget, this, &AndroidPluginPrivate::handleNewTarget);
- });
- }
-
- void handleNewTarget(Target *target)
- {
- if (DeviceTypeKitAspect::deviceTypeId(target->kit()) != Android::Constants::ANDROID_DEVICE_TYPE)
- return;
-
- for (BuildConfiguration *bc : target->buildConfigurations())
- handleNewBuildConfiguration(bc);
-
- connect(target, &Target::addedBuildConfiguration,
- this, &AndroidPluginPrivate::handleNewBuildConfiguration);
- }
-
- void handleNewBuildConfiguration(BuildConfiguration *bc)
- {
- connect(bc->target()->project(), &Project::parsingFinished, bc, [bc] {
- AndroidManager::updateGradleProperties(bc->target());
- });
- }
-
AndroidConfigurations androidConfiguration;
AndroidSettingsPage settingsPage;
AndroidDeployQtStepFactory deployQtStepFactory;