fellow Android devs, I'm reposting my post from <#...
# android
m
fellow Android devs, I'm reposting my post from #general as it's relevant for Android logging: Is there a way to put class name in
const val
? If not, are there any plans to make if possible in future?
Copy code
companion object {
   //both these aren't constant expressions to compiler 
   const val LOG_TAG1 = this.javaClass.simpleName
   const val LOG_TAG2 = MainActivity::class.simpleName!!
}
Obfuscation mangles class names so having them assigned to constants before obfuscation pass would be greatly useful.