One solution is change api to accept lambda instea...
# android
w
One solution is change api to accept lambda instead of String msg like this
fun debug(tag: String, msg: () -> Any)
, but how will that API look like for java consumers 🤔
d
There's two kotlin wrappers for
Timber
that do this, and you can
plant
crash analytics or whatever w/ Timber
For java, no choice, just use the regular Timber interface...
Or get rid of java 😄
w
Can't get rid of java, as sdk consumers can use java too 🤷