yigit / ArtifactFinder

An Android Studio Plugin to find Maven Artifacts by class name
Apache License 2.0
208 stars 5 forks source link

Support `gradle.kts` files #4

Open rcd27 opened 4 years ago

rcd27 commented 4 years ago

When Gradle scripts are written in Gradle Kotlin DSL (.kts), plugin says "dependencies added", but they are not.

rcd27 commented 4 years ago

Seems like com.android.tools.idea.gradle.dsl.api.dependencies.DependenciesModel with its addArtifact(..) function is only implemented for *.gradle files. All logic about parsing artifact String and placing it to the actual Gradle module is solved by *.gradle.dsl.api.* .

yigit commented 4 years ago

i guess it will be fixed when studio has better support for them :man_shrugging:

rcd27 commented 4 years ago

@yigit this might be fixed in AS 4.0, but haven't checked yet.