winterDroid / android-drawable-importer-intellij-plugin

Adds an option to IntelliJ to import drawables in different resolutions from AndroidIcons, own "drawable repos" and scale a certain image down/up to the defined resolutions.
Apache License 2.0
862 stars 137 forks source link

Defect fixes for #142 and #135 #150

Closed jameskbride closed 8 years ago

jameskbride commented 8 years ago

The Batch Import functionality should now detect and set the Android resource root as the target export root and no longer cause an IOException.

The IOException was caused when the batch import tool OKAction was invoked with target roots which were not set. Essentially it thought it was going to write to /drawable-whatever, and interpreted that as creating a directory in /, which required root privileges.

I've tested the fix in Intellij Community Edition 2016.2.4 and Android Studio 2.2.

winterDroid commented 8 years ago

Thanks for that! Lgtm!

jameskbride commented 8 years ago

No problem, glad to help :) Thanks for a great plugin, it saved me a ton of time!