I\'m creating my first Kotlin classes in my Android application. Usually for logging purposes I have a constant with name TAG. What I would do in Java is:
TAG
You can define your TAG by @JvmField as below:
@JvmField
companion object { @JvmField val TAG: String = MyClass::class.java.simpleName }
For more details, you can read this article : Kotlin's hidden costs