avianey / androidsvgdrawable-plugin

Gradle plugin that generates qualified, density specific PNG drawables from SVG files at build time for your Android projects.
Apache License 2.0
262 stars 29 forks source link

plugin should support no input svg but only svgmask and maskedresources #46

Closed avianey closed 9 years ago

avianey commented 9 years ago

currently nothing is processed if from is empty but svgmask and masked resources defined

avianey commented 9 years ago

works fine

task generatePNG(type: fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask) {
    from = files()
    to = file('android/build/generated/assets')
    createMissingDirectories = true
    overrideMode = 'ifModified'
    targetedDensities = ['mdpi']
    outputFormat = 'PNG'
    svgMaskFiles = files('resources/svg/mask')
    svgMaskResourceFiles = files('resources/svg/masked')
    svgMaskedSvgOutputDirectory = file('android/build/generated/svg')
}