Skip to content

Commit

Permalink
Hotfix of incompatibility problems with  IU-211.7142.45
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoriusE committed May 16, 2021
1 parent 6fcf025 commit 02d69ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'com.bobrusik.plugin.android_libraries_agent'
version '1.0.0-alpha4'
version '1.0.0-alpha5'

repositories {
mavenCentral()
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/core/ActionHandler.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core

import com.android.tools.idea.gradle.dsl.api.GradleBuildModel
import com.android.tools.idea.gradle.dsl.api.GradleModelSource
import com.android.tools.idea.gradle.dsl.api.ProjectBuildModel
import com.android.tools.idea.projectsystem.ProjectSystemSyncManager
import com.android.tools.idea.projectsystem.gradle.GradleProjectSystemSyncManager
import com.intellij.openapi.components.Service
Expand All @@ -22,7 +22,7 @@ import utils.extensions.canCreateFile
class ActionHandler(
private val project: Project
) {
private val projectGradleBuildModel: GradleBuildModel? = GradleModelSource().getBuildModel(project)
private val projectGradleBuildModel: GradleBuildModel? = ProjectBuildModel.get(project).projectBuildModel
private val gradleDependenciesManager = GradleDependenciesManager()
private val notificationFactory by lazy { NotificationsFactory.getInstance(project) }
private val gradleProjectSystemSyncManager = GradleProjectSystemSyncManager(project)
Expand Down Expand Up @@ -110,7 +110,7 @@ class ActionHandler(
step: ModificationStep.GradleModificationStep,
model: ModificationModel
) {
val buildModuleModel: GradleBuildModel? = GradleModelSource().getBuildModel(model.module)
val buildModuleModel: GradleBuildModel? = ProjectBuildModel.get(project).getModuleBuildModel(model.module)

when (step) {
is ModificationStep.GradleModificationStep.DependencyModification -> {
Expand Down

0 comments on commit 02d69ab

Please sign in to comment.