Generate proguard rules for code gen on demand (#1067)

* Extract target constructor signature into TargetConstructor.kt

We'll need this to know what the runtime types are for proguard rules

* Add ProguardConfig

* Wire in proguard config

* Write proguard configs out with adapters

* Add full tests

* Now remove the rules!

* Ignore on inline classes for now

* Pass adapter constructor params correctly
This commit is contained in:
Zac Sweers
2020-01-14 14:59:10 -05:00
committed by GitHub
parent f891c8187b
commit debb7d3160
9 changed files with 438 additions and 78 deletions

View File

@@ -47,6 +47,11 @@
<artifactId>kotlinpoet-classinspector-elements</artifactId>
<version>${kotlinpoet.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>net.ltgt.gradle.incap</groupId>
<artifactId>incap</artifactId>