Embed proguard/R8 rules in kotlin-reflect artifact jar

The Android build pipeline can extract embedded proguard configurations
from dependencies and merge them automatically. This adds a conservative
proguard configuration to the kotlin-reflect JVM artifact in support of
that. This focuses mostly on just retaining what's necessary for
kotlin-reflect's own functionality to operate, but could be expanded if
community feedback discovers other good candidate rules.

With this in place - most Android projects using R8 or Proguard should
Just Work™️ with kotlin-reflect.
This commit is contained in:
Zac Sweers
2019-12-17 18:35:35 -05:00
committed by Alexander Udalov
parent ae395bda09
commit 482874fdc1
5 changed files with 86 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@ sourceSets {
java {
srcDir "${rootDir}/core/reflection.jvm/src"
}
resources {
srcDir("${rootDir}/core/reflection.jvm/resources")
}
}
if (includeJava9) {