-
Notifications
You must be signed in to change notification settings - Fork 54
Description

Hey everyone!
I've been experimenting with getting Android projects to work with Kotlin LSP, and thought I'd share what I built in case it's useful or interesting to anyone.
I made a Gradle plugin that generates workspace.json
files for Android projects. Basically it takes all the Android AARs, extracts the JARs, finds source attachments, and creates the workspace structure that LSP expects.
Repo: https://github.com/desugar-64/kotlin-lsp-workspace-generator
It's pretty hacky and lots of things don't work (Compose is a mess of type errors, no Android-specific IDE features, etc.), but basic navigation and completion work surprisingly well.
Since Android support is on your roadmap(I hope), figured you might find it interesting to see one approach to the problem. Or maybe it'll give someone else ideas for their own experiments.
No pressure if this isn't relevant - just wanted to share! ๐