I am building a Kotlin/JS project that will be used as a library for a web app. The kotlin plugin recently enabled DCE and provides a keep directive, but it is not keeping the class I am specifying.
kotlin.target.browser {
dceTask {
keep 'BluetoothSerialJs.com.fivestars.bluetooth.BluetoothSerial'
}
}
And here is the top of my class definition:
package com.fivestars.bluetooth
object BluetoothSerial {
Full project is here: