Skip to content

Gradle Spoon Plugin Extension for multi density

License

Notifications You must be signed in to change notification settings

MobileAct/GradleMultiDensitySpoonPlugin

Repository files navigation

GradleMultiDensitySpoonPlugin

Build Status Download


Gradle Spoon Plugin Extension for multi density

Usage

build.gradle

buildscript {
    repositories {
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
        maven { url 'https://dl.bintray.com/mobile-act/GradleMultiDensitySpoonPlugin' }
    }
    dependencies {
        // both need
        classpath 'com.jaredsburrows:gradle-spoon-plugin:1.5.0'
        classpath 'mobile-act:gradle-multi-density-spoon-plugin:0.1'
    }
}
// both need
apply plugin: 'com.jaredsburrows.spoon'
apply plugin: 'mdspoon'

configuration:

mdspoon {
    densities = [320, 480, 640] // default value is 420
    titleDelimiter = "-" // this is default value
}

Other configuration: see Gradle Spoon Plugin

Execute

Execute task: mdspoon{Variant}AndroidTest

In default configuration, output build/spoon-output/{density}/**, and all density images are copied to build/spoon-output/merged/**

License

This plugin is under MIT License

Plugin

Sample

Contribute

ToDo: Write

Other

Author: @MeilCli