Skip to content

Sharing my Android workspace generator experimentย #88

@desugar-64

Description

@desugar-64
Image

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! ๐Ÿ™‚

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions