Search in sources :

Example 1 with ProjectProfileSelectionDialog

use of com.android.tools.idea.gradle.variant.profiles.ProjectProfileSelectionDialog in project android by JetBrains.

the class PostSyncProjectSetup method findAndShowVariantConflicts.

private void findAndShowVariantConflicts() {
    ConflictSet conflicts = findConflicts(myProject);
    List<Conflict> structureConflicts = conflicts.getStructureConflicts();
    if (!structureConflicts.isEmpty() && SystemProperties.getBooleanProperty("enable.project.profiles", false)) {
        ProjectProfileSelectionDialog dialog = new ProjectProfileSelectionDialog(myProject, structureConflicts);
        dialog.show();
    }
    List<Conflict> selectionConflicts = conflicts.getSelectionConflicts();
    if (!selectionConflicts.isEmpty()) {
        boolean atLeastOneSolved = solveSelectionConflicts(selectionConflicts);
        if (atLeastOneSolved) {
            conflicts = findConflicts(myProject);
        }
    }
    conflicts.showSelectionConflicts();
}
Also used : Conflict(com.android.tools.idea.gradle.variant.conflict.Conflict) ConflictSet(com.android.tools.idea.gradle.variant.conflict.ConflictSet) ProjectProfileSelectionDialog(com.android.tools.idea.gradle.variant.profiles.ProjectProfileSelectionDialog)

Aggregations

Conflict (com.android.tools.idea.gradle.variant.conflict.Conflict)1 ConflictSet (com.android.tools.idea.gradle.variant.conflict.ConflictSet)1 ProjectProfileSelectionDialog (com.android.tools.idea.gradle.variant.profiles.ProjectProfileSelectionDialog)1