Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rharter/vd-tool
Android Studio's Vector Drawable conversion tool in convenient packaging.
https://github.com/rharter/vd-tool
Last synced: about 2 months ago
JSON representation
Android Studio's Vector Drawable conversion tool in convenient packaging.
- Host: GitHub
- URL: https://github.com/rharter/vd-tool
- Owner: rharter
- License: apache-2.0
- Created: 2022-04-07T02:27:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T06:12:29.000Z (2 months ago)
- Last Synced: 2024-07-24T07:38:55.145Z (2 months ago)
- Homepage:
- Size: 67.4 KB
- Stars: 64
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-list - rharter/vd-tool - Android Studio's Vector Drawable conversion tool in convenient packaging. (Misc)
README
# Vector Drawable Tool
This repository is simply a repackaging of the [vector drawable tool](https://android.googlesource.com/platform/tools/base/+/refs/heads/mirror-goog-studio-main/vector-drawable-tool/)
from the Android Studio source code. The included Gradle files take care of downloading and extracting the latest
source code, allowing you to build the command line tool, without the need to download the entire AOSP.## Usage
Download the latest [release](./releases), extract it wherever you'd like, and run the tool.
```shell
curl -L -o /tmp/vd-tool.zip https://github.com/rharter/vd-tool/releases/latest/download/vd-tool.zip
mkdir ~/bin
unzip /tmp/vd-tool.zip -d ~/bin
~/bin/vd-tool/bin/vd-tool --help
```## Building
The Vector Drawable Tool depends on Google's libraries from `com.android.tools` package. Make sure that `android-tools` property at `gradle/libs.versions.toml` is set to the latest stable version from [Google maven repository](https://maven.google.com/web/index.html?#com.android.tools:sdk-common)
Since this repository doesn't contain the actual source code of the tool, you first need to run the
`fetchSources` task, which will download and extract the source. Then you can use standard `run` and
`assembleDist` tasks to build the project.```shell
# First fetch the sources
./gradlew fetchSources# Assemble the distributions. The output is at ./tools/base/vector-drawable-tool/build/distibutions/
./gradlew assembleDist# Or simply run the tool directly from Gradle
./gradlew run --args="--help"
```## License
Copyright (c) 2022 Ryan Harter
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.