svg-to-compose-intellij
Introduction: A simple Android Studio plugin to generate Jetpack Compose ImageVector icons
Tags:
A simple Android Studio plugin to generate Jetpack Compose ImageVector icons. In fact, it's a wrapper around the svg-to-compose tool. Also, allows to preview the generated icons.
Installation
Install from Jetbrains Marketplace
Usage
- Open up a Jetpack Compose project
- Right click on a kotlin/java directory
- Select "Compose ImageVector" at the bottom
- Enter the necessary info to generate compose ImageVector icons: accessor name, vector image type, vector images directory, all assets property name. The output directory should be configured automatically.
Development
Set the git hooks path to config/git-hooks for git hooks to work:
git config --local core.hooksPath config/git-hooks
The pre-commit hook runs ./gradlew detekt.
Integration tests start a real IDE with the built plugin:
./gradlew integrationTest
They take control of the mouse and keyboard, and failures save full-screen screenshots to out/. Do not use the machine during a run. CI runs them on pull requests. On macOS, the application that starts the tests needs the Accessibility permission in System Settings.
