manually for every declaration you want to keep. Whenever you add a new method/field/whatever in Kotlin/JS, if you want to force DCE to keep it, you need to manually update the declaration in Gradle.
What I'm hoping for is an annotation that you can apply to any such declaration in actual Kotlin source (
.kt
files) to have the same effect. This way, as you rename/move/refactor/delete declarations, you don't need to manually muck around in
build.gradle
to keep your
runDceKotlinJs.keep
declaration up-to-date with your actual code.
b
bashor
10/09/2018, 11:12 PM
@ankushg please file an issue
a
ankushg
10/09/2018, 11:13 PM
👍 Just wanted to make sure that wasn't something that already existed, or was out of scope for the JB team to work on