Repository navigation
CodeAssist 3.13.0
CodeAssist 3.13.0
This release is about extending the IDE from inside it. Plugins can now contribute editor actions, UI, and build logic, and you can write one without leaving CodeAssist.
Editor actions
A new action layer sits at the caret, reachable from Alt-Enter, the editor's overflow menu, and the command palette. It ships with:
- Generate members:
equals/hashCode,toString, constructors, getters and setters, and override stubs, with the generated code indented to match your file. - Extract function and move to a new file.
- Kotlin intentions at the cursor, plus line-level actions.
Write a plugin in the IDE
- Create Project > Plugin scaffolds a working plugin: the packaged manifest, the marker activity, and an entry point, with the SPI already declared.
- The manifest is checked while you type: a malformed id, an API version this build cannot load, a minimum host version newer than your IDE, an entry point that names no class, a missing marker activity, and a capability the plugin has no facet to deliver are all flagged, with completion for the manifest's keys.
- A plugin you install is not run until you allow it. The IDE shows what the plugin says it does, the signing certificate of the installed package, and a plain statement that a plugin is not sandboxed, and asks first.
- An installed plugin can contribute Compose UI: tool windows, screens and overlays, alongside commands, settings pages and editor actions.
- Status dots on editor tabs are contributed the same way any plugin would.
Extend the build
Build logic is contributed rather than hard-coded, and the whole surface is now reachable from a plugin and documented in docs/custom-build-plugins.md: add a task to a build, generate source before compilation, add a Kotlin compiler plugin, put a row in the Run picker, or bring your own build system and project importer. samples/hello-plugin shows all of it working.
Along the way: a build plugin that fails is reported on the build console instead of silently skipped, generated code is compiled without the project having to declare a source root for it, and a plugin can read its own settings page while a build runs.
Fixes
- Apps using Firebase Crashlytics no longer crash at startup. Crashlytics needs a build-id resource that only its Gradle plugin writes, so this build system writes it, as it already does for Hilt and google-services.
- Dependencies declared with a version range now resolve. A ranged version went into the graph verbatim, so the fetch 404'd and the edge was dropped with its whole subtree and nothing reported. Adding the OneSignal SDK silently lost AppCompat, Firebase Messaging, Browser and CardView; that closure now resolves completely. Ranges resolve to the newest published version inside them, as Maven and Gradle do.
- An AAR shipping an empty
classes.jarno longer puts an unopenable archive on the classpath. - Kotlin: a library typealias resolves even though it has no class of its own.
- Console runs: arrays whose element type is one of your own classes.
- Simplified Chinese is complete, thanks to community contributions.
Faster builds
The JDK/ART compatibility jars and the Kotlin compiler are dexed as ordinary module artifacts now, which means they are dexed once and reused across builds, cleans and branches instead of being re-desugared against the whole runtime classpath every time.