svg-to-compose-intellij

Introduction: A simple Android Studio plugin to generate Jetpack Compose ImageVector icons
More: Author   ReportBugs   
Tags:

Build Check IDE compatibility

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

  1. Open up a Jetpack Compose project
  2. Right click on a kotlin/java directory
  3. Select "Compose ImageVector" at the bottom
  4. 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.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest