Gradle Spoon Plugin Extension for multi density
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 task: mdspoon{Variant}AndroidTest
In default configuration, output build/spoon-output/{density}/**
, and all density images are copied to build/spoon-output/merged/**
This plugin is under MIT License
- using Kotlin Standard Library, published by Apache License 2.0
- using Gradle Spoon Plugin, published by Apache License 2.0
- using Kotlin Standard Library, published by Apache License 2.0
- using Gradle Spoon Plugin, published by Apache License 2.0
- using Spoon, published by Apache Licednse 2.0
- using AndroidX, published by Apache License 2.0
- using ConstraintLayout, published by Apache License 2.0
- using AndroidX Test, published by Apache License 2.0
- using JUnit4, published by Eclipse Public License 1.0
ToDo: Write
Author: @MeilCli