I wrote a library which has been uploaded to a private server. When I include the library as a dependency in my app project, and view the source code from one of the library classes, the source code isn't actually decompiled. It only shows the class name and methods. For example:
package com.example.library.ui
public final class RoundedDrawable public constructor() : android.graphics.drawable.Drawable {
public final var backgroundColor: kotlin.Int /* compiled code */
// ... other similar fields
public open fun draw(canvas: android.graphics.Canvas): kotlin.Unit { /* compiled code */ }
// ... other similar functions
}
As you can see, it only displays /* compiled code */
comments, and not the full source code. There is an option presented to "Decompile to Java"; which works, but I would much rather see the Kotlin source. Is this possible?
I found similar question that explains how to show the original Java code, but nothing for Kotlin.