ankushg
10/09/2018, 10:18 PM@Keep
annotation for Kotlin/JS projects that automatically whitelists things from being DCEed? Similar to how Android has @Keep
for ProGuard?gbaldeck
10/09/2018, 10:20 PMankushg
10/09/2018, 10:50 PMbuild.gradle
and explicitly configure runDceKotlinJs.keep
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.bashor
10/09/2018, 11:12 PMankushg
10/09/2018, 11:13 PMankushg
10/10/2018, 6:33 AM