Make a task to count dex methods in kotlin-stdlib and kotlin-reflect

This commit is contained in:
Ilya Gorbunov
2017-10-09 22:20:34 +03:00
parent 00c846a160
commit fe9ef04cae
4 changed files with 148 additions and 0 deletions
+6
View File
@@ -109,6 +109,12 @@ dist {
}
}
task dexMethodCount(type: DexMethodCount) {
from jar
ownPackages = ['kotlin']
}
assemble.dependsOn(dexMethodCount)
compileBuiltinsKotlin {
dependsOn ":core:builtins:serialize"
kotlinOptions {
@@ -170,6 +170,13 @@ task relocatedSourcesJar(type: Jar) {
def artifactJar = [file: file(outputJarPath), builtBy: proguard, name: archivesBaseName]
task dexMethodCount(type: DexMethodCount) {
dependsOn(artifactJar.builtBy)
jarFile = artifactJar.file
ownPackages = ['kotlin.reflect']
}
assemble.dependsOn(dexMethodCount)
artifacts {
mainJar artifactJar
runtime artifactJar