Tools for analyzing Android projects and generating workspace.json files for Kotlin Language Server integration.
Command line tool that utilise ADT libraries for specific tasks (e.g. workspace.json generation, android project gradle metatdata review, etc.)
brew tap yamsergey/adt
brew install adt-cliTODO: In progress
Download the latest release from GitHub Releases.
Extract the archive:
tar -xzf adt-cli-1.0.0.tar.gzAll libraries piblished via jitpack, for details take a look at appropriate library README.md.
Requirements: Java 21+
Generate workspace.json for Kotlin LSP:
adt-cli/bin/adt-cli workspace /path/to/android/project \
--output /path/to/android/project/workspace.jsonAnalyze Android project structure:
adt-cli/bin/adt-cli resolve /path/to/android/project \
--workspace --output project-analysis.jsonList build variants:
adt-cli/bin/adt-cli resolve /path/to/android/project --variants- adt-cli - Unified CLI for project analysis and workspace generation
- workspace-kotlin - Workspace converter library
- tools-android - Core analysis library
See individual module READMEs for detailed documentation.